Crazy Eddie's GUI System  0.8.4
CEGUI::SliderWindowRenderer Class Reference

Base class for ItemEntry window renderer objects. More...

+ Inheritance diagram for CEGUI::SliderWindowRenderer:
+ Collaboration diagram for CEGUI::SliderWindowRenderer:

List of all members.

Public Member Functions

 SliderWindowRenderer (const String &name)
 Constructor.
virtual void updateThumb (void)=0
 update the size and location of the thumb to properly represent the current state of the slider
virtual float getValueFromThumb (void) const =0
 return value that best represents current slider value given the current location of the thumb.
virtual float getAdjustDirectionFromPoint (const Vector2f &pt) const =0
 Given window location pt, return a value indicating what change should be made to the slider.

Detailed Description

Base class for ItemEntry window renderer objects.


Member Function Documentation

virtual float CEGUI::SliderWindowRenderer::getAdjustDirectionFromPoint ( const Vector2f pt) const [pure virtual]

Given window location pt, return a value indicating what change should be made to the slider.

Parameters:
ptPoint object describing a pixel position in window space.
Returns:
  • -1 to indicate slider should be moved to a lower setting.
  • 0 to indicate slider should not be moved.
  • +1 to indicate slider should be moved to a higher setting.

Implemented in CEGUI::FalagardSlider.

virtual float CEGUI::SliderWindowRenderer::getValueFromThumb ( void  ) const [pure virtual]

return value that best represents current slider value given the current location of the thumb.

Returns:
float value that, given the thumb widget position, best represents the current value for the slider.

Implemented in CEGUI::FalagardSlider.

 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends