#include <widget.h>
Inheritance diagram for VGUI::Widget:


Public Member Functions | |
| Widget () | |
| ~Widget () | |
| virtual void | Save (void) |
| virtual void | Draw (void) |
| virtual void | Draw (float opacity) |
| virtual void | IncValuePress (void) |
| virtual void | DecValuePress (void) |
| virtual void | IncValueRelease (void) |
| virtual void | DecValueRelease (void) |
| virtual void | HookIncValuePress (void) |
| virtual void | HookDecValuePress (void) |
| virtual void | HookIncValueRelease (void) |
| virtual void | HookDecValueRelease (void) |
| virtual void | HookRelease (void) |
| virtual void | BackspacePress () |
| virtual void | DeletePress () |
| virtual void | BackspaceRelease () |
| virtual void | DeleteRelease () |
| virtual string | GetAction (void) |
| virtual string | GetHook (void) |
| virtual int | GetNumCols (void) |
| virtual void | SetValue (bool val) |
| virtual void | SetValue (string val) |
| virtual void | SetValue (float val) |
| virtual void | SetDefaultValue (bool val) |
| virtual void | SetDefaultValue (string val) |
| virtual void | SetDefaultValue (float val) |
| virtual void | SetSetting (string new_setting) |
| virtual void | SetSaved (bool new_saved) |
| virtual bool | GetSaved () |
| virtual void | SetNumCols (int new_num_cols) |
| virtual void | TogValue (void) |
| virtual bool | MouseOver (float x, float y) |
| virtual void | Press (void) |
| virtual void | Release (void) |
| virtual string | MousePress (float x, float y) |
| virtual string | MouseRelease (float x, float y) |
| virtual void | ResetValue () |
| virtual void | ClearCar () |
| virtual void | EnterText (SDLKey key) |
| virtual void | GrabKey (SDLKey key) |
| virtual void | GrabMouseMovement (string direction) |
| virtual void | GrabMouseButton (int button_idx) |
| virtual void | GrabJoyButton (Uint8 joy_idx, Uint8 joy_btn) |
| virtual void | GrabJoyMove (Uint8 joy_idx, Uint8 joy_axis, bool joy_positive, float joy_value) |
| virtual void | SelectIcon (unsigned int new_selected_icon) |
| virtual bool | GetAdding () |
| Location | GetCenter () |
| string | GetName () |
| string | GetText () |
| string | GetType () |
| string | GetTip () |
| float | GetRelWidth () |
| float | GetRelHeight () |
| bool | GetEnabled () |
| bool | GetSelected () |
| bool | GetDefault () |
| bool | GetCancel () |
| bool | GetHasIcon () |
| bool | GetWidthAuto () |
| bool | GetHeightAuto () |
| int | GetFontSize () |
| float | GetColorR () |
| float | GetColorG () |
| float | GetColorB () |
| void | SetCenter (Location new_center) |
| void | SetName (string new_name) |
| void | SetText (string new_text) |
| void | SetType (string new_type) |
| void | SetTip (string new_tip) |
| void | SetRelWidth (float new_rel_width) |
| void | SetRelHeight (float new_rel_height) |
| void | SetEnabled (bool new_enabled) |
| void | SetSelected (bool new_selected) |
| void | SetDefault (bool new_is_default) |
| void | SetCancel (bool new_is_cancel) |
| void | SetHasIcon (bool new_has_icon) |
| void | SetWidthAuto (bool new_width_auto) |
| void | SetHeightAuto (bool new_height_auto) |
| void | SetFontSize (int new_font_size) |
| void | SetColor (float r, float g, float b) |
Protected Attributes | |
| Location | center |
| string | name |
| string | text |
| string | type |
| string | tip |
| float | rel_width |
| float | rel_height |
| bool | enabled |
| bool | selected |
| bool | is_default |
| bool | is_cancel |
| bool | has_icon |
| bool | width_auto |
| bool | height_auto |
| int | font_size |
| float | color_r |
| float | color_g |
| float | color_b |
Definition at line 37 of file widget.h.
|
|
Definition at line 38 of file widget.cpp. References color_b, color_g, color_r, enabled, font_size, has_icon, height_auto, is_cancel, is_default, name, rel_height, rel_width, selected, text, type, and width_auto. Referenced by VGUI::SpinningCar::LoadCar(). |
|
|
|
|
|
Reimplemented in VGUI::TextBox. |
|
|
Reimplemented in VGUI::TextBox. |
|
|
Reimplemented in VGUI::SpinningCar. |
|
|
Reimplemented in VGUI::ControlGrab, VGUI::Slider, VGUI::SpinningCar, VGUI::TextBox, VGUI::Wheel< wheel_t >, VGUI::Wheel2< wheel_t1, wheel_t2 >, and VGUI::Wheel< int >. |
|
|
Reimplemented in VGUI::ControlGrab, VGUI::Slider, VGUI::SpinningCar, VGUI::TextBox, VGUI::Wheel< wheel_t >, VGUI::Wheel2< wheel_t1, wheel_t2 >, and VGUI::Wheel< int >. |
|
|
Reimplemented in VGUI::TextBox. |
|
|
Reimplemented in VGUI::TextBox. |
|
|
|
|
Reimplemented in VGUI::TextBox. |
|
|
Reimplemented in VGUI::Button. |
|
|
Reimplemented in VGUI::ControlGrab. |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 122 of file widget.h. References height_auto. Referenced by VGUI::Button::Button(), VGUI::Calibrate::Calibrate(), VGUI::ControlGrab::ControlGrab(), VGUI::Image::Image(), VGUI::Label::Label(), VGUI::MultiImage::MultiImage(), VGUI::Slider::Slider(), VGUI::TextBox::TextBox(), VGUI::Toggle::Toggle(), VGUI::Wheel< wheel_t >::Wheel(), and VGUI::Wheel2< wheel_t1, wheel_t2 >::Wheel2(). |
|
|
Reimplemented in VGUI::Wheel< wheel_t >, and VGUI::Wheel< int >. |
|
|
|
|
|
|
|
|
Reimplemented in VGUI::Wheel< wheel_t >, and VGUI::Wheel< int >. |
|
|
Reimplemented in ListBox, and VGUI::SpinningCar. Definition at line 117 of file widget.h. References selected. Referenced by VGUI::Button::Button(), VGUI::Calibrate::Calibrate(), VGUI::ControlGrab::ControlGrab(), VGUI::SpinningCar::GetSelected(), VGUI::Image::Image(), VGUI::Label::Label(), VGUI::MultiImage::MultiImage(), VGUI::Slider::Slider(), VGUI::SpinningCar::SpinningCar(), VGUI::TextBox::TextBox(), VGUI::Toggle::Toggle(), VGUI::Wheel< wheel_t >::Wheel(), and VGUI::Wheel2< wheel_t1, wheel_t2 >::Wheel2(). |
|
|
|
|
|
Definition at line 121 of file widget.h. References width_auto. Referenced by VGUI::Button::Button(), VGUI::Calibrate::Calibrate(), VGUI::ControlGrab::ControlGrab(), VGUI::Image::Image(), VGUI::Label::Label(), VGUI::MultiImage::MultiImage(), VGUI::Slider::Slider(), VGUI::TextBox::TextBox(), VGUI::Toggle::Toggle(), VGUI::Wheel< wheel_t >::Wheel(), and VGUI::Wheel2< wheel_t1, wheel_t2 >::Wheel2(). |
|
||||||||||||
|
Reimplemented in VGUI::ControlGrab. |
|
||||||||||||||||||||
|
Reimplemented in VGUI::Calibrate, and VGUI::ControlGrab. |
|
|
Reimplemented in VGUI::ControlGrab. |
|
|
Reimplemented in VGUI::ControlGrab. |
|
|
Reimplemented in VGUI::ControlGrab. |
|
|
Reimplemented in VGUI::Calibrate, VGUI::MultiImage, and VGUI::SpinningCar. |
|
|
Reimplemented in VGUI::Calibrate, VGUI::MultiImage, and VGUI::SpinningCar. |
|
|
Reimplemented in VGUI::Calibrate, VGUI::MultiImage, and VGUI::SpinningCar. |
|
|
Reimplemented in VGUI::Calibrate, VGUI::MultiImage, and VGUI::SpinningCar. |
|
|
Reimplemented in VGUI::SpinningCar. |
|
|
Reimplemented in VGUI::ControlGrab, VGUI::Slider, VGUI::SpinningCar, VGUI::TextBox, VGUI::Wheel< wheel_t >, VGUI::Wheel2< wheel_t1, wheel_t2 >, and VGUI::Wheel< int >. |
|
|
Reimplemented in VGUI::ControlGrab, VGUI::Slider, VGUI::SpinningCar, VGUI::TextBox, VGUI::Wheel< wheel_t >, VGUI::Wheel2< wheel_t1, wheel_t2 >, and VGUI::Wheel< int >. |
|
||||||||||||
|
||||||||||||
|
||||||||||||
|
|
Reimplemented in VGUI::Button, VGUI::ControlGrab, and VGUI::Toggle. |
|
|
|
|
Reimplemented in VGUI::Calibrate, VGUI::ControlGrab, VGUI::Slider, VGUI::SpinningCar, VGUI::TextBox, VGUI::Toggle, VGUI::Wheel< wheel_t >, VGUI::Wheel2< wheel_t1, wheel_t2 >, and VGUI::Wheel< int >. |
|
|
Reimplemented in VGUI::ControlGrab. |
|
|
Definition at line 138 of file widget.h. References is_cancel. Referenced by VGUI::SpinningCar::LoadCar(). |
|
|
Definition at line 128 of file widget.h. References center. Referenced by VGUI::SpinningCar::LoadCar(). |
|
||||||||||||||||
|
Definition at line 143 of file widget.h. References color_b, color_g, and color_r. Referenced by VGUI::SpinningCar::LoadCar(). |
|
|
Definition at line 137 of file widget.h. References is_default. Referenced by VGUI::SpinningCar::LoadCar(). |
|
|
Reimplemented in VGUI::Slider. |