57 #include "mb/interface/IWindow.h"
58 #include "mb/interface/sdl/output/SDLWindow.h"
59 #include "mb/interface/IFontProvider.h"
72 GingaScreenID myScreen;
85 vector<DrawData*> drawData;
86 pthread_mutex_t ddMutex;
88 pthread_mutex_t sMutex;
89 pthread_mutex_t pMutex;
93 SDLSurface(GingaScreenID screenId,
void* underlyingSurface);
98 void releasePendingSurface();
99 bool createPendingSurface();
100 void checkPendingSurface();
102 void releaseChromaColor();
103 void releaseBgColor();
104 void releaseBorderColor();
105 void releaseSurfaceColor();
108 void releaseDrawData();
110 void initialize(GingaScreenID screenId);
113 void takeOwnership();
115 SDL_Surface* getPendingSurface();
117 void setExternalHandler(
bool extHandler);
118 bool hasExternalHandler();
120 void addCaps(
int caps);
121 void setCaps(
int caps);
122 int getCap(
string cap);
124 bool setParentWindow(
void* parentWindow);
125 void* getParentWindow();
126 void* getSurfaceContent();
127 void setSurfaceContent(
void* surface);
131 vector<DrawData*>* createDrawDataList();
134 void pushDrawData(
int c1,
int c2,
int c3,
int c4,
short type);
137 void drawLine(
int x1,
int y1,
int x2,
int y2);
138 void drawRectangle(
int x,
int y,
int w,
int h);
139 void fillRectangle(
int x,
int y,
int w,
int h);
140 void drawString(
int x,
int y,
const char* txt);
141 void setChromaColor(
int r,
int g,
int b,
int alpha);
143 void setBorderColor(
int r,
int g,
int b,
int alpha);
145 void setBgColor(
int r,
int g,
int b,
int alpha);
147 void setColor(
int r,
int g,
int b,
int alpha);
149 void setSurfaceFont(
void* font);
150 void getStringExtents(
const char* text,
int* w,
int* h);
152 void scale(
double x,
double y);
155 void initContentSurface();
156 SDL_Surface* createSurface();
163 int srcX=-1,
int srcY=-1,
int srcW=-1,
int srcH=-1);
165 void setClip(
int x,
int y,
int w,
int h);
166 void getSize(
int* width,
int* height);
167 string getDumpFileUri();
168 void setMatrix(
void*
matrix);
Definition: SDLSurface.h:70
Definition: ISurface.h:64
Definition: IFontProvider.h:62