#include <Button.h>
Inheritance diagram for gui::Button:
Public Member Functions | |
Button (Surface *, coord_t x, coord_t y, coord_t w, coord_t h, SurfaceHelper *=NULL) | |
Button (Surface *, coord_t x, coord_t y, buttonstyle_t, SurfaceHelper *=NULL) | |
~Button () | |
void | Draw () |
SDL_Surface * | GetScreen () |
Private Attributes | |
SDL_Surface * | m_screen_inverted |
SDL_Surface * | m_screen_inactive |
buttonstyle_t | m_style |
|
Definition at line 58 of file Button.cpp. References BUTTON_DEFAULT_BG_B, BUTTON_DEFAULT_BG_G, BUTTON_DEFAULT_BG_R, BUTTON_DEFAULT_FC_B, BUTTON_DEFAULT_FC_G, BUTTON_DEFAULT_FC_R, BUTTON_DEFAULT_FG_B, BUTTON_DEFAULT_FG_G, BUTTON_DEFAULT_FG_R, BUTTON_DEFAULT_FW, gui::coord_t, m_screen_inactive, and m_screen_inverted.
|
|
Definition at line 74 of file Button.cpp. References BUTTON_DEFAULT_BG_B, BUTTON_DEFAULT_BG_G, BUTTON_DEFAULT_BG_R, BUTTON_DEFAULT_FC_B, BUTTON_DEFAULT_FC_G, BUTTON_DEFAULT_FC_R, BUTTON_DEFAULT_FG_B, BUTTON_DEFAULT_FG_G, BUTTON_DEFAULT_FG_R, BUTTON_DEFAULT_FW, m_screen_inactive, m_screen_inverted, and SBSIZE.
|
|
Definition at line 90 of file Button.cpp. References m_screen_inactive, and m_screen_inverted.
|
|
Reimplemented from gui::Surface. Definition at line 103 of file Button.cpp. References BUTTONSTYLE_SBDOWN, BUTTONSTYLE_SBLEFT, BUTTONSTYLE_SBRIGHT, BUTTONSTYLE_SBUP, gui::coord_t, DEB, gui::Surface::GetBgColor(), gui::Surface::GetClientRectPtr(), gui::Surface::GetFgColor(), gui::Surface::GetFrameColor(), gui::Surface::GetFrameWidth(), gui::Surface::GetH(), gui::Surface::GetText(), gui::Surface::GetTTFont(), gui::Surface::GetW(), m_screen_inverted, m_style, SDL_fillTriangle(), and SPACED.
|
|
Reimplemented from gui::Surface. Definition at line 236 of file Button.cpp. References gui::Surface::IsInverted(), and m_screen_inverted.
|
|
|
|
Definition at line 45 of file Button.h. Referenced by Button(), Draw(), GetScreen(), and ~Button(). |
|
Definition at line 47 of file Button.h. Referenced by Draw(). |
|
|