WidgetBase Class Reference

Base class of the script widget classes. More...

Public Slots

Attributedata (int index=0)
 

Signals

void dragStarted (QScriptValue dragContext)
 signal called on mouse down when picking this widget with the Transform tool More...
 
void drag (QScriptValue dragContext)
 signal called when this widget is dragged with the Transform tool More...
 
void dragEnded ()
 signal called on mouse up after having manipulated this widget with the Transform tool More...
 

Detailed Description

Base class of the script widget classes.

Member Function Documentation

◆ data

Attribute* WidgetBase::data ( int  index = 0)
slot

Return the attribute at the given index. If no index is provide, return the first attribute.

Parameters
indexcorresponding to the order in which they were provided at the widget creation. The indexes start at 0.
Returns
The attribute wrapper at the given index

◆ drag

void WidgetBase::drag ( QScriptValue  dragContext)
signal

signal called when this widget is dragged with the Transform tool

Parameters
dragContextA DragContext giving information about the currently dragged node and the picking point.

◆ dragEnded

void WidgetBase::dragEnded ( )
signal

signal called on mouse up after having manipulated this widget with the Transform tool

◆ dragStarted

void WidgetBase::dragStarted ( QScriptValue  dragContext)
signal

signal called on mouse down when picking this widget with the Transform tool

Parameters
dragContextA DragContext giving information about the currently dragged node and the picking point.