Пример #1
0
void ScrollBar::updateScrollBarLayout(void)
{
    if(getRangeModel() != NULL && editScrollBar() != NULL)
    {
        editScrollBar()->setSize(calculateScrollBarSize());
        editScrollBar()->setPosition(calculateScrollBarPosition());
    }
}
Пример #2
0
void ScrollBar::updateScrollBarLayout(void)
{
    if(getRangeModel() != NULL && getScrollBar() != NULL)
    {
        Vec2f Size(calculateScrollBarSize());
        if(getScrollBar()->getSize() != Size)
        {
            getScrollBar()->setSize(Size);
        }
        Pnt2f Pos(calculateScrollBarPosition());
        if(getScrollBar()->getPosition() != Pos)
        {
            getScrollBar()->setPosition(Pos);
        }
    }
}