- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::USlider Class Reference

A vertical or horizontal slider. More...

#include <uslider.hpp>

Inheritance diagram for ufo::USlider:

ufo::UAbstractSlider ufo::UWidget ufo::UObject ufo::UCollectable List of all members.

Public Member Functions

 USlider ()
 USlider (Orientation orientation)
 USlider (int min, int max, int value=0)
 USlider (Orientation orientation, int min, int max, int value)

Protected Member Functions

virtual UDimension getContentsSize (const UDimension &maxSize) const
virtual void processMouseEvent (UMouseEvent *e)

Detailed Description

A vertical or horizontal slider.

A slider is used to control a bounded value.

Author:
Johannes Schmidt


Constructor & Destructor Documentation

ufo::USlider::USlider  ) 
 

Creates a slider with horizontal orientation, a minimum value of 0, a maximum of 99 and a value of 0.

ufo::USlider::USlider Orientation  orientation  ) 
 

Creates a slider with the given orientation, a minimum value of 0, a maximum of 100 and a value of 0.

ufo::USlider::USlider int  min,
int  max,
int  value = 0
 

Creates a slider with horizontal orientation and a value of 0.

Parameters:
min The minimum value
max The maximum value
value The initial value

ufo::USlider::USlider Orientation  orientation,
int  min,
int  max,
int  value
 

Creates a slider with the given values.

Parameters:
orientation The visible orientation (horizontal or vertival).
min The minimum value
max The maximum value
value The initial value


Member Function Documentation

virtual void ufo::USlider::processMouseEvent UMouseEvent e  )  [protected, virtual]
 

Processes focus events. Primarily, it is used to notify listeners.

Reimplemented from ufo::UWidget.


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt