22 #ifndef GUI_WIDGETS_SCROLLBAR_H 23 #define GUI_WIDGETS_SCROLLBAR_H 25 #include "gui/widget.h" 30 kSetPositionCmd =
'SETP' 50 int _sliderDeltaMouseDownPos;
53 kRepeatInitialDelay = 500,
67 void handleMouseDown(
int x,
int y,
int button,
int clickCount)
override;
68 void handleMouseUp(
int x,
int y,
int button,
int clickCount)
override;
69 void handleMouseWheel(
int x,
int y,
int direction)
override;
70 void handleMouseMoved(
int x,
int y,
int button)
override;
71 void handleMouseEntered(
int button)
override { setFlags(WIDGET_HILITED); }
72 void handleMouseLeft(
int button)
override { clearFlags(WIDGET_HILITED); _part = kNoPart;
markAsDirty(); }
73 void handleTickle()
override;
74 bool wantsFocus()
override {
return true; }
81 void checkBounds(
int old_pos);
84 void drawWidget()
override;