22 #ifndef TITANIC_PET_SLIDER_H 23 #define TITANIC_PET_SLIDER_H 25 #include "titanic/support/rect.h" 26 #include "titanic/support/string.h" 27 #include "titanic/core/game_object.h" 31 enum SliderOrientation { ORIENTATION_HORIZONTAL = 1, ORIENTATION_VERTICAL = 2 };
49 Point getThumbCentroidPos()
const;
54 bool thumbContains(
const Point &pt)
const;
59 Rect getThumbRect()
const;
64 int calcSliderOffset(
const Point &pt)
const;
144 virtual bool proc13() {
return false; }
145 virtual bool proc14() {
return false; }
148 virtual bool contains(
const Point &pt)
const;
virtual void setupBackground2(const CString &name, CPetControl *petControl)
Definition: pet_slider.h:97
virtual bool MouseButtonUpMsg(const Point &pt)
void stepPosition(int direction)
bool contains(int16 x, int16 y) const
Definition: rect.h:210
void translate(const Point &pt)
Definition: pet_slider.h:191
Point getBackgroundDrawPos()
virtual bool checkThumb(const Point &pt)
virtual void setupBackground(const CString &name, CPetControl *petControl)
Definition: pet_slider.h:87
Definition: pet_slider.h:35
void translate(int16 dx, int16 dy)
Definition: rect.h:354
virtual void setupThumb2(const CString &name, CPetControl *petControl)
Definition: pet_slider.h:102
Definition: screen_manager.h:49
Definition: game_object.h:79
virtual void setSliderOffset(double offset)
void setSlidingBounds(const Rect &r)
Definition: pet_slider.h:178
virtual void setOffsetPixels(int offset)
Definition: pet_slider.h:202
virtual void setupThumb(const CString &name, CPetControl *petControl)
Definition: pet_slider.h:92
virtual double getOffsetPixels() const
bool containsPt(const Point &pt) const
Definition: pet_slider.h:79
void setThumbSize(const Point &pt)
Definition: pet_slider.h:183
virtual void reset(const CString &name)
Definition: pet_slider.h:107
virtual bool MouseDragMoveMsg(const Point &pt)
int16 x
Definition: rect.h:46
virtual void draw(CScreenManager *screenManager)
Definition: pet_slider.h:112
void setBounds(const Rect &r)
Definition: pet_slider.h:173
int16 y
Definition: rect.h:47
virtual Rect clearDirtyArea()
virtual bool resetThumbFocus()
virtual bool MouseDragEndMsg(const Point &pt)
Definition: pet_slider.h:137
Definition: pet_control.h:45
void setOrientation(SliderOrientation orientation)