mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
[escher/scroll_view] Mark maxContent...DisplayableWithoutScrolling() as const
This commit is contained in:
committed by
EmilieNumworks
parent
acecb92f75
commit
c439d6f376
@@ -84,8 +84,12 @@ public:
|
||||
void scrollToContentPoint(KDPoint p, bool allowOverscroll = false);
|
||||
void scrollToContentRect(KDRect rect, bool allowOverscroll = false); // Minimal scrolling to make this rect visible
|
||||
protected:
|
||||
KDCoordinate maxContentWidthDisplayableWithoutScrolling();
|
||||
KDCoordinate maxContentHeightDisplayableWithoutScrolling();
|
||||
KDCoordinate maxContentWidthDisplayableWithoutScrolling() const {
|
||||
return m_frame.width() - m_leftMargin - m_rightMargin;
|
||||
}
|
||||
KDCoordinate maxContentHeightDisplayableWithoutScrolling() const {
|
||||
return m_frame.height() - m_topMargin - m_bottomMargin;
|
||||
}
|
||||
KDRect visibleContentRect();
|
||||
void layoutSubviews() override;
|
||||
KDSize contentSize();
|
||||
|
||||
@@ -126,14 +126,6 @@ void ScrollView::setContentOffset(KDPoint offset, bool forceRelayout) {
|
||||
}
|
||||
}
|
||||
|
||||
KDCoordinate ScrollView::maxContentWidthDisplayableWithoutScrolling() {
|
||||
return m_frame.width() - m_leftMargin - m_rightMargin;
|
||||
}
|
||||
|
||||
KDCoordinate ScrollView::maxContentHeightDisplayableWithoutScrolling() {
|
||||
return m_frame.height() - m_topMargin - m_bottomMargin;
|
||||
}
|
||||
|
||||
ScrollView::BarDecorator::BarDecorator() :
|
||||
m_verticalBar(),
|
||||
m_horizontalBar(),
|
||||
|
||||
Reference in New Issue
Block a user