#include <CCI_Graphics.h>
Inherits dmINotify.
Public Member Functions | |
bool | SetPageScale (dm_uint pageScale) |
Set the scale factor used for rendering. | |
dm_uint | GetPageScale () |
Return the scale factor used for rendering. | |
void * | GetNativeWindow () |
Return a handle to the native window associated to this Graphics object. | |
dmGraphics * | GetGraphics () |
Return the internal Daim graphics object. | |
bool | Draw (void *nativeDC, const dm_rect *boundRect, dm_uint paintFlags) |
Ask the graphics object to render its content (i.e its attached document). | |
cci_object * | GetDocument () |
Return the document object associated with the graphic object. | |
bool | SetDocument (cci_object *document) |
Set the document object associated with the graphic object Note that document must implement the dmIDocument interface. | |
bool | ClearDocument () |
Remove the document associated with the graphic object. | |
bool | InitGraphics (void *nativeWindow) |
Initialise the graphic object. | |
bool | ProcessSystemEvent (dm_uint structType, dm_uint eventType, dm_uint button, dm_uint keyQual, dm_uint keyCode, dm_int cursorX, dm_int cursorY) |
Process an event initiated from the native widgets. | |
bool | SetDisplay (dm_int left, dm_int top, dm_uint width, dm_uint height) |
Set the size of the display output area. | |
dm_int | ScreenX () |
Return the current screen-X position of the mouse cursor. | |
dm_int | ScreenY () |
Return the current screen-Y position of the mouse cursor. |
This interface is the base class for implementors of native image factory and display methods.
|
Ask the graphics object to render its content (i.e its attached document). This method will call the dmIDocument::Draw function of the attached document
|
|
Return the document object associated with the graphic object. The returned object should be compatible with the dmIDocument interface. This method AddRef() the returned object.
|
|
Initialise the graphic object.
|
|
Process an event initiated from the native widgets.
|
|
Set the size of the display output area. This method pass informations to the graphic context handler about the (logical) size of the dimensions of the output area. These informations are used in conjonction with the PageScale in order to properly compute cursor position and display scaling. |
|
Set the scale factor used for rendering.
|