#include <controlgrab.h>
Inheritance diagram for VGUI::ControlGrab:


Public Member Functions | |
| ControlGrab () | |
| ControlGrab (Widget *w) | |
| ~ControlGrab () | |
| 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 | IncValueRelease () |
| void | DecValueRelease () |
| void | Press () |
| void | Release () |
| void | GrabKey (SDLKey key) |
| void | GrabMouseMovement (string direction) |
| void | GrabMouseButton (int button_idx) |
| void | GrabJoyButton (Uint8 joy_idx, Uint8 joy_btn) |
| void | GrabJoyMove (Uint8 joy_idx, Uint8 joy_axis, bool joy_positive, float joy_value) |
| void | SelectIcon (unsigned int new_selected_icon) |
| string | GetSetting () |
| float | GetSpacing () |
| bool | GetAdding () |
| bool | GetAnalog () |
| bool | GetOnlyOne () |
| void | SetSetting (string new_setting) |
| void | SetSpacing (float new_spacing) |
| void | SetAnalog (bool new_analog) |
| void | SetOnlyOne (bool new_only_one) |
Private Member Functions | |
| void | BuildControlVectors () |
Private Attributes | |
| TEXTURE_HANDLE | add_tex |
| TEXTURE_HANDLE | add_tex_sel |
| TEXTURE_HANDLE | key_tex |
| TEXTURE_HANDLE | joy_axis_tex |
| TEXTURE_HANDLE | joy_btn_tex |
| TEXTURE_HANDLE | mouse_btn_tex |
| TEXTURE_HANDLE | mouse_move_tex |
| TEXTURE_HANDLE | key_tex_x |
| TEXTURE_HANDLE | joy_axis_tex_x |
| TEXTURE_HANDLE | joy_btn_tex_x |
| TEXTURE_HANDLE | mouse_btn_tex_x |
| TEXTURE_HANDLE | mouse_move_tex_x |
| bool | l_down |
| bool | r_down |
| bool | mbtn_down |
| bool | adding |
| bool | pressed |
| bool | analog |
| string | setting |
| float | spacing |
| vector< ControlSet > | local_controls |
| unsigned int | selected_icon |
| unsigned int | pressed_icon |
| unsigned int | clicked_icon |
| Uint32 | add_start |
| bool | only_one |
Definition at line 31 of file controlgrab.h.
|
|
|
|
|
|
Definition at line 66 of file controlgrab.cpp. |
|
|
|
Reimplemented from VGUI::Widget. Definition at line 387 of file controlgrab.cpp. |
|
|
Reimplemented from VGUI::Widget. Definition at line 393 of file controlgrab.cpp. References l_down, local_controls, and selected_icon. |
|
|
Reimplemented from VGUI::Widget. Definition at line 291 of file controlgrab.cpp. References add_tex, add_tex_sel, VGUI::Widget::center, UTILITY::DrawButton(), VGUI::Widget::enabled, VGUI::Location::GetXPercent(), VGUI::Location::GetYPercent(), local_controls, VGUI::Widget::rel_width, VGUI::Widget::selected, selected_icon, spacing, and utility. |
|
|
Reimplemented from VGUI::Widget. Definition at line 286 of file controlgrab.cpp. |
|
|
Reimplemented from VGUI::Widget. Definition at line 75 of file controlgrab.h. References adding. |
|
|
Definition at line 76 of file controlgrab.h. References analog. |
|
|
Definition at line 77 of file controlgrab.h. References only_one. |
|
|
Definition at line 73 of file controlgrab.h. References setting. |
|
|
Definition at line 74 of file controlgrab.h. References spacing. |
|
||||||||||||
|
Reimplemented from VGUI::Widget. Definition at line 520 of file controlgrab.cpp. References analog, joy_btn_tex, joy_btn_tex_x, local_controls, only_one, VGUI::ControlSet::SetControl(), CONTROL::SetJoyButton(), CONTROL::SetJoyNum(), CONTROL::SetJoyPushDown(), CONTROL::SetJoyType(), VGUI::ControlSet::SetName(), CONTROL::SetName(), CONTROL::SetOneTime(), VGUI::ControlSet::SetTex(), VGUI::ControlSet::SetTexX(), setting, and CONTROL::SetType(). |
|
||||||||||||||||||||
|
Reimplemented from VGUI::Widget. Definition at line 551 of file controlgrab.cpp. References joy_axis_tex, joy_axis_tex_x, local_controls, Negative, only_one, Positive, VGUI::ControlSet::SetControl(), CONTROL::SetJoyAxis(), CONTROL::SetJoyAxisType(), CONTROL::SetJoyNum(), CONTROL::SetJoyType(), VGUI::ControlSet::SetName(), CONTROL::SetName(), VGUI::ControlSet::SetTex(), VGUI::ControlSet::SetTexX(), setting, and CONTROL::SetType(). |
|
|
Reimplemented from VGUI::Widget. Definition at line 430 of file controlgrab.cpp. References analog, KEYMAN::GetKeyName(), key_tex, key_tex_x, keyman, local_controls, only_one, VGUI::ControlSet::SetControl(), CONTROL::SetKeyCode(), CONTROL::SetKeyPushDown(), VGUI::ControlSet::SetName(), CONTROL::SetName(), CONTROL::SetOneTime(), VGUI::ControlSet::SetTex(), VGUI::ControlSet::SetTexX(), setting, and CONTROL::SetType(). |
|
|
Reimplemented from VGUI::Widget. Definition at line 477 of file controlgrab.cpp. References analog, local_controls, mouse_btn_tex, mouse_btn_tex_x, only_one, VGUI::ControlSet::SetControl(), CONTROL::SetMouseButton(), CONTROL::SetMousePushDown(), CONTROL::SetMouseType(), VGUI::ControlSet::SetName(), CONTROL::SetName(), CONTROL::SetOneTime(), VGUI::ControlSet::SetTex(), VGUI::ControlSet::SetTexX(), setting, and CONTROL::SetType(). |
|
|
Reimplemented from VGUI::Widget. Definition at line 458 of file controlgrab.cpp. References local_controls, mouse_move_tex, mouse_move_tex_x, only_one, VGUI::ControlSet::SetControl(), CONTROL::SetMouseDirection(), CONTROL::SetMouseType(), VGUI::ControlSet::SetName(), CONTROL::SetName(), VGUI::ControlSet::SetTex(), VGUI::ControlSet::SetTexX(), setting, and CONTROL::SetType(). |
|
|
Reimplemented from VGUI::Widget. Definition at line 368 of file controlgrab.cpp. |
|
|
Reimplemented from VGUI::Widget. Definition at line 374 of file controlgrab.cpp. References local_controls, r_down, Release(), and selected_icon. |
|
||||||||||||
|
Reimplemented from VGUI::Widget. Definition at line 588 of file controlgrab.cpp. References VGUI::Widget::center, VGUI::Location::GetXPercent(), VGUI::Location::GetYPercent(), local_controls, VGUI::Widget::rel_height, VGUI::Widget::rel_width, selected_icon, and spacing. |
|
||||||||||||
|
Reimplemented from VGUI::Widget. Definition at line 621 of file controlgrab.cpp. References VGUI::Widget::center, clicked_icon, VGUI::Location::GetXPercent(), VGUI::Location::GetYPercent(), local_controls, mbtn_down, VGUI::Widget::rel_height, VGUI::Widget::rel_width, and spacing. |
|
||||||||||||
|
Reimplemented from VGUI::Widget. Definition at line 653 of file controlgrab.cpp. References add_start, VGUI::Widget::center, clicked_icon, VGUI::Location::GetXPercent(), VGUI::Location::GetYPercent(), local_controls, mbtn_down, VGUI::Widget::rel_height, VGUI::Widget::rel_width, selected_icon, and spacing. |
|
|
Reimplemented from VGUI::Widget. Definition at line 406 of file controlgrab.cpp. References pressed, pressed_icon, and selected_icon. |
|
|
Reimplemented from VGUI::Widget. Definition at line 412 of file controlgrab.cpp. References add_start, local_controls, pressed, pressed_icon, and selected_icon. Referenced by DecValuePress(), IncValuePress(), and IncValueRelease(). |
|
|
Reimplemented from VGUI::Widget. Definition at line 281 of file controlgrab.cpp. References BuildControlVectors(). |
|
|
Reimplemented from VGUI::Widget. Definition at line 271 of file controlgrab.cpp. References GAMECONTROLS::AddControl(), GAMECONTROLS::DeleteControlsWithAction(), gamecontrols, local_controls, and setting. |
|
|
Reimplemented from VGUI::Widget. Definition at line 71 of file controlgrab.h. References selected_icon. |
|
|
Definition at line 80 of file controlgrab.h. References analog. |
|
|
Definition at line 81 of file controlgrab.h. References only_one. |
|
|
Reimplemented from VGUI::Widget. Definition at line 78 of file controlgrab.h. References BuildControlVectors(), and setting. |
|
|
Definition at line 262 of file controlgrab.cpp. References VGUI::Widget::rel_width, spacing, and VGUI::Widget::width_auto. |
|
|
Definition at line 45 of file controlgrab.h. Referenced by MouseRelease(), and Release(). |
|
|
Definition at line 36 of file controlgrab.h. Referenced by ControlGrab(), and Draw(). |
|
|
Definition at line 36 of file controlgrab.h. Referenced by ControlGrab(), and Draw(). |
|
|
Definition at line 39 of file controlgrab.h. Referenced by ControlGrab(), and GetAdding(). |
|
|
Definition at line 40 of file controlgrab.h. Referenced by ControlGrab(), GetAnalog(), GrabJoyButton(), GrabKey(), GrabMouseButton(), and SetAnalog(). |
|
|
Definition at line 44 of file controlgrab.h. Referenced by ControlGrab(), MousePress(), and MouseRelease(). |
|
|
Definition at line 37 of file controlgrab.h. Referenced by ControlGrab(), and GrabJoyMove(). |
|
|
Definition at line 38 of file controlgrab.h. Referenced by ControlGrab(), and GrabJoyMove(). |
|
|
Definition at line 37 of file controlgrab.h. Referenced by ControlGrab(), and GrabJoyButton(). |
|
|
Definition at line 38 of file controlgrab.h. Referenced by ControlGrab(), and GrabJoyButton(). |
|
|
Definition at line 37 of file controlgrab.h. Referenced by BuildControlVectors(), ControlGrab(), and GrabKey(). |
|
|
Definition at line 38 of file controlgrab.h. Referenced by BuildControlVectors(), ControlGrab(), and GrabKey(). |
|
|
Definition at line 39 of file controlgrab.h. Referenced by ControlGrab(), DecValuePress(), and DecValueRelease(). |
|
|
Definition at line 43 of file controlgrab.h. Referenced by BuildControlVectors(), DecValueRelease(), Draw(), GrabJoyButton(), GrabJoyMove(), GrabKey(), GrabMouseButton(), GrabMouseMovement(), IncValueRelease(), MouseOver(), MousePress(), MouseRelease(), Release(), and Save(). |
|
|
Definition at line 39 of file controlgrab.h. Referenced by ControlGrab(), MousePress(), and MouseRelease(). |
|
|
Definition at line 37 of file controlgrab.h. Referenced by ControlGrab(), and GrabMouseButton(). |
|
|
Definition at line 38 of file controlgrab.h. Referenced by ControlGrab(), and GrabMouseButton(). |
|
|
Definition at line 37 of file controlgrab.h. Referenced by ControlGrab(), and GrabMouseMovement(). |
|
|
Definition at line 38 of file controlgrab.h. Referenced by ControlGrab(), and GrabMouseMovement(). |
|
|
Definition at line 46 of file controlgrab.h. Referenced by ControlGrab(), GetOnlyOne(), GrabJoyButton(), GrabJoyMove(), GrabKey(), GrabMouseButton(), GrabMouseMovement(), and SetOnlyOne(). |
|
|
Definition at line 39 of file controlgrab.h. |
|
|
Definition at line 44 of file controlgrab.h. Referenced by ControlGrab(), Press(), and Release(). |
|
|
Definition at line 39 of file controlgrab.h. Referenced by ControlGrab(), IncValuePress(), and IncValueRelease(). |
|
|
Definition at line 44 of file controlgrab.h. Referenced by ControlGrab(), DecValueRelease(), Draw(), IncValueRelease(), MouseOver(), MouseRelease(), Press(), Release(), and SelectIcon(). |
|
|
Definition at line 41 of file controlgrab.h. Referenced by BuildControlVectors(), ControlGrab(), GetSetting(), GrabJoyButton(), GrabJoyMove(), GrabKey(), GrabMouseButton(), GrabMouseMovement(), Save(), and SetSetting(). |
|
|
Definition at line 42 of file controlgrab.h. Referenced by ControlGrab(), Draw(), GetSpacing(), MouseOver(), MousePress(), MouseRelease(), and SetSpacing(). |
1.4.6