logo
Main Page | Namespaces | Classes | Compounds | Files | Compound Members | Related

GUIToolkit Namespace Reference

Wrapper classes for Windows API GUI calls. GUIToolkit is a simple Graphical User Interface framework, consisting of wrapper classes for standard windows API calls. More...


Compounds

class  Button
 A simple button object. More...

class  ComboBox
 Combo Box. A selectable drop down list. More...

class  ComboBoxItem
 Items for use in a combo box. More...

class  Component
 Base Class for all Components. More...

class  DBCanvas
class  divider
 Divider - a simple static graphic component (similar to a ruler in HTML). More...

struct  event
 The event struct passed to the user supplied event handler. More...

class  EventHandler
 Interface for user implemented event handling. The end-user must implement this interface (IE he must supply a class derived from this) with a overridden HandleEvents method. More...

class  GUIControl
 Mandatory class for administrating every GUI. More...

class  Label
 Simple static label. More...

class  MCanvas
 Double-buffered canvas. More...

class  menuItem
 Items to be used on a context menu. More...

class  popupMenu
 A context menu (usually invoked on right mouse button click). More...

class  ScrollBar
 A standard scroll bar. More...

class  TextBox
 Single- og multi-line text box. More...

class  WinForm
 The main windows class. A containter for all Components. More...


Typedefs

typedef std::map< Component *,
int > 
ComponentMap
typedef std::map< Component *,
int >::const_iterator 
ComponentMapIter
typedef std::map< Component *,
EventHandler * > 
ComponentEventMap
typedef std::map< Component *,
EventHandler * >::const_iterator 
ComponentEventMapIter
typedef std::map< HWND, Component * > HWNDMap
typedef std::map< HWND, Component
* >::const_iterator 
HWNDMapIter
typedef std::map< ComboBoxItem *,
int > 
ComboBoxMap
typedef std::map< ComboBoxItem *,
int >::const_iterator 
ComboBoxMapIter


Detailed Description

Wrapper classes for Windows API GUI calls. GUIToolkit is a simple Graphical User Interface framework, consisting of wrapper classes for standard windows API calls.

The GUI as of now supports the following components (derived from the Component class):

  • Canvas : generic double-buffered drawing component.
  • divider : graphical separator component.
  • Label : for static text output.
  • popUpMenu : for context sensitive right mouse button click menus.
  • TextBox : Single line / multi line text box.
As of now the GUI framework is a minimalistic framework specifically written for the Syntopia project. The event handling is not yet totally encapsulated (in fact it is VERY preliminary) so a certain knowledge of winAPI events are neccesary. But someday it will be nicely integrated in a slick OO fashion....

All components should be placed on a WinForm component. In order to capture events the user must supply a class implementing the interface EventHandler.

A GUIControl object must be instantiated before any use of the GUI framework. Example:

  GUIControl * myGUIControl = new GUIControl(hInstance, nCmdShow);
hInstance and nCmdShow can be passed from the WinMain or the DLLMain args.

Example usage of the framework can be found in the namespace SynthGUI.


Syntopia Project. Visit the web page, or the SourceForge page.
Docs made by Doxygen. Email: Mikael Christensen