#include <button.h>
Inheritance diagram for VGUI::Button:


Public Member Functions | |
| Button () | |
| Button (Widget *w) | |
| ~Button () | |
| void | Draw () |
| void | Draw (float opacity) |
| bool | MouseOver (float x, float y) |
| string | MousePress (float x, float y) |
| string | MouseRelease (float x, float y) |
| void | Press () |
| void | Release () |
| string | GetAction () |
| void | SetAction (string new_action) |
Private Attributes | |
| TEXTURE_HANDLE | btn_up |
| TEXTURE_HANDLE | btn_down |
| string | action |
| float | tex_width |
| float | tex_height |
| bool | down |
Definition at line 9 of file button.h.
|
|
|
|
|
|
Definition at line 49 of file button.cpp. |
|
|
Reimplemented from VGUI::Widget. Definition at line 58 of file button.cpp. References btn_down, btn_up, VGUI::Widget::center, VGUI::Widget::color_b, VGUI::Widget::color_g, VGUI::Widget::color_r, down, UTILITY::DrawButton(), VGUI::Widget::enabled, font, VGUI::Widget::font_size, VGUI::Location::GetXPercent(), VGUI::Location::GetYPercent(), FONT::Height(), FONT::Print(), VGUI::Widget::rel_height, VGUI::Widget::selected, VGUI::Widget::text, VGUI::Widget::tip, utility, and FONT::Width(). |
|
|
Reimplemented from VGUI::Widget. Definition at line 53 of file button.cpp. |
|
|
Reimplemented from VGUI::Widget. Definition at line 23 of file button.h. References action. |
|
||||||||||||
|
Reimplemented from VGUI::Widget. Definition at line 87 of file button.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 98 of file button.cpp. References down. |
|
||||||||||||
|
Reimplemented from VGUI::Widget. Definition at line 104 of file button.cpp. References down. |
|
|
Reimplemented from VGUI::Widget. Definition at line 110 of file button.cpp. References down. |
|
|
Reimplemented from VGUI::Widget. Definition at line 115 of file button.cpp. References down. |
|
|
Definition at line 24 of file button.h. References action. |
|
|
Definition at line 28 of file button.h. Referenced by Button(), GetAction(), and SetAction(). |
|
|
|
|
|
|
|
|
Definition at line 30 of file button.h. Referenced by Button(), Draw(), MousePress(), MouseRelease(), Press(), and Release(). |
|
|
Definition at line 29 of file button.h. Referenced by Button(). |
|
|
Definition at line 29 of file button.h. Referenced by Button(). |
1.4.6