27 #ifndef _CEGUIScrollbar_h_
28 #define _CEGUIScrollbar_h_
31 #include "../Window.h"
34 # pragma warning(push)
35 # pragma warning(disable : 4251)
52 virtual void updateThumb(
void) = 0;
63 virtual float getValueFromThumb(
void)
const = 0;
78 virtual float getAdjustDirectionFromPoint(
const Vector2f& pt)
const = 0;
145 float getDocumentSize(
void)
const
147 return d_documentSize;
166 void setDocumentSize(
float document_size);
185 float getPageSize(
void)
const
207 void setPageSize(
float page_size);
226 float getStepSize(
void)
const
248 void setStepSize(
float step_size);
267 float getOverlapSize(
void)
const
269 return d_overlapSize;
289 void setOverlapSize(
float overlap_size);
307 float getScrollPosition(
void)
const
330 void setScrollPosition(
float position);
333 float getUnitIntervalScrollPosition()
const;
335 void setUnitIntervalScrollPosition(
float position);
373 Thumb* getThumb()
const;
409 void setConfig(
const float*
const document_size,
410 const float*
const page_size,
411 const float*
const step_size,
412 const float*
const overlap_size,
413 const float*
const position);
429 void setEndLockEnabled(
const bool enabled);
446 bool isEndLockEnabled()
const;
449 void scrollForwardsByStep();
451 void scrollBackwardsByStep();
454 void scrollForwardsByPage();
456 void scrollBackwardsByPage();
462 void initialiseComponents(
void);
470 void updateThumb(
void);
481 float getValueFromThumb(
void)
const;
496 float getAdjustDirectionFromPoint(
const Vector2f& pt)
const;
501 bool setScrollPosition_impl(
const float position);
504 bool isAtEnd()
const;
507 float getMaxScrollPosition()
const;
510 bool handleThumbMoved(
const EventArgs& e);
513 bool handleIncreaseClicked(
const EventArgs& e);
516 bool handleDecreaseClicked(
const EventArgs& e);
519 bool handleThumbTrackStarted(
const EventArgs& e);
522 bool handleThumbTrackEnded(
const EventArgs& e);
525 virtual bool validateWindowRenderer(
const WindowRenderer* renderer)
const;
545 void banPropertiesForAutoWindow();
563 void addScrollbarProperties(
void);
568 #if defined(_MSC_VER)
569 # pragma warning(pop)
572 #endif // end of guard _CEGUIScrollbar_h_