Templated fields for dialog boxes. More...
#include <vgui_simple_field.h>
Public Member Functions | |
vgui_simple_field (const char *text, T &variable_to_modify) | |
~vgui_simple_field () | |
vcl_string | current_value () const |
bool | update_value (const vcl_string &) |
Public Attributes | |
T & | var |
vcl_string | label |
Templated fields for dialog boxes.
vgui_simple_field is templated over the type of variable it stores. The given template instances are all for fundamental types, but the template can be used for any data type that has the input and output stream operators defined (<< and >>)
Definition at line 31 of file vgui_simple_field.h.
vgui_simple_field< T >::vgui_simple_field | ( | const char * | text, |
T & | variable_to_modify | ||
) |
Definition at line 17 of file vgui_simple_field.cxx.
vgui_simple_field< T >::~vgui_simple_field | ( | ) |
Definition at line 24 of file vgui_simple_field.cxx.
vcl_string vgui_simple_field< T >::current_value | ( | ) | const [virtual] |
Implements vgui_dialog_field.
Definition at line 29 of file vgui_simple_field.cxx.
bool vgui_simple_field< T >::update_value | ( | const vcl_string & | s | ) | [virtual] |
Implements vgui_dialog_field.
Definition at line 37 of file vgui_simple_field.cxx.
vcl_string vgui_dialog_field::label [inherited] |
Definition at line 26 of file vgui_dialog_field.h.
T& vgui_simple_field< T >::var |
Definition at line 40 of file vgui_simple_field.h.