#include <toggle.h>
Inheritance diagram for VGUI::Toggle:


Public Member Functions | |
| Toggle () | |
| Toggle (Widget *w) | |
| ~Toggle () | |
| 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 | Press () |
| void | Release () |
| void | ResetValue () |
| bool | GetValue () |
| bool | GetDefaultValue () |
| string | GetTrueText () |
| string | GetFalseText () |
| float | GetSpacing () |
| void | SetValue (bool new_value) |
| void | SetDefaultValue (bool new_value) |
| void | SetTrueText (string txt) |
| void | SetFalseText (string txt) |
| void | SetSetting (string new_setting) |
| void | SetSpacing (float new_spacing) |
| void | TogValue () |
Private Attributes | |
| TEXTURE_HANDLE | on_up |
| TEXTURE_HANDLE | on_down |
| TEXTURE_HANDLE | off_up |
| TEXTURE_HANDLE | off_down |
| bool | value |
| bool | default_value |
| string | setting |
| string | true_txt |
| string | false_txt |
| float | tex_width |
| float | tex_height |
| float | spacing |
| bool | down |
Definition at line 9 of file toggle.h.
|
|
Definition at line 6 of file toggle.cpp. |
|
|
|
Definition at line 66 of file toggle.cpp. |
|
|
Reimplemented from VGUI::Widget. Definition at line 75 of file toggle.cpp. References VGUI::Widget::center, VGUI::Widget::color_b, VGUI::Widget::color_g, VGUI::Widget::color_r, down, UTILITY::Draw2D(), VGUI::Widget::enabled, false_txt, font, VGUI::Widget::font_size, VGUI::Location::GetXPercent(), VGUI::Location::GetYPercent(), FONT::Height(), off_down, off_up, on_down, on_up, FONT::Print(), VGUI::Widget::rel_height, VGUI::Widget::rel_width, VGUI::Widget::selected, spacing, tex_width, VGUI::Widget::text, VGUI::Widget::tip, true_txt, utility, value, and FONT::Width(). |
|
|
Reimplemented from VGUI::Widget. Definition at line 70 of file toggle.cpp. |
|
|
Definition at line 35 of file toggle.h. References default_value. |
|
|
Definition at line 37 of file toggle.h. References false_txt. |
|
|
Definition at line 38 of file toggle.h. References spacing. |
|
|
Definition at line 36 of file toggle.h. References true_txt. |
|
|
Definition at line 34 of file toggle.h. References value. |
|
||||||||||||
|
Reimplemented from VGUI::Widget. Definition at line 122 of file toggle.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 133 of file toggle.cpp. References down. |
|
||||||||||||
|
Reimplemented from VGUI::Widget. Definition at line 139 of file toggle.cpp. References down. |
|
|
Reimplemented from VGUI::Widget. Definition at line 145 of file toggle.cpp. References down. |
|
|
Reimplemented from VGUI::Widget. Definition at line 150 of file toggle.cpp. References down. |
|
|
Reimplemented from VGUI::Widget. Definition at line 115 of file toggle.cpp. References SETTINGS::Get(), setting, settings, and SetValue(). |
|
|
Reimplemented from VGUI::Widget. Definition at line 109 of file toggle.cpp. References default_value, SETTINGS::Set(), setting, settings, and value. |
|
|
Reimplemented from VGUI::Widget. Definition at line 40 of file toggle.h. References default_value. |
|
|
Definition at line 42 of file toggle.h. References false_txt. |
|
|
Reimplemented from VGUI::Widget. Definition at line 43 of file toggle.h. References setting. |
|
|
Definition at line 57 of file toggle.cpp. References VGUI::Widget::rel_width, spacing, tex_width, and VGUI::Widget::width_auto. |
|
|
Definition at line 41 of file toggle.h. References true_txt. |
|
|
Reimplemented from VGUI::Widget. Definition at line 39 of file toggle.h. References value. Referenced by ResetValue(). |
|
|
Reimplemented from VGUI::Widget. Definition at line 45 of file toggle.h. References value. |
|
|
Definition at line 13 of file toggle.h. Referenced by GetDefaultValue(), Save(), SetDefaultValue(), and Toggle(). |
|
|
Definition at line 18 of file toggle.h. Referenced by Draw(), MousePress(), MouseRelease(), Press(), Release(), and Toggle(). |
|
|
Definition at line 16 of file toggle.h. Referenced by Draw(), GetFalseText(), and SetFalseText(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 14 of file toggle.h. Referenced by ResetValue(), Save(), SetSetting(), and Toggle(). |
|
|
Definition at line 17 of file toggle.h. Referenced by Draw(), GetSpacing(), SetSpacing(), and Toggle(). |
|
|
Definition at line 17 of file toggle.h. Referenced by Toggle(). |
|
|
Definition at line 17 of file toggle.h. Referenced by Draw(), SetSpacing(), and Toggle(). |
|
|
Definition at line 15 of file toggle.h. Referenced by Draw(), GetTrueText(), and SetTrueText(). |
|
|
Definition at line 13 of file toggle.h. Referenced by Draw(), GetValue(), Save(), SetValue(), Toggle(), and TogValue(). |
1.4.6