Vuo  2.0.3
Public Member Functions | List of all members
VuoPublishedPortListItemDelegate Class Reference

Description

Displays a given published port within the published port sidebar.

Definition at line 17 of file VuoPublishedPortListItemDelegate.hh.

Public Member Functions

 VuoPublishedPortListItemDelegate (VuoEditorComposition *composition, QObject *parent=0)
 Creates a Published Port list rendering delegate. More...
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 Displays a given published port within the list. More...
 
void setUpSelectionHighlighting (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 Sets the published port background color appropriately, depending whether the node class is currently selected within the list. More...
 
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const
 Returns the size needed to display the published port specified by index. More...
 

Constructor & Destructor Documentation

◆ VuoPublishedPortListItemDelegate()

VuoPublishedPortListItemDelegate::VuoPublishedPortListItemDelegate ( VuoEditorComposition composition,
QObject *  parent = 0 
)
explicit

Creates a Published Port list rendering delegate.

Definition at line 19 of file VuoPublishedPortListItemDelegate.cc.

Member Function Documentation

◆ paint()

void VuoPublishedPortListItemDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Displays a given published port within the list.

Definition at line 28 of file VuoPublishedPortListItemDelegate.cc.

◆ setUpSelectionHighlighting()

void VuoPublishedPortListItemDelegate::setUpSelectionHighlighting ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Sets the published port background color appropriately, depending whether the node class is currently selected within the list.

Definition at line 62 of file VuoPublishedPortListItemDelegate.cc.

◆ sizeHint()

QSize VuoPublishedPortListItemDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Returns the size needed to display the published port specified by index.

Definition at line 95 of file VuoPublishedPortListItemDelegate.cc.


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