ADTF Display Toolbox
Loading...
Searching...
No Matches
drawer_intf.h
Go to the documentation of this file.
1
7#pragma once
8#include <adtf_base.h>
11
12namespace adtf
13{
14
15namespace disptb
16{
17
18namespace drawerlib
19{
20
21namespace dengar
22{
23
30class IDrawer : public ucom::ant::IObject
31{
32public:
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} // namespace dengar
67
68namespace florrum
69{
70
78{
79public:
81 ADTF_IID(IDrawer, "drawer.florrum.drawerlib.disptb.adtf.iid");
82
89 virtual tResult ContextCreated(const ucom::ant::iobject_ptr<disptb::graphicslib::dengar::ICanvas>& pCanvas) = 0;
90
98 virtual tResult OnCreateContext(const ucom::ant::iobject_ptr<disptb::graphicslib::dengar::ICanvas>& pCanvas) = 0;
99
105 virtual tResult ContextDestroyed() = 0;
106
113 virtual tResult OnDestroyContext() = 0;
114};
115
116} // namespace florrum
117
118using dengar::IDrawer;
119} // namespace drawerlib
120
121} // namespace disptb
122
123} // namespace adtf
124
125//*************************************************************************************************
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()!
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:78
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.
Namespace for functionality provided by the Display Toolbox.
Main namespace.
Copyright © Audi Electronics Venture GmbH.