ADTF_DISPLAY_TOOLBOX  3.8.0 (ADTF 3.14.3)
IDrawerabstract

ADTF 2D Display Drawer interface. More...

Inheritance diagram for IDrawer:
[legend]

Public Member Functions

 ADTF_IID (IDrawer, "drawer.florrum.drawerlib.disptb.adtf.iid")
 Define an interface id for this class

 
virtual tResult ContextCreated (const ucom::ant::iobject_ptr< disptb::graphicslib::dengar::ICanvas > &pCanvas)=0
 This method can be overwritten to define the desired behavior during the OnCreateContext event. More...
 
virtual tResult OnCreateContext (const ucom::ant::iobject_ptr< disptb::graphicslib::dengar::ICanvas > &pCanvas)=0
 This oneshot method is called once when the transition from runlevel 4 to runlevel 5 occurs The use of this function is purely to call the ContextCreated Callbacks within the user implementation. More...
 
virtual tResult ContextDestroyed ()=0
 This method can be overwritten to define the desired behavior during the OnDestroyContext event. More...
 
virtual tResult OnDestroyContext ()=0
 This oneshot method is called once when the transition from runlevel 5 to runlevel 4 occurs The use of this function is purely to call the ContextCreated Callbacks within the user implementation. More...
 
- Public Member Functions inherited from IDrawer
 ADTF_IID (IDrawer, "drawer.dengar.drawerlib.disptb.adtf.iid")
 Define an interface id for this class

 
virtual tInt GetZOrder () const =0
 The ZOrder defines the order of drawing the objects, if they are in the same coordinate space level. More...
 
virtual tBool IsVisible () const =0
 IsVisible() is not the same as IsActive()! If a drawer is invisible all Handlers will be called except the Draw method. More...
 
virtual tResult Draw (const ucom::ant::iobject_ptr< disptb::graphicslib::dengar::ICanvas > &pCanvas)=0
 This method is where the user code defines what is drawn on the canvas. More...
 
virtual tResult OnDraw (const ucom::ant::iobject_ptr< disptb::graphicslib::dengar::ICanvas > &pCanvas)=0
 This method is called from the drawer manager to draw on the give canvas. More...
 

Detailed Description

ADTF 2D Display Drawer interface.

This is the basic Drawer interface which enables developers to extend the functionality of the 2D Display in order to display new data.

Definition at line 78 of file drawer_intf.h.

Member Function Documentation

◆ ContextCreated()

virtual tResult ContextCreated ( const ucom::ant::iobject_ptr< disptb::graphicslib::dengar::ICanvas > &  pCanvas)
pure virtual

This method can be overwritten to define the desired behavior during the OnCreateContext event.

Parameters
pCanvas[in/out] Pointer to the current Canvas object
Returns
standard result

◆ ContextDestroyed()

virtual tResult ContextDestroyed ( )
pure virtual

This method can be overwritten to define the desired behavior during the OnDestroyContext event.

Returns
standard result

◆ OnCreateContext()

virtual tResult OnCreateContext ( const ucom::ant::iobject_ptr< disptb::graphicslib::dengar::ICanvas > &  pCanvas)
pure virtual

This oneshot method is called once when the transition from runlevel 4 to runlevel 5 occurs The use of this function is purely to call the ContextCreated Callbacks within the user implementation.

It is not intended to be overridden by Drawer implementations.

Parameters
pCanvas[in/out] Pointer to the current Canvas object
Returns
standard result

◆ OnDestroyContext()

virtual tResult OnDestroyContext ( )
pure virtual

This oneshot method is called once when the transition from runlevel 5 to runlevel 4 occurs The use of this function is purely to call the ContextCreated Callbacks within the user implementation.

It is not intended to be overridden by Drawer implementations.

Returns
standard result