tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | List of all members
tilde::SelectionRect Class Reference

selection rectangle QGraphicsObject (UIItem) More...

#include <SelectionRect.h>

Inheritance diagram for tilde::SelectionRect:
tilde::UIItem

Public Member Functions

 SelectionRect ()
 
void setActive (bool active)
 
void setStart (QPoint start)
 
void setEnd (QPoint end)
 
QPoint end ()
 
QPoint start ()
 
bool active ()
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *)
 
- Public Member Functions inherited from tilde::UIItem
 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 ()
 

select object

More...
 
bool isSelected ()
 

deselect object

More...
 
virtual void setEditModeRef (t_editMode *canvasEditModeRef)
 

get object's selected flag

More...
 
virtual t_editModegetEditModeRef ()
 
t_editMode getEditMode ()
 

get edit mode pointer - for inlets/outlets

More...
 
QRectF boundingRect () const
 

get edit mode flag value

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 ()
 

Additional Inherited Members

- Signals inherited from tilde::UIItem
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 Attributes inherited from tilde::UIItem
QPoint dragOffset
 

Detailed Description

selection rectangle QGraphicsObject (UIItem)

Constructor & Destructor Documentation

tilde::SelectionRect::SelectionRect ( )

Member Function Documentation

bool tilde::SelectionRect::active ( )
inline
QPoint tilde::SelectionRect::end ( )
inline
void tilde::SelectionRect::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  ,
QWidget *   
)
inline
void tilde::SelectionRect::setActive ( bool  active)
inline
void tilde::SelectionRect::setEnd ( QPoint  end)
inline
void tilde::SelectionRect::setStart ( QPoint  start)
inline
QPoint tilde::SelectionRect::start ( )
inline

The documentation for this class was generated from the following files: