tilde~
Puredata Qt-based GUI
|
UIItem QGraphicsObject class. More...
#include <UIItem.h>
Signals | |
void | mousePressed (UIItem *obj, QGraphicsSceneMouseEvent *ev) |
void | mouseReleased (UIItem *obj, QGraphicsSceneMouseEvent *ev) |
void | mouseEntered (UIItem *obj, QGraphicsSceneHoverEvent *ev) |
void | mouseLeaved (UIItem *obj, QGraphicsSceneHoverEvent *ev) |
void | selectBox (UIItem *box, QGraphicsSceneMouseEvent *event) |
void | moveBox (UIItem *box, QGraphicsSceneMouseEvent *event) |
Public Member Functions | |
UIItem (QGraphicsObject *parent=0) | |
void | setSize (QSize size) |
void | setSize (float w, float h) |
void | setWidth (float w) |
void | setHeight (float h) |
void | setMinWidth (float w) |
void | setMinHeight (float h) |
float | width () |
float | height () |
float | minWidth () |
float | minHeight () |
QSize | size () |
QColor | bgColor () |
void | setBgColor (QColor bgc) |
bool | hover () |
void | setHover (bool h) |
void | select () |
void | deselect () |
More... | |
bool | isSelected () |
More... | |
virtual void | setEditModeRef (t_editMode *canvasEditModeRef) |
More... | |
virtual t_editMode * | getEditModeRef () |
t_editMode | getEditMode () |
More... | |
QRectF | boundingRect () const |
More... | |
QPainterPath | shape () const |
virtual void | move (float x, float y) |
virtual void | move (QPoint pos) |
virtual void | move (QPointF pos) |
void | paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *) |
virtual void | resizeEvent () |
Public Attributes | |
QPoint | dragOffset |
UIItem QGraphicsObject class.
parent class for all objects in the canvas
|
explicit |
|
inline |
|
inline |
get edit mode flag value
void tilde::UIItem::deselect | ( | ) |
select object
t_editMode tilde::UIItem::getEditMode | ( | ) |
get edit mode pointer - for inlets/outlets
|
virtual |
|
inline |
|
inline |
bool tilde::UIItem::isSelected | ( | ) |
deselect object
|
inline |
|
inline |
|
signal |
|
signal |
|
signal |
|
signal |
|
virtual |
Reimplemented in tilde::UIMessage.
|
virtual |
Reimplemented in tilde::UIMessage.
|
virtual |
Reimplemented in tilde::UIMessage.
|
signal |
|
inline |
|
inlinevirtual |
Reimplemented in tilde::UIObject, tilde::UIMatrix, tilde::UISlider, tilde::UIScript, tilde::UIBang, tilde::UIMessage, and tilde::UIToggle.
void tilde::UIItem::select | ( | ) |
|
signal |
|
inline |
|
virtual |
get object's selected flag
sets pointer to edit mode flag in parent canvas
this is set by "constructor" (createObj etc) in canvas
canvasEditMode |
Reimplemented in tilde::UIObject.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
QPainterPath tilde::UIItem::shape | ( | ) | const |
|
inline |
|
inline |
QPoint tilde::UIItem::dragOffset |