summaryrefslogtreecommitdiff
path: root/shared-bindings/displayio/Group.c
AgeCommit message (Collapse)Author
2020-07-16Made requested changes in displayiodherrada
2020-07-03Made every init return Nonedherrada
2020-07-03Made most of the requested changesdherrada
2020-07-03Added type hints to displayiodherrada
2020-07-02Removed all 'self, )'dherrada
2020-05-12Swap sphinx to autoapi and the inline stubsScott Shawcroft
2020-05-07Did board, digitalio, displayiodherrada
2019-09-03Add .hidden to TileGrid and GroupScott Shawcroft
This allows for one to preserve ordering within a Group while hiding something temporarily. Fixes #1688
2019-07-02Fix Group subscr to detect delete correctlyScott Shawcroft
Fixes #1957
2019-05-15Add index and remove to Group.Scott Shawcroft
2019-05-14Make Group iterable via a generic native iterator.Scott Shawcroft
Fixes #1694
2019-05-13Check native object in case of early accessScott Shawcroft
If a native displayio object is accessed before it's super().__init__() has been called, then a placeholder is given that will cause a crash if accessed. This is tricky to get right so we detect this case and raise a NotInplementedError instead of crashing. Fixes #1881
2019-03-12Standardize TileGrid to x and y properties over positionScott Shawcroft
This brings it inline with Group. Also fixes #1613 This also includes a number of fixes for where a method is called through a subclass. We now correctly get the native object. Fixes #1567 Lastly, this adds subscript support to TileGrid for changing tile indices. Similar to Bitmap, it accepts ints or 2-tuples.
2019-03-12Accept x and y kwargs into Group for initial position.Scott Shawcroft
2019-02-13A safe mode fix and displayio fixesScott Shawcroft
* Fixes safe mode on the SAMD51. The "preserved" value was being clobbered by the bootloader. * Fixes auto-reload loop when in safe mode. * Fixes reading Group children with []. * Check that a TileGrid actually moves before queueing a refresh.
2019-02-12Tweaks based on dhalbert's feedback.Scott Shawcroft
2019-02-11A variety of displayio improvementsScott Shawcroft
This changes a number of things in displayio: * Introduces BuiltinFont and Glyph so the built in font can be used by libraries. For boards with a font it is available as board.TERMINAL_FONT. Fixes #1172 * Remove _load_row from Bitmap in favor of bitmap[] access. Index can be x/y tuple or overall index. Fixes #1191 * Add width and height properties to Bitmap. * Add insert and [] access to Group. Fixes #1518 * Add index param to pop on Group. * Terminal no longer takes unicode character info. It takes a BuiltinFont instead. * Fix Terminal's handling of [###D vt100 commands used when up arrowing into repl history. * Add x and y positions to Group plus scale as well. * Add bitmap accessor for BuiltinFont
2019-01-14Add subclass support to displayio.Scott Shawcroft
Also, swap make_news to accept a kwarg map and refine param checking. Fixes #1237
2018-09-12Add OnDiskBitmap which loads pixel data straight from disk.Scott Shawcroft
Also, renamed Sprite's palette to pixel_shader so it can be anything that produces colors based on values (including color values). Added a ColorConverter that converts RGB888 (found in bitmaps) to RGB565 for the display. Fixes #1182
2018-08-31Tweaks based on feedbackScott Shawcroft
2018-08-31Introduce displayio to render graphics to displays.Scott Shawcroft
It's designed to minimize RAM footprint by using Sprites to represent objects on the screen. The object model also facilitates partial screen updating which reduces the bandwidth needed to display. This is all handled in C. Python simply manipulates the objects with the ability to synchronize to frame timing.