#include <textbox.h>
Inheritance diagram for VGUI::TextBox:


Public Member Functions | |
| TextBox () | |
| TextBox (Widget *w) | |
| ~TextBox () | |
| void | Draw () |
| void | Draw (float opacity) |
| void | Save () |
| bool | MouseOver (float x, float y) |
| string | MousePress (float x, float y) |
| string | MouseRelease (float x, float y) |
| void | ResetValue () |
| void | IncValuePress () |
| void | DecValuePress () |
| void | BackspacePress () |
| void | DeletePress () |
| void | IncValueRelease () |
| void | DecValueRelease () |
| void | BackspaceRelease () |
| void | DeleteRelease () |
| void | Release () |
| void | EnterText (SDLKey key) |
| string | GetValue () |
| string | GetSetting () |
| float | GetSpacing () |
| string | GetAccepts () |
| void | SetValue (string new_value) |
| void | SetSetting (string new_setting) |
| void | SetSpacing (float new_spacing) |
| void | SetAccepts (string new_accepts) |
Private Attributes | |
| TEXTURE_HANDLE | textbox_tex |
| TEXTURE_HANDLE | cursor_tex |
| TEXTURE_HANDLE | highlight_tex |
| bool | l_down |
| bool | r_down |
| bool | bkspc_down |
| bool | del_down |
| bool | mbtn_down |
| bool | cursor_on |
| string | value |
| string | setting |
| string | accepts |
| float | spacing |
| float | tex_width |
| float | tex_height |
| string::size_type | cursor_pos |
| string::size_type | highlight_start |
| string::size_type | highlight_end |
| Uint32 | last_blink |
Definition at line 9 of file textbox.h.
|
|
|
|
|
|
Definition at line 55 of file textbox.cpp. |
|
|
Reimplemented from VGUI::Widget. Definition at line 190 of file textbox.cpp. References bkspc_down, and Release(). |
|
|
Reimplemented from VGUI::Widget. Definition at line 196 of file textbox.cpp. References bkspc_down, cursor_pos, Release(), and value. |
|
|
Reimplemented from VGUI::Widget. Definition at line 175 of file textbox.cpp. |
|
|
Reimplemented from VGUI::Widget. Definition at line 181 of file textbox.cpp. References cursor_pos, l_down, and Release(). |
|
|
Reimplemented from VGUI::Widget. Definition at line 206 of file textbox.cpp. |
|
|
Reimplemented from VGUI::Widget. Definition at line 212 of file textbox.cpp. References cursor_pos, del_down, Release(), and value. |
|
|
Reimplemented from VGUI::Widget. Definition at line 85 of file textbox.cpp. References VGUI::Widget::center, VGUI::Widget::color_b, VGUI::Widget::color_g, VGUI::Widget::color_r, cursor_on, cursor_pos, cursor_tex, UTILITY::Draw2D(), UTILITY::DrawButton(), VGUI::Widget::enabled, font, VGUI::Widget::font_size, VGUI::Location::GetXPercent(), VGUI::Location::GetYPercent(), FONT::Height(), last_blink, FONT::Print(), VGUI::Widget::rel_height, VGUI::Widget::rel_width, VGUI::Widget::selected, spacing, tex_width, VGUI::Widget::text, textbox_tex, VGUI::Widget::tip, utility, value, and FONT::Width(). |
|
|
Reimplemented from VGUI::Widget. Definition at line 80 of file textbox.cpp. |
|
|
Reimplemented from VGUI::Widget. Definition at line 226 of file textbox.cpp. References accepts, cursor_pos, and value. |
|
|
Definition at line 45 of file textbox.h. References accepts. |
|
|
Definition at line 43 of file textbox.h. References setting. |
|
|
Definition at line 44 of file textbox.h. References spacing. |
|
|
Definition at line 42 of file textbox.h. References value. |
|
|
Reimplemented from VGUI::Widget. Definition at line 160 of file textbox.cpp. |
|
|
Reimplemented from VGUI::Widget. Definition at line 166 of file textbox.cpp. References cursor_pos, r_down, Release(), and value. |
|
||||||||||||
|
Reimplemented from VGUI::Widget. Definition at line 252 of file textbox.cpp. References VGUI::Widget::center, VGUI::Location::GetXPercent(), VGUI::Location::GetYPercent(), VGUI::Widget::rel_height, and VGUI::Widget::rel_width. |
|
||||||||||||
|
Reimplemented from VGUI::Widget. Definition at line 315 of file textbox.cpp. References VGUI::Widget::center, cursor_pos, font, VGUI::Location::GetXPercent(), VGUI::Location::GetYPercent(), highlight_start, mbtn_down, VGUI::Widget::rel_height, VGUI::Widget::rel_width, spacing, value, and FONT::Width(). |
|
||||||||||||
|
Reimplemented from VGUI::Widget. Definition at line 380 of file textbox.cpp. References VGUI::Widget::center, cursor_pos, font, VGUI::Location::GetXPercent(), VGUI::Location::GetYPercent(), highlight_end, highlight_start, mbtn_down, VGUI::Widget::rel_height, VGUI::Widget::rel_width, spacing, value, and FONT::Width(). |
|
|
Reimplemented from VGUI::Widget. Definition at line 221 of file textbox.cpp. References bkspc_down, del_down, l_down, and r_down. Referenced by BackspacePress(), BackspaceRelease(), DecValuePress(), DecValueRelease(), DeletePress(), DeleteRelease(), IncValuePress(), and IncValueRelease(). |
|
|
Reimplemented from VGUI::Widget. Definition at line 73 of file textbox.cpp. References SETTINGS::Get(), setting, settings, and SetValue(). |
|
|
Reimplemented from VGUI::Widget. Definition at line 68 of file textbox.cpp. References SETTINGS::Set(), setting, settings, and value. |
|
|
Definition at line 49 of file textbox.h. References accepts. |
|
|
Reimplemented from VGUI::Widget. Definition at line 47 of file textbox.h. References setting. |
|
|
Definition at line 59 of file textbox.cpp. References font, VGUI::Widget::rel_width, spacing, FONT::Width(), and VGUI::Widget::width_auto. |
|
|
Reimplemented from VGUI::Widget. Definition at line 46 of file textbox.h. References value. Referenced by ResetValue(). |
|
|
Definition at line 14 of file textbox.h. Referenced by EnterText(), GetAccepts(), SetAccepts(), and TextBox(). |
|
|
Definition at line 13 of file textbox.h. Referenced by BackspacePress(), BackspaceRelease(), Release(), and TextBox(). |
|
|
|
|
|
Definition at line 16 of file textbox.h. Referenced by BackspaceRelease(), DecValueRelease(), DeleteRelease(), Draw(), EnterText(), IncValueRelease(), MousePress(), MouseRelease(), and TextBox(). |
|
|
|
|
|
Definition at line 13 of file textbox.h. Referenced by DeletePress(), DeleteRelease(), Release(), and TextBox(). |
|
|
Definition at line 16 of file textbox.h. Referenced by MouseRelease(), and TextBox(). |
|
|
Definition at line 16 of file textbox.h. Referenced by MousePress(), MouseRelease(), and TextBox(). |
|
|
Definition at line 12 of file textbox.h. Referenced by TextBox(). |
|
|
Definition at line 13 of file textbox.h. Referenced by DecValuePress(), DecValueRelease(), Release(), and TextBox(). |
|
|
Definition at line 17 of file textbox.h. Referenced by Draw(). |
|
|
Definition at line 13 of file textbox.h. Referenced by MousePress(), MouseRelease(), and TextBox(). |
|
|
Definition at line 13 of file textbox.h. Referenced by IncValuePress(), IncValueRelease(), Release(), and TextBox(). |
|
|
Definition at line 14 of file textbox.h. Referenced by GetSetting(), ResetValue(), Save(), SetSetting(), and TextBox(). |
|
|
Definition at line 15 of file textbox.h. Referenced by Draw(), GetSpacing(), MousePress(), MouseRelease(), SetSpacing(), and TextBox(). |
|
|
Definition at line 15 of file textbox.h. Referenced by TextBox(). |
|
|
|
|
|
|
|
|
Definition at line 14 of file textbox.h. Referenced by BackspaceRelease(), DeleteRelease(), Draw(), EnterText(), GetValue(), IncValueRelease(), MousePress(), MouseRelease(), Save(), and SetValue(). |
1.4.6