OpenStudioCore:openstudio_lib
 All Classes Namespaces Functions Variables Enumerations Enumerator
Public Member Functions | Protected Member Functions | List of all members
openstudio::VCalendarSegmentItem Class Reference

#include <ScheduleDayView.hpp>

+ Inheritance diagram for openstudio::VCalendarSegmentItem:

Public Member Functions

QRectF boundingRect () const override
 
double hCenterPos () const
 
bool isMouseDown () const
 
double length () const
 
CalendarSegmentItemnextCalendarItem () const
 
CalendarSegmentItempreviousCalendarItem () const
 
DayScheduleScenescene () const
 
void setLength (double length)
 
void setNextCalendarItem (CalendarSegmentItem *item)
 
void setPreviousCalendarItem (CalendarSegmentItem *item)
 
void setTime (double time)
 
double time () const
 
void updateLength ()
 
 VCalendarSegmentItem (QGraphicsItem *parent=nullptr)
 
double vCenterPos () const
 
virtual ~VCalendarSegmentItem ()
 

Protected Member Functions

void paint (QPainter *painter, const QStyleOptionGraphicsItem *option,*widget) override
 
void setHovering (bool hovering)
 
void setMouseDown (bool mouseDown)
 

Constructor & Destructor Documentation

openstudio::VCalendarSegmentItem::VCalendarSegmentItem ( QGraphicsItem parent = nullptr)
virtual openstudio::VCalendarSegmentItem::~VCalendarSegmentItem ( )
inlinevirtual

Member Function Documentation

QRectF openstudio::VCalendarSegmentItem::boundingRect ( ) const
override
double openstudio::VCalendarSegmentItem::hCenterPos ( ) const
bool openstudio::VCalendarSegmentItem::isMouseDown ( ) const
double openstudio::VCalendarSegmentItem::length ( ) const
CalendarSegmentItem* openstudio::VCalendarSegmentItem::nextCalendarItem ( ) const
void openstudio::VCalendarSegmentItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
widget 
)
overrideprotected
CalendarSegmentItem* openstudio::VCalendarSegmentItem::previousCalendarItem ( ) const
DayScheduleScene* openstudio::VCalendarSegmentItem::scene ( ) const
void openstudio::VCalendarSegmentItem::setHovering ( bool  hovering)
protected
void openstudio::VCalendarSegmentItem::setLength ( double  length)
void openstudio::VCalendarSegmentItem::setMouseDown ( bool  mouseDown)
protected
void openstudio::VCalendarSegmentItem::setNextCalendarItem ( CalendarSegmentItem item)
void openstudio::VCalendarSegmentItem::setPreviousCalendarItem ( CalendarSegmentItem item)
void openstudio::VCalendarSegmentItem::setTime ( double  time)
double openstudio::VCalendarSegmentItem::time ( ) const
void openstudio::VCalendarSegmentItem::updateLength ( )
double openstudio::VCalendarSegmentItem::vCenterPos ( ) const