| 656 | } |
| 657 | |
| 658 | int ScrollBar::getTrackPlaceLength() const |
| 659 | { |
| 660 | if (mWidgetTrack != nullptr) |
| 661 | { |
| 662 | if (mVerticalAlignment) |
| 663 | return mWidgetTrack->getParent()->getHeight(); |
| 664 | return mWidgetTrack->getParent()->getWidth(); |
| 665 | } |
| 666 | return 0; |
| 667 | } |
| 668 | |
| 669 | void ScrollBar::setVerticalAlignment(bool _value) |
| 670 | { |