Omnidome
Fulldome Mapping Software Toolkit
|
Subscreen Item for which a tuning can be assigned. More...
#include <ScreenItem.h>
Public Member Functions | |
SubScreenItem () | |
SubScreenItem (ScreenItem *_parent, int _index) | |
omni::ui::proj::Tuning * | tuningWidget () |
Currently assigned tuning widget. More... | |
omni::ui::proj::Tuning const * | tuningWidget () const |
Currently assigned tuning widget (const version) More... | |
void | attachTuningWidget (omni::ui::proj::Tuning *_tuning) |
Attach tuning widget to this subscreen. More... | |
void | detachTuningWidget () |
Detach current tuning widget from this subscreen. More... | |
QRect | rect () const |
Return rectangle of this subscreen item. More... | |
QSize | size () const |
Return size of this subscreen. More... | |
ScreenItem * | parent () |
Pointer to parent screen. More... | |
ScreenItem const * | parent () const |
Const pointer to parent screen. More... | |
void | paint (bool _hover, bool _drop, QColor _dropColor, QPainter &) |
Paint this item with painter. More... | |
Private Attributes | |
ScreenItem * | parent_ = nullptr |
int | index_ = -1 |
omni::ui::proj::Tuning * | tuningWidget_ = nullptr |
Subscreen Item for which a tuning can be assigned.
omni::ui::SubScreenItem::SubScreenItem | ( | ScreenItem * | _parent, |
int | _index | ||
) |
void omni::ui::SubScreenItem::attachTuningWidget | ( | omni::ui::proj::Tuning * | _tuning | ) |
Attach tuning widget to this subscreen.
void omni::ui::SubScreenItem::detachTuningWidget | ( | ) |
Detach current tuning widget from this subscreen.
void omni::ui::SubScreenItem::paint | ( | bool | _hover, |
bool | _drop, | ||
QColor | _dropColor, | ||
QPainter & | _p | ||
) |
Paint this item with painter.
Draw diagonal stripes for drop
ScreenItem * omni::ui::SubScreenItem::parent | ( | ) |
Pointer to parent screen.
ScreenItem const * omni::ui::SubScreenItem::parent | ( | ) | const |
Const pointer to parent screen.
QRect omni::ui::SubScreenItem::rect | ( | ) | const |
Return rectangle of this subscreen item.
QSize omni::ui::SubScreenItem::size | ( | ) | const |
Return size of this subscreen.
omni::ui::proj::Tuning * omni::ui::SubScreenItem::tuningWidget | ( | ) |
Currently assigned tuning widget.
omni::ui::proj::Tuning const * omni::ui::SubScreenItem::tuningWidget | ( | ) | const |
Currently assigned tuning widget (const version)
|
private |
|
private |
|
private |