public interface DisplayBufferPolicy
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes the buffers.
|
void |
flush(DisplayBufferManager bufferManager,
ej.microui.display.Rectangle[] rectangles)
Performs a flush: the content of the back buffer has to be "transmitted" to the display front buffer.
|
ej.fp.Image |
getBackBuffer()
Gets the back buffer.
|
int |
getBufferCount()
Gets the number of buffers.
|
ej.fp.Image |
getFrontBuffer()
Gets the front buffer.
|
boolean |
isDoubleBuffered()
Gets whether or not there are several buffers for the display.
|
void |
setDisplayProperties(ej.fp.Widget displayWidget,
int width,
int height,
int initialColor)
Sets the display properties.
|
void setDisplayProperties(ej.fp.Widget displayWidget,
int width,
int height,
int initialColor)
displayWidget - the display widget.width - the width of the display.height - the height of the displayinitialColor - the initial color of the display.void flush(DisplayBufferManager bufferManager, ej.microui.display.Rectangle[] rectangles)
The content of given rectangles in the graphics buffer (back buffer) must be displayed into the LCD buffer (front buffer). The rectangles specified are the regions which have changed during last draw and only these regions should be updated (dirty regions). The number of rectangles depends on the display buffer refresh strategy (BRS).
bufferManager - the buffer manager.rectangles - the modified rectangular regions.int getBufferCount()
boolean isDoubleBuffered()
In other words, if the drawings are done in a buffer different than the one used by the display or not.
true if there is more than one buffer, false otherwise.ej.fp.Image getBackBuffer()
ej.fp.Image getFrontBuffer()
void dispose()