28 #ifndef YSL_INC_UI_scroll_h_
29 #define YSL_INC_UI_scroll_h_ 1
80 :
UIEventArgs(wgt), pair<float, float>(val, float()),
88 :
UIEventArgs(wgt), pair<float, float>(val, old_val),
173 DefGetter(const ynothrow, SDst, ScrollableLength,
174 GetTrackLength() - GetThumbLength())
175 DefGetter(const ynothrow, SDst, ThumbLength,
177 DefGetter(const ynothrow, SDst, ThumbPosition,
179 virtual
DefGetter(const ynothrow, SDst, TrackLength,
181 DefGetter(const ynothrow, ValueType, LargeDelta, large_delta)
187 SetThumbLength(SDst);
192 SetThumbPosition(
SPos);
199 SetMaxValue(ValueType);
211 SetLargeDelta(ValueType);
218 CheckArea(SPos) const;
280 DefGetter(const ynothrow, Orientation, Orientation, Vertical)
313 ValueType small_delta; \
333 GetTrack() const ynothrow
335 YAssert(
bool(pTrack),
"Null pointer found.");
342 DefGetter(const ynothrow, ValueType, SmallDelta, small_delta)
354 LocateThumb(ValueType val,
357 return GetTrack().LocateThumb(val, t);
380 GetBoundControlPtr(const
KeyInput&) override;
401 GetBoundControlPtr(const
KeyInput&) override;
443 FixLayout(const
Size&);