

Public Types | |
| enum | Ref_t { kLeftTop, kRightTop, kLeftBottom, kRightBottom } |
| Type for reference edge/corner. More... | |
Public Member Functions | |
| Position (int left, int top, int right, int bottom, const GenericRect &rRect, Ref_t refLeftTop, Ref_t refRightBottom, bool xKeepRatio, bool yKeepRatio) | |
| Create a new position relative to the given box. | |
| ~Position () | |
| virtual int | getLeft () const |
| Get the position relative to the left top corner of the box. | |
| virtual int | getTop () const |
| int | getRight () const |
| int | getBottom () const |
| virtual int | getWidth () const |
| Get the size of the rectangle. | |
| virtual int | getHeight () const |
| Ref_t | getRefLeftTop () const |
| Get the reference corners. | |
| Ref_t | getRefRightBottom () const |
Note: Even if the object is tied to its direct container rectangle, the coordinates returned by getLeft(), getTop(), getRight() and getBottom() are not relative to the direct container (which is usually a panel or the layout) but to the root container (i.e. the layout).
| enum Position::Ref_t |
| Position::Position | ( | int | left, | |
| int | top, | |||
| int | right, | |||
| int | bottom, | |||
| const GenericRect & | rRect, | |||
| Ref_t | refLeftTop, | |||
| Ref_t | refRightBottom, | |||
| bool | xKeepRatio, | |||
| bool | yKeepRatio | |||
| ) |
| Position::~Position | ( | ) | [inline] |
| int Position::getLeft | ( | ) | const [virtual] |
Get the position relative to the left top corner of the box.
Implements GenericRect.
References GenericRect::getLeft(), Box::getWidth(), kLeftBottom, kLeftTop, kRightBottom, and kRightTop.
Referenced by GenericLayout::addControl(), CtrlVideo::draw(), getRight(), getWidth(), Anchor::getXPosAbs(), CtrlTree::handleEvent(), CtrlSliderBg::handleEvent(), GenericLayout::onControlUpdate(), CtrlVideo::onResize(), GenericLayout::refreshRect(), CtrlVideo::resizeControl(), and VoutWindow::setCtrlVideo().
| int Position::getTop | ( | ) | const [virtual] |
Implements GenericRect.
References Box::getHeight(), GenericRect::getTop(), kLeftBottom, kLeftTop, kRightBottom, and kRightTop.
Referenced by GenericLayout::addControl(), CtrlVideo::draw(), getBottom(), getHeight(), Anchor::getYPosAbs(), CtrlTree::handleEvent(), CtrlSliderBg::handleEvent(), CtrlList::handleEvent(), GenericLayout::onControlUpdate(), CtrlVideo::onResize(), GenericLayout::refreshRect(), CtrlVideo::resizeControl(), and VoutWindow::setCtrlVideo().
| int Position::getRight | ( | ) | const |
References GenericRect::getLeft(), getLeft(), Box::getWidth(), kLeftBottom, kLeftTop, kRightBottom, and kRightTop.
Referenced by getWidth().
| int Position::getBottom | ( | ) | const |
References Box::getHeight(), GenericRect::getTop(), getTop(), kLeftBottom, kLeftTop, kRightBottom, and kRightTop.
Referenced by getHeight().
| int Position::getWidth | ( | ) | const [virtual] |
Get the size of the rectangle.
Implements Box.
References getLeft(), and getRight().
Referenced by CtrlVideo::draw(), CtrlText::draw(), CtrlImage::draw(), CtrlTree::mouseOver(), CtrlText::mouseOver(), CtrlList::mouseOver(), CtrlVideo::onPositionChange(), CtrlVideo::onResize(), CtrlVideo::resizeControl(), and VoutWindow::setCtrlVideo().
| int Position::getHeight | ( | ) | const [virtual] |
Implements Box.
References getBottom(), and getTop().
Referenced by CtrlVideo::draw(), CtrlText::draw(), CtrlImage::draw(), CtrlTree::mouseOver(), CtrlText::mouseOver(), CtrlList::mouseOver(), CtrlVideo::onPositionChange(), CtrlVideo::onResize(), CtrlList::onResize(), CtrlVideo::resizeControl(), and VoutWindow::setCtrlVideo().
| Ref_t Position::getRefLeftTop | ( | ) | const [inline] |
Get the reference corners.
| Ref_t Position::getRefRightBottom | ( | ) | const [inline] |
1.5.6