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

#include <GraphicsItems.hpp>

+ Inheritance diagram for openstudio::AbstractButtonItem:

Signals

void mouseClicked (bool checked=false)
 
void toggled (bool checked)
 

Public Member Functions

 AbstractButtonItem (QGraphicsItem *parent=nullptr)
 
void setChecked (bool checked)
 
virtual ~AbstractButtonItem ()
 

Protected Member Functions

void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 

Protected Attributes

bool m_checked
 

Constructor & Destructor Documentation

openstudio::AbstractButtonItem::AbstractButtonItem ( QGraphicsItem *  parent = nullptr)
virtual openstudio::AbstractButtonItem::~AbstractButtonItem ( )
inlinevirtual

Member Function Documentation

void openstudio::AbstractButtonItem::mouseClicked ( bool  checked = false)
signal
void openstudio::AbstractButtonItem::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected
void openstudio::AbstractButtonItem::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected
void openstudio::AbstractButtonItem::setChecked ( bool  checked)
void openstudio::AbstractButtonItem::toggled ( bool  checked)
signal

Member Data Documentation

bool openstudio::AbstractButtonItem::m_checked
protected