Inheritance diagram for CEGUI::Thumb:
Public Member Functions | |
bool | isHotTracked (void) const |
return whether hot-tracking is enabled or not. | |
bool | isVertFree (void) const |
return whether the thumb is movable on the vertical axis. | |
bool | isHorzFree (void) const |
return whether the thumb is movable on the horizontal axis. | |
std::pair< float, float > | getVertRange (void) const |
Return a std::pair that describes the current range set for the vertical movement. | |
std::pair< float, float > | getHorzRange (void) const |
Return a std::pair that describes the current range set for the horizontal movement. | |
void | setHotTracked (bool setting) |
set whether the thumb uses hot-tracking. | |
void | setVertFree (bool setting) |
set whether thumb is movable on the vertical axis. | |
void | setHorzFree (bool setting) |
set whether thumb is movable on the horizontal axis. | |
void | setVertRange (float min, float max) |
set the movement range of the thumb for the vertical axis. | |
void | setHorzRange (float min, float max) |
set the movement range of the thumb for the horizontal axis. | |
Thumb (const String &type, const String &name) | |
Constructor for Thumb objects. | |
virtual | ~Thumb (void) |
Destructor for Thumb objects. | |
Static Public Attributes | |
static const String | EventNamespace |
Namespace for global events. | |
static const String | EventThumbPositionChanged |
The position of the thumb widget has changed. | |
static const String | EventThumbTrackStarted |
Name of the event fired when the user begins dragging the thumb. | |
static const String | EventThumbTrackEnded |
Name of the event fired when the user releases the thumb. | |
Protected Member Functions | |
void | addThumbEvents (void) |
Add thumb specific events. | |
virtual bool | testClassName_impl (const String &class_name) const |
Return whether this window was inherited from the given class name at some point in the inheritance heirarchy. | |
virtual void | onThumbPositionChanged (WindowEventArgs &e) |
event triggered internally when the position of the thumb | |
virtual void | onThumbTrackStarted (WindowEventArgs &e) |
Handler triggered when the user begins to drag the thumb. | |
virtual void | onThumbTrackEnded (WindowEventArgs &e) |
Handler triggered when the thumb is released. | |
virtual void | onMouseMove (MouseEventArgs &e) |
Handler called when the mouse cursor has been moved within this window's area. | |
virtual void | onMouseButtonDown (MouseEventArgs &e) |
Handler called when a mouse button has been depressed within this window's area. | |
virtual void | onCaptureLost (WindowEventArgs &e) |
Handler called when this window loses capture of mouse inputs. | |
Protected Attributes | |
bool | d_hotTrack |
true if events are to be sent real-time, else just when thumb is released | |
bool | d_vertFree |
true if thumb is movable vertically | |
bool | d_horzFree |
true if thumb is movable horizontally | |
float | d_vertMin |
float | d_vertMax |
vertical range | |
float | d_horzMin |
float | d_horzMax |
horizontal range | |
bool | d_beingDragged |
true if thumb is being dragged | |
Point | d_dragPoint |
point where we are being dragged at. |
The thumb widget is used to compose other widgets (like sliders and scroll bars). You would not normally need to use this widget directly unless you are making a new widget of some type.
|
Return a std::pair that describes the current range set for the horizontal movement.
|
|
Return a std::pair that describes the current range set for the vertical movement.
|
|
return whether the thumb is movable on the horizontal axis.
|
|
return whether hot-tracking is enabled or not.
|
|
return whether the thumb is movable on the vertical axis.
|
|
Handler called when this window loses capture of mouse inputs.
Reimplemented from CEGUI::ButtonBase. |
|
Handler called when a mouse button has been depressed within this window's area.
Reimplemented from CEGUI::ButtonBase. |
|
Handler called when the mouse cursor has been moved within this window's area.
Reimplemented from CEGUI::ButtonBase. |
|
set whether thumb is movable on the horizontal axis.
|
|
set the movement range of the thumb for the horizontal axis. The values specified here are relative to the parent window for the thumb, and are specified in whichever metrics mode is active for the widget.
|
|
set whether the thumb uses hot-tracking.
|
|
set whether thumb is movable on the vertical axis.
|
|
set the movement range of the thumb for the vertical axis. The values specified here are relative to the parent window for the thumb, and are specified in whichever metrics mode is active for the widget.
|
|
Return whether this window was inherited from the given class name at some point in the inheritance heirarchy.
Reimplemented from CEGUI::PushButton. |