You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wiki/Display.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -277,7 +277,10 @@ display.show()
277
277
## Overlay Callbacks:
278
278
The Display also has an attribute for storing overlay drawing functions.
279
279
280
-
`Display.overlay_callbacks`is a list of callbacks, to be called every time `Display.show()`is called (before writing the framebuffer).
280
+
`Display.draw_overlays`is a boolean flag that tells the display to redraw the overlays. *(Set this to `True` to flag that something on the display has changed, and so the overlays should be redrawn)*
281
+
282
+
`Display.overlay_callbacks`is a public list of callback functions, to be called when `Display.show()`is called *(If `Display.draw_overlays`is`True`).*
283
+
281
284
The callbacks should accept the the `Display`objectas a single positional argument.
282
285
283
286
This is how the `userinput` module is able to draw 'locked' modifier keys over top of the other graphics on screen.
0 commit comments