WidgetPainter

Encapsulates the simpledisplay ScreenPainter for use on a Widget, with VisualTheme and invalidated area awareness.

Alias This

screenPainter

Forward to the screen painter for other methods

Members

Functions

drawThemeBackground
void drawThemeBackground()

First, draw the background. Then draw your content. Next, draw the border. And the focused indicator. And the is-selected box.

drawThemed
void drawThemed(Rectangle delegate(const Rectangle bounds) drawBody)

Draws the general pattern of a widget if you don't need anything particularly special and/or control the other details through your widget's style theme hints.

notifyCursorPosition
void notifyCursorPosition(int x, int y, int width, int height)

EXPERIMENTAL. subject to change.

themeBackground
Color themeBackground()
themeForeground
Color themeForeground()

Functions to access the visual theme and helpers to easily use it.

Properties

visualTheme
BaseVisualTheme visualTheme [@property getter]
BaseVisualTheme visualTheme [@property setter]

Functions to access the visual theme and helpers to easily use it.

Variables

invalidatedRectangles
Rectangle[] invalidatedRectangles;

This is the list of rectangles that actually need to be redrawn.

screenPainter
ScreenPainter screenPainter;
Suggestion Box / Bug Report