nw::dev::DirectPrint Classclass DirectPrint
Class for direct rendering to framebuffer.
| Direction | Represents the direction of rendering. |
|---|
| S | FONT_WIDTH | const int |
The font width. |
|---|---|---|---|
| S | FONT_HEIGHT | const int |
The font height. |
| S | LINE_HEIGHT | const int |
Line height. |
| S | TAB_WIDTH | const int |
The tab width (number of characters). |
| Constructors and Destructors | ||
|---|---|---|
| DirectPrint | Constructor. | |
| ~DirectPrint | Destructor. | |
| Initialization & Shutdown | ||
Initialize
|
Initializes the direct print feature. | |
| Finalize | Deallocates the resource. | |
| IsActive | Returns whether the direct print feature is in a usable state. | |
| Settings | ||
| SetTargetBuffer | Sets the framebuffer that will be the rendering target. | |
| SetTargetActiveDisplayBuffer | Sets the currently active display buffer to the rendering target framebuffer. | |
| GetTargetBuffer | Gets the framebuffer for the currently set rendering target. | |
| GetTargetWidth | Gets the width of the currently set rendering target. | |
| GetTargetHeight | Gets the height of the currently set rendering target. | |
| SetColor | Sets the rendering color. | |
| GetColor | Gets the present rendering color. | |
| SetBackgroundColor | Sets the background color. | |
| GetBackgroundColor | Gets the current background. | |
| SetDirection | Sets the direction of rendering. | |
| GetDirection | Gets the direction of rendering. | |
| Rendering | ||
| Erase | Erases a rectangular region using the background color. | |
| Printf | Draws a string. | |
| VPrintf | Draws a string. | |
DrawString
|
Draws a string. | |
| StoreCache | Stores the rendered string from cache to main memory. | |
CONFIDENTIAL