Public Member Functions | Public Attributes
vgui_dialog_impl::element Struct Reference

Data associated with each field in the dialog box. More...

#include <vgui_dialog_impl.h>

List of all members.

Public Member Functions

 element ()

Public Attributes

element_type type
 What type of field this is (int, bool, file browser, etc).
void * widget
 A pointer to a GUI widget for this field, if one exists.
vgui_dialog_fieldfield
 Field to collect data from the user.

Detailed Description

Data associated with each field in the dialog box.

The representation of a dialog box in vgui is simply as a list of these elements.

Definition at line 160 of file vgui_dialog_impl.h.


Constructor & Destructor Documentation

vgui_dialog_impl::element::element ( ) [inline]

Definition at line 176 of file vgui_dialog_impl.h.


Member Data Documentation

Field to collect data from the user.

The derived GUI implementation should not delete these.

Definition at line 174 of file vgui_dialog_impl.h.

What type of field this is (int, bool, file browser, etc).

Definition at line 163 of file vgui_dialog_impl.h.

A pointer to a GUI widget for this field, if one exists.

This is null in most cases since it is easier to construct widgets as we need them, except perhaps for something complicated like a file browser or colour chooser. The GUI implementation is completely responsible for this pointer (i.e. ensuring memory deallocation when the dialog closes, etc.)

Definition at line 171 of file vgui_dialog_impl.h.


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