It provides access to the physical properties of the area (dimensions, color), and it provides access to the display canvas and the viewport canvas for drawing. It manages the double-buffering functionality for flicker-free drawing.
It also enables the framework to setup the physical display. This functionality is not directly accessible.
Definition at line 84 of file Display.h.
Public Types | |
enum | Density { DENSITY_SINGLE = 1, DENSITY_DOUBLE = 2 } |
Constants to express the display density. More... | |
Public Member Functions | |
Construction / Destruction | |
Display () SEC_RAZOR_INIT | |
Construct a new Display. | |
virtual | ~Display () SEC_RAZOR_INIT |
Destroy the Display. | |
void | destroy () SEC_RAZOR_INIT |
Output management | |
void | beginDrawViewport () |
Begin drawing into the offscreen viewport. | |
virtual void | endDrawViewport (RectangleType *dirtyRectangle) |
End drawing into the offscreen viewport. | |
virtual void | showViewport ()=0 |
Display offscreen viewport. | |
virtual void | captureDisplay () SEC_RAZOR_INIT=0 |
Capture the display for use with Razor! | |
virtual void | releaseDisplay () SEC_RAZOR_INIT=0 |
Release the display from use by Razor! Make it usable by the OS again. | |
Physical Display management | |
virtual void | initDisplay (const DisplayProperties &displayProperties) SEC_RAZOR_INIT=0 |
void | initViewport (const ViewportProperties &viewport) SEC_RAZOR_INIT |
Canvas management | |
Canvas * | getDisplayCanvas () const SEC_RAZOR |
Get the display canvas. | |
Canvas * | getViewportCanvas () const SEC_RAZOR |
Get the viewport canvas. | |
Static Public Attributes | |
UInt16 | cols |
The physical width (columns) of the display. | |
UInt16 | rows |
The physical height (rows) of the display. | |
UInt32 | depth |
The depth of the display in bpp. | |
Density | density |
The density of the display as a Density enumeration member. | |
Boolean | colorMode |
Is this a color display? | |
Boolean | directColor |
Is this a direct color (non-palettized) display? | |
Protected Member Functions | |
virtual void | createViewportCanvas (const ViewportProperties &viewport) SEC_RAZOR_INIT=0 |
virtual void | resetDisplay () SEC_RAZOR_INIT=0 |
Set the display back to normal. | |
Protected Attributes | |
ViewportProperties | viewport |
Canvas * | displayCanvas |
Canvas * | viewportCanvas |
RectangleType | currentBounds |
RectangleType | lastBounds |
RectangleType | copyBounds |
|
Constants to express the display density.
|
|
Construct a new Display.
|
|
Destroy the Display.
|
|
|
|
Begin drawing into the offscreen viewport.
|
|
End drawing into the offscreen viewport.
|
|
Display offscreen viewport.
|
|
Capture the display for use with Razor!
|
|
Release the display from use by Razor! Make it usable by the OS again.
|
|
|
|
|
|
Get the display canvas.
|
|
Get the viewport canvas.
|
|
|
|
Set the display back to normal.
|
|
The physical width (columns) of the display.
|
|
The physical height (rows) of the display.
|
|
The depth of the display in bpp.
|
|
The density of the display as a Density enumeration member.
|
|
Is this a color display?
|
|
Is this a direct color (non-palettized) display?
|
|
|
|
|
|
|
|
|
|
|
|
|