#include <Edit.h>
Inheritance diagram for gui::Edit:
Public Member Functions | |
Edit (Surface *, coord_t x, coord_t y, coord_t w, coord_t h, SurfaceHelper *=NULL) | |
~Edit () | |
void | Draw () |
void | OnKeyDown (SDL_keysym) |
void | OnFocus () |
void | OnLostFocus () |
void | OnHide () |
void | SetEcho (char) |
void | SetLine (const string &) |
const char * | GetLine () |
void | DumpMembers (FILE *) |
Private Attributes | |
string | m_line |
char | m_echo |
bool | m_bFocus |
|
Definition at line 60 of file Edit.cpp. References gui::coord_t, EDIT_DEFAULT_BG_B, EDIT_DEFAULT_BG_G, EDIT_DEFAULT_BG_R, EDIT_DEFAULT_FC_B, EDIT_DEFAULT_FC_G, EDIT_DEFAULT_FC_R, EDIT_DEFAULT_FG_B, EDIT_DEFAULT_FG_G, EDIT_DEFAULT_FG_R, and EDIT_DEFAULT_FW.
|
|
Definition at line 73 of file Edit.cpp.
|
|
Reimplemented from gui::Surface. Definition at line 84 of file Edit.cpp. References gui::coord_t, gui::Surface::GetBgColor(), gui::Surface::GetClientRectPtr(), gui::Surface::GetFgColor(), gui::Surface::GetH(), gui::Surface::GetTTFont(), m_bFocus, m_echo, and m_line.
|
|
Reimplemented from gui::Surface. Definition at line 216 of file Edit.cpp. References m_echo, m_line, and util::Xml::Write().
|
|
Definition at line 179 of file Edit.cpp. References m_line.
|
|
Reimplemented from gui::Surface. Definition at line 185 of file Edit.cpp. References m_bFocus.
|
|
Reimplemented from gui::Surface. Definition at line 199 of file Edit.cpp. References m_bFocus, and SDL_USEREVENT_LOSTFOCUS.
|
|
Reimplemented from gui::Surface. Definition at line 130 of file Edit.cpp. References gui::Surface::GetID(), gui::Surface::GetLocalID(), gui::Surface::GetParent(), GUI_EVENT_EDIT, gui::surface_event_struct::id, gui::surface_event_struct::local_id, m_line, gui::surface_event_struct::ptr, gui::surface_event_t, and gui::surface_event_struct::type.
|
|
Reimplemented from gui::Surface. Definition at line 192 of file Edit.cpp. References m_bFocus.
|
|
Definition at line 78 of file Edit.cpp. References m_echo.
|
|
Definition at line 171 of file Edit.cpp. References m_line.
|
|
Definition at line 46 of file Edit.h. Referenced by Draw(), OnFocus(), OnHide(), and OnLostFocus(). |
|
Definition at line 45 of file Edit.h. Referenced by Draw(), DumpMembers(), and SetEcho(). |
|
Definition at line 44 of file Edit.h. Referenced by Draw(), DumpMembers(), GetLine(), OnKeyDown(), and SetLine(). |
|
|