#include <sdlwidget.h>
Inheritance diagram for SDLWidget
Public Methods | |
SDLWidget (SDLWidget* parent, SDL_Rect& rect, bool storeBackground = false) | |
Creates a SDLWidget. More... | |
~SDLWidget () | |
Destroys a SDLWidget. More... | |
virtual void | LoadThemeStyle (const char* widgettype) |
Load a style from the theme definition. More... | |
virtual void | LoadThemeStyle (const char* widgettype, const char* objectname) |
Load a style from the theme definition. More... | |
void | StartWidgetDrag () |
Start to drag a widget. More... | |
void | WidgetDrag (int x, int y) |
void | EndWidgetDrag (int x, int y) |
bool | MoveWindow (int x, int y) |
Move a widget. More... | |
bool | SizeWindow (int w, int h) |
Resize a widget. More... | |
SDL_Point | ClientToScreen (int sx, int sy) |
SDL_Point | ScreenToClient (int x, int y) |
int | Width () |
int | Height () |
SDL_Surface* | GetWidgetSurface () |
SDL_Rect | GetWidgetRect () |
SDL_Surface* | GetScreenSurface () |
SDLWidget* | GetParent () |
Get the parentwidget of a widget. More... | |
void | AddChild (SDLWidget* child) |
bool | ProcessEvent (const SDL_Event* event) |
Process a native SDL event. More... | |
void | SetID (int id) |
int | GetID () |
bool | IsInside (SDL_Point p, SDL_Rect* r = NULL) |
bool | IsMouseInside () |
bool | IsDisplayRectValid () |
bool | Redraw (bool update = true) |
Redraw the surface of the widget. More... | |
void | Hide (bool fade = false) |
void | Show (bool fade = false) |
void | Update (bool doBlit = true) |
Update the widgets screen area. More... | |
void | Blit (bool recursive = true) |
void | SetChildTransparency (Uint8 t) |
int | GetChildCount () |
Get the number of childwidgets. More... | |
void | SetFont (TTF_Font* newfont) |
Set the font. More... | |
TTF_Font* | GetFont () |
Returns the current font. More... | |
void | SetScreenUpdate (bool update) |
OBSOLETE. More... | |
void | MoveRect (int x, int y) |
void | RecalcClipRect () |
void | SetTextColor (Uint32 color) |
void | SetTextColor (SDL_Color c) |
SDL_Color | GetTextColor () |
Static Public Methods | |
SDL_Rect& | mkrect (int x, int y, int w, int h) |
void | BulkUpdate () |
Protected Methods | |
virtual void | eventMouseLeave () |
virtual void | eventMouseEnter () |
virtual void | eventShow () |
virtual void | eventHide () |
bool | AcceptEvent (const SDL_Event* event) |
Overridable message filter function. More... | |
void | RemoveChild (SDLWidget* child) |
Protected Attributes | |
bool | bSetCaptureOnShow |
SDLWidget* | my_widgetListNext |
SDLWidget* | my_widgetListPrev |
Static Protected Attributes | |
SDLWidget* | widgetList |
Provides graphics context and message handling functionality.
Definition at line 51 of file sdlwidget.h.
|
Creates a SDLWidget.
|
|
Destroys a SDLWidget. This is the destructor for the SDLWidget class |
|
Overridable message filter function. Derivated classes can filter special events. The default implementation returns 'false' which indicates that this message is not processed by this object.
Reimplemented from SDLMessageObject. |
|
|
|
|
|
|
|
|
|
|
|
Get the number of childwidgets.
|
|
Returns the current font.
|
|
|
|
Get the parentwidget of a widget.
Reimplemented in SDLListBoxBaseItem, and SDLScrollBar::ScrollButton. |
|
|
|
|
|
|
|
|
|
Reimplemented in SDLListBoxBaseItem. |
|
|
|
Reimplemented from SDLDrawObject. |
|
|
|
|
|
Load a style from the theme definition.
Reimplemented in SDLButton, SDLGradientWidget, SDLLineEdit, and SDLListBoxItem. |
|
Load a style from the theme definition.
Reimplemented in SDLButton, SDLGradientWidget, SDLLineEdit, SDLProgressBar, SDLRadioButton, SDLScrollBar, SDLSlider, and SDLWindow. |
|
|
|
Move a widget.
Reimplemented from SDLDrawObject. |
|
Process a native SDL event.
Reimplemented from SDLMessageObject. |
|
|
|
Redraw the surface of the widget.
Reimplemented from SDLDrawObject. |
|
|
|
|
|
|
|
Set the font.
|
|
|
|
OBSOLETE.
Reimplemented from SDLDrawObject. |
|
|
|
|
|
|
|
Resize a widget.
Reimplemented from SDLDrawObject. |
|
Start to drag a widget. StartWidgetDrag prepares to widget to be dragged. |
|
Update the widgets screen area.
Reimplemented from SDLDrawObject. |
|
|
|
|
|
|
|
Reimplemented in SDLUserButton, SDLListBoxBaseItem, and SDLRadioButton. |
|
Reimplemented in SDLUserButton, SDLListBoxBaseItem, and SDLRadioButton. |
|
Reimplemented in SDLWidgetList. |
|
|
|
Definition at line 270 of file sdlwidget.h. |
|
Definition at line 273 of file sdlwidget.h. |
|
Definition at line 274 of file sdlwidget.h. |
|
Definition at line 272 of file sdlwidget.h. |