Play 'round
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
Widget Class Reference

The base class of all components who want to deal with all user interaction. More...

#include <Widget.h>

Inheritance diagram for Widget:
Shape Engine Joint Plucker RoundPad SoundSource Track String LineTrack SpiralTrack

List of all members.

Public Member Functions

virtual bool onMouseDown (int button, float x, float y)
virtual bool onMouseUp (int button, float x, float y)
virtual bool onMouseMove (float x, float y)
virtual bool onMouseOver (float x, float y)
virtual void draw ()=0
virtual WidgethitTest (float x, float y)
virtual void setParent (Widget *parent)
virtual void setNetwork (Network *network)
virtual void addChild (Widget *child)
virtual WidgetremoveChild (Widget *child)
virtual void setUuid (const char *)
virtual const char * getUuid () const
virtual void toOutboundPacketStream (osc::OutboundPacketStream &) const
virtual std::vector< Widget * > * getChildren ()
virtual WidgetgetParent ()
virtual std::string toString ()
virtual WidgetgetEngine ()

Static Public Member Functions

static WidgetMap * getAll ()
static WidgetgetSelected ()
static void setSelected (Widget *)
 Select the specific widget.

Protected Member Functions

virtual bool handleDraw (float x, float y)
 The draw event called when the user drags from this widget.
virtual bool handleDrawEnd (float x, float y)
 The last draw event called when the user finishes dragging.
virtual bool handleSelect (float x, float y, bool=false)
 Called when the user click on the widget.
virtual bool handleHover (float x, float y)
 Called when the user's mouse is hovering on the widget.
virtual void drawChildren ()

Protected Attributes

std::vector< Widget * > m_children
Widgetm_parent
Widgetm_engine
Widgetm_mouseDownOn
bool m_fLeftButtonDown
bool m_fRightButtonDown
Point2D m_mouseDownPos
Point2D m_drawStartPos
std::string m_uuid

Static Protected Attributes

static Networks_network

Detailed Description

The base class of all components who want to deal with all user interaction.


The documentation for this class was generated from the following files:
 All Classes Functions Enumerations