Public Types | Public Member Functions | Public Attributes

fl7::faces::Slider Class Reference

#include <Slider.h>

Inheritance diagram for fl7::faces::Slider:
fl7::faces::Control fl7::faces::Face

List of all members.

Public Types

enum  Orientation { horizontal, vertical }

Public Member Functions

 Slider (Shell *const shell)
virtual ~Slider (void)
Orientation GetOrientation () const
float GetCurrentPosition () const
float GetMinimum () const
float GetMaximum () const
float GetRetension () const
float GetStep () const
bool IsInverted () const
void SetOrientation (const Orientation orientation)
void SetCurrentPosition (float position)
void SetMinimum (float minimum)
void SetMaximum (float maximum)
void SetRetension (float retension)
void SetStep (float step)
void IsInverted (bool inverted)
Slideroperator++ ()
Slideroperator++ (int)
Slideroperator-- ()
Slideroperator-- (int)
Slideroperator+= (float step)
Slideroperator-= (float step)
Slideroperator() (float position)

Public Attributes

events::EventHandler
< events::ScrollEventArgs
OnScrollEventHandler
friend Shell

Detailed Description

The (base) class for slider controls.


Member Enumeration Documentation

Possible orientation values (horizontal or vertical).

Enumerator:
horizontal 
vertical 

Constructor & Destructor Documentation

fl7::faces::Slider::Slider ( Shell *const   shell  ) 

Explicit constructor.

fl7::faces::Slider::~Slider ( void   )  [virtual]

Destructor.


Member Function Documentation

float fl7::faces::Slider::GetCurrentPosition (  )  const [inline]

Returns the current position.

float fl7::faces::Slider::GetMaximum (  )  const [inline]

Returns the maximum value for the (current) position.

float fl7::faces::Slider::GetMinimum (  )  const [inline]

Returns the minimum value for the (current) position.

Orientation fl7::faces::Slider::GetOrientation (  )  const [inline]

Returns the orientation of this slider (horizontal or vertical).

float fl7::faces::Slider::GetRetension (  )  const [inline]

Returns the retension from the current position to the imaginary next position.

float fl7::faces::Slider::GetStep (  )  const [inline]
bool fl7::faces::Slider::IsInverted (  )  const [inline]
void fl7::faces::Slider::IsInverted ( bool  inverted  )  [inline]
Slider & fl7::faces::Slider::operator() ( float  position  ) 

Sets the current position to the given one. The new position will not fall below the minimum position and will not exceed the maximum position.

Slider& fl7::faces::Slider::operator++ ( int   )  [inline]

Increases the current position (post-increment operator). The new position will not exceed the maximum position. This post-increment operator acts like a pre-increment operator.

Slider & fl7::faces::Slider::operator++ (  ) 

Increases the current position (pre-increment operator). The new position will not exceed the maximum position.

Slider & fl7::faces::Slider::operator+= ( float  step  ) 

Increases the current position by the given amount. The new position will not exceed the maximum position and will not fall below the minimum position (in case of a negative value).

Slider & fl7::faces::Slider::operator-- (  ) 

Decreases the current position (pre-increment operator). The new position will not fall below the minimum position.

Slider& fl7::faces::Slider::operator-- ( int   )  [inline]

Decreases the current position (post-increment operator). The new position will not fall below the minimum position. This post-increment operator acts like a pre-increment operator.

Slider & fl7::faces::Slider::operator-= ( float  step  ) 

Decreases the current position by the given amount. The new position will not fall below the minimum position and will not exceed the maximum position (in case of a negative value).

void fl7::faces::Slider::SetCurrentPosition ( float  position  ) 

Sets the current position. The new position should fall between the minimum and the maximum value. If not, the minimum or maximum value will be updated as well.

void fl7::faces::Slider::SetMaximum ( float  maximum  ) 

Sets the maximum value for the (current) position. If the difference of the maximum and the new minimum value then is less than the retension value, the retension value will be updated as well. If the minimum value is greater than the maximum value, the minimum value will be updated as well. If the current position then is greater than the maximum value minus the retension value, the position will be updated as well.

void fl7::faces::Slider::SetMinimum ( float  minimum  ) 

Sets the minimum value for the (current) position. If the difference of the maximum and the new minimum value then is less than the retension value, the retension value will be updated as well. If the minimum value is greater than the maximum value, the maximum value will be updated as well. If the current position then is less than the minimum value, the position will be updated as well.

void fl7::faces::Slider::SetOrientation ( const Orientation  orientation  )  [inline]

Sets the orientation of this slider (horizontal or vertical).

void fl7::faces::Slider::SetRetension ( float  retension  ) 

Sets the retension from the current position to the imaginary next position. If the retension value coming from the current position then extends the maximum value, the maximum value will be updated as well.

void fl7::faces::Slider::SetStep ( float  step  ) 

Member Data Documentation

Will be called after the position of this slider has changed.

Reimplemented from fl7::faces::Control.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines