Public Member Functions | Public Attributes | Private Attributes
vgui_string_field Class Reference

A dialog field implementation that holds a vcl_string. More...

#include <vgui_string_field.h>

Inheritance diagram for vgui_string_field:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 vgui_string_field (const char *txt, vcl_string &var_to_modify)
 Constructor - creates a string field with the given text as label.
 ~vgui_string_field ()
 Destructor.
vcl_string current_value () const
 Returns the current value of the string field.
bool update_value (vcl_string const &s)
 Set the given string to be the value of the string field.

Public Attributes

vcl_string label

Private Attributes

vcl_string & var_

Detailed Description

A dialog field implementation that holds a vcl_string.

Definition at line 24 of file vgui_string_field.h.


Constructor & Destructor Documentation

vgui_string_field::vgui_string_field ( const char *  txt,
vcl_string &  var_to_modify 
) [inline]

Constructor - creates a string field with the given text as label.

Definition at line 30 of file vgui_string_field.h.

vgui_string_field::~vgui_string_field ( ) [inline]

Destructor.

Definition at line 34 of file vgui_string_field.h.


Member Function Documentation

vcl_string vgui_string_field::current_value ( ) const [inline, virtual]

Returns the current value of the string field.

Implements vgui_dialog_field.

Definition at line 37 of file vgui_string_field.h.

bool vgui_string_field::update_value ( vcl_string const &  s) [inline, virtual]

Set the given string to be the value of the string field.

Implements vgui_dialog_field.

Definition at line 40 of file vgui_string_field.h.


Member Data Documentation

vcl_string vgui_dialog_field::label [inherited]

Definition at line 26 of file vgui_dialog_field.h.

vcl_string& vgui_string_field::var_ [private]

Definition at line 26 of file vgui_string_field.h.


The documentation for this class was generated from the following file: