#include <sdlgradientwidget.h>
Inheritance diagram for SDLGradientWidget
Public Methods | |
SDLGradientWidget (SDLWidget* parent, SDL_Rect& r) | |
~SDLGradientWidget () | |
void | LoadThemeStyle (const char* widgettype) |
Load a style from the theme definition. More... | |
void | LoadThemeStyle (const char* widgettype, const char* objectname) |
Load a style from the theme definition. More... | |
bool | SetBackground (const char* filename, int mode=BKMODE_TILE) |
Load the background image from a file. More... | |
bool | SetBackground (SDL_Surface* surface, int mode=BKMODE_TILE) |
Define a surface as background image (will not be freed). More... | |
void | SetBackgroundBlend (Uint8 backblend) |
Defines the "blend-level" of gradient & background. More... | |
void | SetGradient (SDL_Gradient& grad) |
Set the background gradient. More... | |
Protected Methods | |
void | eventDraw (SDL_Surface* surface, SDL_Rect* rect) |
Protected Attributes | |
SDL_Gradient | my_gradient |
SDL_Surface* | my_background |
Uint8 | my_blendLevel |
bool | my_backgroundFree |
int | my_backgroundMode |
int | my_bordersize |
Objects that want to be pretty derive from this.
Definition at line 50 of file sdlgradientwidget.h.
|
|
|
|
|
Load a style from the theme definition.
Reimplemented from SDLWidget. Reimplemented in SDLLineEdit. |
|
Load a style from the theme definition.
Reimplemented from SDLWidget. Reimplemented in SDLLineEdit, SDLProgressBar, SDLRadioButton, SDLScrollBar, SDLSlider, and SDLWindow. |
|
Define a surface as background image (will not be freed).
|
|
Load the background image from a file.
|
|
Defines the "blend-level" of gradient & background.
|
|
Set the background gradient.
|
|
Reimplemented from SDLDrawObject. Reimplemented in SDLLineEdit, SDLProgressBar, and SDLWindow.
|
|
Definition at line 91 of file sdlgradientwidget.h. |
|
Definition at line 94 of file sdlgradientwidget.h. |
|
Definition at line 95 of file sdlgradientwidget.h. |
|
Definition at line 93 of file sdlgradientwidget.h. |
|
Definition at line 96 of file sdlgradientwidget.h. |
|
Definition at line 90 of file sdlgradientwidget.h. |