125 |
inline SDL_Surface* getDisabled() const; |
inline SDL_Surface* getDisabled() const; |
126 |
inline SDL_Surface* getSelected() const; |
inline SDL_Surface* getSelected() const; |
127 |
|
|
128 |
bool paintNormal(SDL_Surface *canvas, SDL_Color *tcol, SDL_Color *scol = 0); |
bool paintNormal(SDL_Surface *canvas, PG_Color* tcol, PG_Color* scol = NULL); |
129 |
bool paintDisabled(SDL_Surface *canvas, SDL_Color *tcol, SDL_Color *scol = 0); |
bool paintDisabled(SDL_Surface *canvas, PG_Color* tcol, PG_Color* scol = NULL); |
130 |
bool paintSelected(SDL_Surface *canvas, SDL_Color *tcol, SDL_Color *scol = 0); |
bool paintSelected(SDL_Surface *canvas, PG_Color* tcol, PG_Color* scol = NULL); |
131 |
|
|
132 |
inline void disable(); |
inline void disable(); |
133 |
inline void enable(); |
inline void enable(); |
152 |
|
|
153 |
private: // methods |
private: // methods |
154 |
void initItem(); |
void initItem(); |
155 |
bool renderSurface(SDL_Surface *canvas, SDL_Surface **text, SDL_Color *tcol, SDL_Color *scol = 0); |
bool renderSurface(SDL_Surface *canvas, SDL_Surface **text, PG_Color* tcol, PG_Color* scol = 0); |
156 |
bool isValidRect(); |
bool isValidRect(); |
157 |
|
|
158 |
protected: // data |
protected: // data |
313 |
string myCaption; /** menu caption */ |
string myCaption; /** menu caption */ |
314 |
#endif //SWIG |
#endif //SWIG |
315 |
|
|
316 |
SDL_Color captionActiveColor; |
PG_Color captionActiveColor; |
317 |
SDL_Color captionInactiveColor; |
PG_Color captionInactiveColor; |
318 |
|
|
319 |
SDL_Color miNormalColor; |
PG_Color miNormalColor; |
320 |
SDL_Color miSelectedColor; |
PG_Color miSelectedColor; |
321 |
SDL_Color miDisabledColor; |
PG_Color miDisabledColor; |
322 |
|
|
323 |
SDL_Color sepNormalColor; |
PG_Color sepNormalColor; |
324 |
SDL_Color sepShadowColor; |
PG_Color sepShadowColor; |
325 |
|
|
326 |
int xPadding; |
int xPadding; |
327 |
int yPadding; |
int yPadding; |