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::Port Class Reference

Port QGraphicsItem class. More...

#include <Port.h>

Inheritance diagram for tilde::Port:
tilde::UIItem

Public Member Functions

 Port (UIItem *parent=0)
 
UIPortType portType ()
 
void setPortType (UIPortType pt)
 
int portClass ()
 
void setPortClass (int pc)
 
int portIndex ()
 
void setPortIndex (int pi)
 
void paint (QPainter *p, const QStyleOptionGraphicsItem *, QWidget *)
 
virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *ev)
 
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *ev)
 
void mousePressEvent (QGraphicsSceneMouseEvent *ev)
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *ev)
 
- 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

Port QGraphicsItem class.

gui representation of t_inlet / t_outlet

Constructor & Destructor Documentation

tilde::Port::Port ( UIItem parent = 0)
explicit

Member Function Documentation

void tilde::Port::hoverEnterEvent ( QGraphicsSceneHoverEvent *  ev)
virtual
void tilde::Port::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  ev)
virtual
void tilde::Port::mousePressEvent ( QGraphicsSceneMouseEvent *  ev)
void tilde::Port::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  ev)
void tilde::Port::paint ( QPainter *  p,
const QStyleOptionGraphicsItem *  ,
QWidget *   
)
int tilde::Port::portClass ( )
inline
int tilde::Port::portIndex ( )
inline
UIPortType tilde::Port::portType ( )
inline
void tilde::Port::setPortClass ( int  pc)
inline
void tilde::Port::setPortIndex ( int  pi)
inline
void tilde::Port::setPortType ( UIPortType  pt)
inline

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