9 m_direction(direction),
12 m_indicatorColor(
Palette::GreyDark),
13 m_backgroundColor(
Palette::GreyMiddle),
32 indicatorFrame =
KDRect(m_margin+m_start*indicatorWidth, (
m_frame.
height() - k_indicatorThickness)/2,
33 (m_end-m_start)*indicatorWidth, k_indicatorThickness);
37 indicatorFrame =
KDRect((
m_frame.
width() - k_indicatorThickness)/2, m_margin+m_start*indicatorHeight,
38 k_indicatorThickness, (m_end-m_start)*indicatorHeight);
40 ctx->
fillRect(indicatorFrame, m_indicatorColor);
48 if (m_start !=
start) {
68 #if ESCHER_VIEW_LOGGING 69 const char * ScrollViewIndicator::className()
const {
70 return "ScrollViewIndicator";
73 void ScrollViewIndicator::logAttributes(std::ostream &os)
const {
74 View::logAttributes(os);
75 os <<
" start=\"" << m_start <<
"\"";
76 os <<
" end=\"" << m_end <<
"\"";
void markRectAsDirty(KDRect rect)
constexpr KDRect KDRectZero
void fillRect(KDRect rect, KDColor color)
KDCoordinate width() const
KDCoordinate height() const