< home

GUIManifester Class Reference

Base class for GUI manifesters. More...

#include <GUIExposition.h>

Inheritance diagram for GUIManifester:

ExposerManifester List of all members.

Public Member Functions

 GUIManifester (Exposer &exposer, array_type &elements)
 Initializes the manifester with the specified exposer and factory vector.
vector< Arrangement > BuildWindow ()
 The generic GUI exposer construction implementation.
virtual void ManifestExposer ()=0
 The function responsible for manifestering the exposer (e.g., constructing and showing the GUI window) Some manifester classes may want to keep track of the manifester currently being created.
virtual void Measure (string const &text, int &width, int &height)=0
 Measures the size text will take on the screen.
int GetHeight ()
 Returns the height of the GUI.
int GetWidth ()
 Returns the width of the GUI.
virtual void Update (Expo *expo)
 Updates the GUI element associated with the specified exposition.

Protected Attributes

std::map< void *, GUIElement * > link
 Maps some incarnation of the GUI element (typically one returned by the GUI library when a callback/action occurs) to its corresponding GUI element.
std::map< Expo *, GUIElement * > link_expo
 Maps expositions to their correspondind GUI elements.
array_type & elements
 Reference to the vector of all available element factories.
int w
 Width and height of the GUI.

Detailed Description

Base class for GUI manifesters.


Member Function Documentation

vector< Arrangement > BuildWindow  ) 
 

The generic GUI exposer construction implementation.

Currently just stacks the elements vertically.

virtual void ManifestExposer  )  [pure virtual]
 

The function responsible for manifestering the exposer (e.g., constructing and showing the GUI window) Some manifester classes may want to keep track of the manifester currently being created.

These should call StartManifesting and DoneManifesting at the beginning end of their ManifestExposer function.

Implements ExposerManifester.


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

 

Documentation generated on 14 Jun 2006 for OpenExposition by  doxygen 1.4.6>
Development hosted by SourceForge.net Logo