MityDSP Documentation Index

tcGuiButton

Introduction

The tcGuiButton class is an implementation of common button widget for the ggui skinnable library. The tcGuiButton class is fully skinnable. To skin the button, a user must define an image (via the tcGuiImage class) that contains three button frames (side by side): Up, highlighted (for mouse over), and down (clicked). Users may define multiple sets of button frames to represent various button states : for example, a button containing a lighted indictor representing an ON/OFF state of the item it controls, etc.

tcGuiButtons are typically instantiated upon successful parsing of a GGUI XML definition file by the tcGuiBench class. tcGuiButtons should be managed via the tcGuiFramework class.

See also:
MityDSP::tcGuiButton Class Reference
MityDSP::tcGuiBench Class Reference

Example

This is a simple example of tcGuiButton creation and usage:

 {

     ...
 } 

  
Generated on Wed Mar 17 18:24:42 2010 for MityDSP Skinnable Graphics User Interface (GGUI) by  Doxygen Version 1.6.1
Copyright © 2009, Critical Link LLC, All rights reserved.