ADTF_DISPLAY_TOOLBOX  3.8.0 (ADTF 3.14.3)
drawer_intf.h
Go to the documentation of this file.
1 
7 #pragma once
8 #include <adtf_base.h>
11 
12 namespace adtf
13 {
14 
15 namespace disptb
16 {
17 
18 namespace drawerlib
19 {
20 
21 namespace dengar
22 {
23 
30 class IDrawer : public ucom::ant::IObject
31 {
32 public:
34  ADTF_IID(IDrawer, "drawer.dengar.drawerlib.disptb.adtf.iid");
35 
40  virtual tInt GetZOrder() const = 0;
41 
47  virtual tBool IsVisible() const = 0;
48 
55  virtual tResult Draw(const ucom::ant::iobject_ptr<disptb::graphicslib::dengar::ICanvas>& pCanvas) = 0;
56 
63  virtual tResult OnDraw(const ucom::ant::iobject_ptr<disptb::graphicslib::dengar::ICanvas>& pCanvas) = 0;
64 
65 };
66 
67 }
68 
69 namespace florrum
70 {
71 
78 class IDrawer : public dengar::IDrawer
79 {
80 
81 public:
83  ADTF_IID(IDrawer, "drawer.florrum.drawerlib.disptb.adtf.iid");
84 
91  virtual tResult ContextCreated(const ucom::ant::iobject_ptr<disptb::graphicslib::dengar::ICanvas>& pCanvas) = 0;
92 
100  virtual tResult OnCreateContext(const ucom::ant::iobject_ptr<disptb::graphicslib::dengar::ICanvas>& pCanvas) = 0;
101 
107  virtual tResult ContextDestroyed() = 0;
108 
115  virtual tResult OnDestroyContext() = 0;
116 
117 };
118 
119 }
120 
121 using dengar::IDrawer;
122 }
123 
124 }
125 
126 }
127 
128 //*************************************************************************************************
ADTF 2D Display Drawer interface.
Definition: drawer_intf.h:31
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.
ADTF_IID(IDrawer, "drawer.dengar.drawerlib.disptb.adtf.iid")
Define an interface id for this class
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.
virtual tBool IsVisible() const =0
IsVisible() is not the same as IsActive()! If a drawer is invisible all Handlers will be called excep...
virtual tInt GetZOrder() const =0
The ZOrder defines the order of drawing the objects, if they are in the same coordinate space level.
ADTF 2D Display Drawer interface.
Definition: drawer_intf.h:79
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.
ADTF_IID(IDrawer, "drawer.florrum.drawerlib.disptb.adtf.iid")
Define an interface id for this class
virtual tResult OnDestroyContext()=0
This oneshot method is called once when the transition from runlevel 5 to runlevel 4 occurs The use o...
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 o...
virtual tResult ContextDestroyed()=0
This method can be overwritten to define the desired behavior during the OnDestroyContext event.
Copyright © Audi Electronics Venture GmbH.
Main namespace.
Copyright © Audi Electronics Venture GmbH.