QuadUI 1.2.9 public beta
Run-time API for QuadUI

Toolbar2D Class Reference

Inheritance diagram for Toolbar2D:
ComplexComponent2D EventDispatcher

List of all members.

Public Member Functions

void SetSelected (int id)

Public Attributes

Toggle2D[] toggles

Properties

int selection [get]

Detailed Description

This class is used for mutually exclusive selection. (Like Unity GUI's toolbar, or a group of radio buttons!) It consists of several Toggle2D primitives, as many as you want. The first index of your Toggle2D array toggles will be selected at startup. Be sure to keep that in mind!

Note: This could easily be adapted to become a selection grid, just manually position your items in multiple rows.


Member Function Documentation

void Toolbar2D.SetSelected ( int  id)

Sets the selection of the toolbar manually, and dispatches an Event EQEQEvent.CHANGED


Member Data Documentation


Property Documentation

int Toolbar2D.selection [get]

Read-only: Current selection's id.

 All Classes Functions Variables Enumerations Properties