#include <sdlbutton.h>
Inheritance diagram for SDLUserButton
Public Methods | |
SDLUserButton (SDLWidget* parent, int btnid, SDL_Rect& r, char* text = NULL) | |
virtual | ~SDLUserButton () |
void | DrawBorder (int size=2) |
bool | SetIcon (char* filenameup, char* filenamedown = NULL, Uint32 colorkey = 0x000000FF) |
SWIG has problems with this, for some reason.. More... | |
bool | SetIcon (SDL_Surface* icon_up, SDL_Surface* icon_down = NULL) |
void | SetBorderSize (int norm, int pressed, int high) |
void | SetToggle (bool bToggle) |
void | SetPressed (bool pressed) |
void | SetTransparency (int norm, int pressed, int high) |
void | SetText (char* text) |
char* | GetText () |
bool | GetPressed () |
Protected Methods | |
void | eventDraw (SDL_Surface* surface, SDL_Rect* rect) |
void | eventSizeWindow (int w, int h) |
void | eventMouseLeave () |
void | eventMouseEnter () |
bool | eventMouseButtonUp (const SDL_MouseButtonEvent* button) |
Overridable Eventhandler for a SDL_MouseButtonEvent message. More... | |
bool | eventMouseButtonDown (const SDL_MouseButtonEvent* button) |
Overridable Eventhandler for a SDL_MouseButtonEvent message. More... | |
virtual void | OnButtonSurface (SDL_Surface** surface, int newstate, int w, int h) |
Protected Attributes | |
int | bordersize [3] |
int | transparency [3] |
int | state |
int | id |
int | my_pressShift |
This should be integrated with SDLButton once the themeing takes place as this current buttom system is a little odd.
Definition at line 51 of file sdlbutton.h.
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in SDLButton. |
|
|
|
|
|
SWIG has problems with this, for some reason.. (?) |
|
|
|
|
|
|
|
|
|
Reimplemented from SDLDrawObject. |
|
Overridable Eventhandler for a SDL_MouseButtonEvent message. This handler is called when a mouse button is pressed. The default implementation returns 'false' which indicates that this message is not processed by this object.
Reimplemented from SDLMessageObject. Reimplemented in SDLScrollBar::ScrollButton. |
|
Overridable Eventhandler for a SDL_MouseButtonEvent message. This handler is called when a mouse button is released. The default implementation returns 'false' which indicates that this message is not processed by this object.
Reimplemented from SDLMessageObject. Reimplemented in SDLScrollBar::ScrollButton. |
|
Reimplemented from SDLWidget. |
|
Reimplemented from SDLWidget. |
|
Reimplemented from SDLDrawObject. |
|
Definition at line 118 of file sdlbutton.h. |
|
Definition at line 121 of file sdlbutton.h. |
|
Definition at line 122 of file sdlbutton.h. |
|
Definition at line 120 of file sdlbutton.h. |
|
Definition at line 119 of file sdlbutton.h. |