28 #ifndef _CEGUIScrollbar_h_
29 #define _CEGUIScrollbar_h_
31 #include "../CEGUIBase.h"
32 #include "../CEGUIWindow.h"
33 #include "CEGUIScrollbarProperties.h"
36 # pragma warning(push)
37 # pragma warning(disable : 4251)
61 virtual void updateThumb(
void) = 0;
72 virtual float getValueFromThumb(
void)
const = 0;
87 virtual float getAdjustDirectionFromPoint(
const Point& pt)
const = 0;
163 float getDocumentSize(
void)
const
165 return d_documentSize;
185 float getPageSize(
void)
const
207 float getStepSize(
void)
const
229 float getOverlapSize(
void)
const
231 return d_overlapSize;
250 float getScrollPosition(
void)
const
291 Thumb* getThumb()
const;
307 virtual void initialiseComponents(
void);
328 void setDocumentSize(
float document_size);
350 void setPageSize(
float page_size);
372 void setStepSize(
float step_size);
394 void setOverlapSize(
float overlap_size);
417 void setScrollPosition(
float position);
453 void setConfig(
const float*
const document_size,
454 const float*
const page_size,
455 const float*
const step_size,
456 const float*
const overlap_size,
457 const float*
const position);
473 void setEndLockEnabled(
const bool enabled);
490 bool isEndLockEnabled()
const;
504 void updateThumb(
void);
515 float getValueFromThumb(
void)
const;
530 float getAdjustDirectionFromPoint(
const Point& pt)
const;
535 bool setScrollPosition_impl(
const float position);
538 bool isAtEnd()
const;
541 float getMaxScrollPosition()
const;
544 bool handleThumbMoved(
const EventArgs& e);
547 bool handleIncreaseClicked(
const EventArgs& e);
550 bool handleDecreaseClicked(
const EventArgs& e);
553 bool handleThumbTrackStarted(
const EventArgs& e);
556 bool handleThumbTrackEnded(
const EventArgs& e);
569 virtual bool testClassName_impl(
const String& class_name)
const
571 if (class_name ==
"Scrollbar")
return true;
577 virtual bool validateWindowRenderer(
const String& name)
const
579 return (name ==
"Scrollbar");
623 void addScrollbarProperties(
void);
628 #if defined(_MSC_VER)
629 # pragma warning(pop)
632 #endif // end of guard _CEGUIScrollbar_h_