OpenStudio:shared_gui_components
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Signals | Public Member Functions | Protected Member Functions | List of all members
openstudio::ButtonItem Class Reference

#include <GraphicsItems.hpp>

+ Inheritance diagram for openstudio::ButtonItem:

Signals

void mouseClicked ()
 

Public Member Functions

QRectF boundingRect () const override
 
 ButtonItem (const QPixmap &image, const QPixmap &downImage, const QPixmap &hoverImage, QGraphicsItem *parent=nullptr)
 
virtual ~ButtonItem ()
 

Protected Member Functions

void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option,*widget=nullptr) override
 

Constructor & Destructor Documentation

openstudio::ButtonItem::ButtonItem ( const QPixmap &  image,
const QPixmap &  downImage,
const QPixmap &  hoverImage,
QGraphicsItem *  parent = nullptr 
)
virtual openstudio::ButtonItem::~ButtonItem ( )
inlinevirtual

Member Function Documentation

QRectF openstudio::ButtonItem::boundingRect ( ) const
override
void openstudio::ButtonItem::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotected
void openstudio::ButtonItem::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotected
void openstudio::ButtonItem::mouseClicked ( )
signal
void openstudio::ButtonItem::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected
void openstudio::ButtonItem::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected
void openstudio::ButtonItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
widget = nullptr 
)
overrideprotected