vgui_dialog_impl::element Struct Reference

#include <vgui_dialog_impl.h>

List of all members.


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 149 of file vgui_dialog_impl.h.


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.

Constructor & Destructor Documentation

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

Definition at line 165 of file vgui_dialog_impl.h.


Member Data Documentation

element_type vgui_dialog_impl::element::type

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

Definition at line 152 of file vgui_dialog_impl.h.

void* vgui_dialog_impl::element::widget

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 160 of file vgui_dialog_impl.h.

vgui_dialog_field* vgui_dialog_impl::element::field

Field to collect data from the user.

The derived GUI implementation should not delete these.

Definition at line 163 of file vgui_dialog_impl.h.


The documentation for this struct was generated from the following file:
Generated on Sun Nov 22 05:12:05 2009 for core/vgui by  doxygen 1.5.1