50 #ifndef ILocalScreenManager_H_
51 #define ILocalScreenManager_H_
55 #include "interface/IWindow.h"
56 #include "interface/ISurface.h"
58 #include "interface/IContinuousMediaProvider.h"
59 #include "interface/IFontProvider.h"
60 #include "interface/IImageProvider.h"
62 #include "IInputManager.h"
63 #include "interface/IInputEvent.h"
64 #include "interface/IEventBuffer.h"
80 virtual void releaseHandler()=0;
82 virtual void setBackgroundImage(
83 GingaScreenID screenId,
string uri)=0;
85 virtual int getDeviceWidth(GingaScreenID screenId)=0;
87 virtual int getDeviceHeight(GingaScreenID screenId)=0;
89 virtual void* getGfxRoot(GingaScreenID screenId)=0;
91 virtual void releaseScreen(GingaScreenID screenId)=0;
92 virtual void releaseMB(GingaScreenID screenId)=0;
93 virtual void clearWidgetPools(GingaScreenID screenId)=0;
95 virtual GingaScreenID createScreen(
int numArgs,
char** args)=0;
96 virtual string getScreenName(GingaScreenID screenId)=0;
98 virtual GingaWindowID getScreenUnderlyingWindow(
99 GingaScreenID screenId)=0;
101 virtual IWindow* getIWindowFromId(
102 GingaScreenID screenId, GingaWindowID winId)=0;
104 virtual bool mergeIds(
105 GingaScreenID screenId,
106 GingaWindowID destId,
107 vector<GingaWindowID>* srcIds)=0;
109 virtual void blitScreen(
110 GingaScreenID screenId,
ISurface* destination)=0;
112 virtual void blitScreen(GingaScreenID screenId,
string fileUri)=0;
113 virtual void refreshScreen(GingaScreenID screenId)=0;
119 GingaScreenID screenId,
124 virtual GingaWindowID createUnderlyingSubWindow(
125 GingaScreenID screenId,
130 virtual IWindow* createWindowFrom(
131 GingaScreenID screenId, GingaWindowID underlyingWindow)=0;
133 virtual bool hasWindow(
134 GingaScreenID screenId,
IWindow* window)=0;
136 virtual void releaseWindow(
137 GingaScreenID screenId,
IWindow* window)=0;
139 virtual ISurface* createSurface(GingaScreenID screenId)=0;
142 GingaScreenID screenId,
int w,
int h)=0;
144 virtual ISurface* createSurfaceFrom(
145 GingaScreenID screenId,
void* underlyingSurface)=0;
147 virtual bool hasSurface(
148 GingaScreenID screenId,
ISurface* sur)=0;
150 virtual bool releaseSurface(
151 GingaScreenID screenId,
ISurface* sur)=0;
157 GingaScreenID screenId,
162 virtual void releaseContinuousMediaProvider(
163 GingaScreenID screenId,
167 GingaScreenID screenId,
171 virtual void releaseFontProvider(
175 GingaScreenID screenId,
const char* mrl)=0;
177 virtual void releaseImageProvider(
180 virtual ISurface* createRenderedSurfaceFromImageFile(
181 GingaScreenID screenId,
const char* mrl)=0;
185 virtual IInputManager* getInputManager(GingaScreenID screenId)=0;
186 virtual IEventBuffer* createEventBuffer(GingaScreenID screenId)=0;
189 GingaScreenID screenId,
void* event,
const int symbol)=0;
192 GingaScreenID screenId,
int type,
void* data)=0;
194 virtual int fromMBToGinga(GingaScreenID screenId,
int keyCode)=0;
195 virtual int fromGingaToMB(GingaScreenID screenId,
int keyCode)=0;
204 typedef ::br::pucrio::telemidia::ginga::core::mb::ILocalScreenManager*
205 LocalScreenManagerCreator();
207 typedef void LocalScreenManagerDestroyer(
208 ::br::pucrio::telemidia::ginga::core::mb::
209 ILocalScreenManager* dm);
Definition: IContinuousMediaProvider.h:71
Definition: ILocalScreenManager.h:76
Definition: IEventBuffer.h:63
Definition: IInputEvent.h:61
Definition: IInputManager.h:67
Definition: IImageProvider.h:64
Definition: ISurface.h:64
Definition: IFontProvider.h:62