summaryrefslogtreecommitdiff
path: root/shared-bindings/displayio/TileGrid.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-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-18Track a dirty area for in-memory bitmapsScott Shawcroft
This fixes the bug that bitmap changes do not cause screen updates and optimizes the refresh when the bitmap is simply shown on the screen. If the bitmap is used in tiles, then changing it will cause all TileGrids using it to do a full refresh. Fixes #1981
2019-06-13Minor tweaks based on Dan's feedbackScott Shawcroft
2019-06-12Add partial display update support.Scott Shawcroft
Different operations to the display tree have different costs. Be aware of these costs when optimizing your code. * Changing tiles indices in a TileGrid will update an area covering them all. * Changing a palette will refresh every object that references it. * Moving a TileGrid will update both where it was and where it moved to. * Adding something to a Group will refresh each individual area it covers. * Removing things from a Group will refresh one area that covers all previous locations. (Not separate areas like add.) * Setting a new top level Group will refresh the entire display. Only TileGrid moves are optimized for overlap. All other overlaps cause sending of duplicate pixels. This also adds flip_x, flip_y and transpose_xy to TileGrid. They change the direction of the pixels but not the location. Fixes #1169. Fixes #1705. Fixes #1923.
2019-05-30Improve rST consistency for rst2pyi useScott Shawcroft
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-04-09Tweak pybadge and fix display bugsScott Shawcroft
* Update pybadge pins and flash for rev D * TileGrid now validates the type of the pixel_shader. * Display actually handles incoming subclass objects. * MicroPython will inspect native parents to see if special accessors are used.
2019-04-05Always check TileGrid's x, yScott Shawcroft
When using an int index you could end up writing past the end of TileGrid's memory. Fixes #1747
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-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-31Correct TileGrid class name.Scott Shawcroft
2019-01-31Hook up the terminal based on the first display.Scott Shawcroft
2019-01-31Add TileGridScott Shawcroft