53 #include "util/Color.h"
54 using namespace ::br::pucrio::telemidia::util;
56 #include "mb/interface/IWindow.h"
60 typedef uint32_t Uint32;
61 typedef Uint32 SDL_WindowID;
88 static const short DDT_LINE = 0;
89 static const short DDT_RECT = 1;
90 static const short DDT_FILL_RECT = 2;
107 GingaScreenID myScreen;
108 GingaWindowID windowId;
109 GingaWindowID parentId;
114 int transparencyValue;
123 pthread_mutex_t mutex;
124 pthread_mutex_t mutexC;
125 pthread_mutex_t texMutex;
126 pthread_mutex_t surMutex;
129 pthread_mutex_t rMutex;
130 pthread_mutex_t cMutex;
135 GingaWindowID underlyingWindowID,
136 GingaWindowID parentWindowID,
137 GingaScreenID screenId,
138 int x,
int y,
int width,
int height,
145 GingaWindowID underlyingWindowID,
146 GingaWindowID parentWindowID,
147 GingaScreenID screenId,
148 int x,
int y,
int width,
int height,
151 void releaseWinISur();
152 void releaseBGColor();
153 void releaseWinColor();
154 void releaseColorKey();
155 void releaseBorderColor();
158 void setBgColor(
int r,
int g,
int b,
int alpha);
160 void setColorKey(
int r,
int g,
int b);
162 void setWindowColor(
int r,
int g,
int b,
int alpha);
164 void setBorder(
int r,
int g,
int b,
int alpha=255,
int bWidth=0);
165 void getBorder(
int* r,
int* g,
int* b,
int* alpha,
int* bWidth);
167 GingaScreenID getScreen();
168 void revertContent();
169 void setChildSurface(
ISurface* iSur);
170 int getCap(
string cap);
171 void setCaps(
int caps);
172 void addCaps(
int capability);
176 void setBounds(
int x,
int y,
int width,
int height);
177 void moveTo(
int x,
int y);
178 void resize(
int width,
int height);
180 void lowerToBottom();
181 void setCurrentTransparency(
int alpha);
182 int getTransparencyValue();
183 GingaWindowID getId();
199 bool isGhostWindow();
200 void setGhostWindow(
bool ghost);
205 void unprotectedValidate();
208 vector<DrawData*>* createDrawDataList();
209 void setStretch(
bool stretchTo);
211 void setFit(
bool fitTo);
214 void setRenderedSurface(SDL_Surface* uSur);
216 void setTexture(SDL_Texture* texture);
217 SDL_Texture* getTexture(SDL_Renderer* renderer);
218 bool isTextureOwner(SDL_Texture* texture);
224 void renderImgFile(
string serializedImageUrl);
228 void stretchBlit(
IWindow* src);
229 string getDumpFileUri(
int quality,
int dumpW,
int dumpH);
243 void unlockTexture();
246 void unlockSurface();
Definition: SDLWindow.h:74
Definition: SDLWindow.h:86
Definition: ISurface.h:64