28 #ifndef _CEGUIScrollbar_h_
29 #define _CEGUIScrollbar_h_
32 #include "../Window.h"
35 # pragma warning(push)
36 # pragma warning(disable : 4251)
53 virtual void updateThumb(
void) = 0;
64 virtual float getValueFromThumb(
void)
const = 0;
79 virtual float getAdjustDirectionFromPoint(
const Vector2f& pt)
const = 0;
146 float getDocumentSize(
void)
const
148 return d_documentSize;
167 void setDocumentSize(
float document_size);
186 float getPageSize(
void)
const
208 void setPageSize(
float page_size);
227 float getStepSize(
void)
const
249 void setStepSize(
float step_size);
268 float getOverlapSize(
void)
const
270 return d_overlapSize;
290 void setOverlapSize(
float overlap_size);
308 float getScrollPosition(
void)
const
331 void setScrollPosition(
float position);
334 float getUnitIntervalScrollPosition()
const;
336 void setUnitIntervalScrollPosition(
float position);
374 Thumb* getThumb()
const;
410 void setConfig(
const float*
const document_size,
411 const float*
const page_size,
412 const float*
const step_size,
413 const float*
const overlap_size,
414 const float*
const position);
430 void setEndLockEnabled(
const bool enabled);
447 bool isEndLockEnabled()
const;
450 void scrollForwardsByStep();
452 void scrollBackwardsByStep();
455 void scrollForwardsByPage();
457 void scrollBackwardsByPage();
463 void initialiseComponents(
void);
471 void updateThumb(
void);
482 float getValueFromThumb(
void)
const;
497 float getAdjustDirectionFromPoint(
const Vector2f& pt)
const;
502 bool setScrollPosition_impl(
const float position);
505 bool isAtEnd()
const;
508 float getMaxScrollPosition()
const;
511 bool handleThumbMoved(
const EventArgs& e);
514 bool handleIncreaseClicked(
const EventArgs& e);
517 bool handleDecreaseClicked(
const EventArgs& e);
520 bool handleThumbTrackStarted(
const EventArgs& e);
523 bool handleThumbTrackEnded(
const EventArgs& e);
526 virtual bool validateWindowRenderer(
const WindowRenderer* renderer)
const;
546 void banPropertiesForAutoWindow();
564 void addScrollbarProperties(
void);
569 #if defined(_MSC_VER)
570 # pragma warning(pop)
573 #endif // end of guard _CEGUIScrollbar_h_