QuadUI 1.2.9 public beta
Run-time API for QuadUI

EQEQEvent Class Reference

Inheritance diagram for EQEQEvent:
ScreenEvent UIEvent

List of all members.

Public Member Functions

delegate void EventHandler (EQEQEvent e)
 EQEQEvent (string type, object value)

Public Attributes

const string COMPLETE = "complete"
const string CHANGED = "changed"

Properties

string type [get]
object value [get]

Detailed Description

Base Event object. If you are familiar with Adobe Flash's ActionScript 3 this structure will seem rather familiar to you.

Each Event object has a few constant string members which are used as Event Types. When creating a new Event you simply specify the type of event you are looking for, then a function you wish to be called when the event takes place. The function must accept one parameter: the event object (EQEQEvent). In the handler function you will be able to typecast it to the specific event to get any custom data that one might need.

Note: If extending this object, your constructor must look like the following: public MyEvent(string type, object value, object myParameter1, object myParameter2) : base(type,value) - for more info you should refer to extending constructors in the C# reference.


Constructor & Destructor Documentation

EQEQEvent.EQEQEvent ( string  type,
object  value 
)

Creates a new event with the type of (string type) and an Object which is most commonly the object which dispatched the event.


Member Function Documentation

delegate void EQEQEvent.EventHandler ( EQEQEvent  e)

The delegate function called when an event is dispatched. Takes one parameter, the created event.


Member Data Documentation

const string EQEQEvent.CHANGED = "changed"
const string EQEQEvent.COMPLETE = "complete"

Property Documentation

string EQEQEvent.type [get]

Read only. The event type.

object EQEQEvent.value [get]

Read only. An open-ended parameter which stores some info from the event dispatcher. It is most commonly the EventDispatcher object.

 All Classes Functions Variables Enumerations Properties