30 #ifndef _CEGUIThumb_h_
31 #define _CEGUIThumb_h_
33 #include "./PushButton.h"
38 # pragma warning(push)
39 # pragma warning(disable : 4251)
40 # pragma warning(disable : 4996)
125 std::pair<float, float> getVertRange(
void)
const;
136 std::pair<float, float> getHorzRange(
void)
const;
197 void setVertRange(
float min,
float max);
212 void setVertRange(
const std::pair<float, float> &range);
231 void setHorzRange(
float min,
float max);
245 void setHorzRange(
const std::pair<float, float> &range);
262 virtual ~
Thumb(
void);
267 void banPropertiesForAutoWindow();
323 void addThumbProperties(
void);
333 typedef std::pair<float,float> return_type;
334 typedef return_type safe_method_return_type;
335 typedef const std::pair<float,float>& pass_type;
338 static const String& getDataTypeName()
340 static String type(
"std::pair<float,float>");
345 static return_type fromString(
const String& str)
347 float rangeMin = 0, rangeMax = 0;
348 sscanf(str.
c_str(),
" min:%f max:%f", &rangeMin, &rangeMax);
349 return std::pair<float,float>(rangeMin,rangeMax);
352 static string_return_type toString(pass_type val)
355 sprintf(buff,
"min:%f max:%f", val.first, val.second);
362 #if defined(_MSC_VER)
363 # pragma warning(pop)
366 #endif // end of guard _CEGUIThumb_h_
static const String EventThumbPositionChanged
Definition: Thumb.h:70
bool d_vertFree
true if thumb is movable vertically
Definition: Thumb.h:307
bool isHotTracked(void) const
return whether hot-tracking is enabled or not.
Definition: Thumb.h:94
static const String EventNamespace
Namespace for global events.
Definition: Thumb.h:58
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
bool isVertFree(void) const
return whether the thumb is movable on the vertical axis.
Definition: Thumb.h:104
void setHotTracked(bool setting)
set whether the thumb uses hot-tracking.
Definition: Thumb.h:152
Base class for Thumb widget.
Definition: Thumb.h:55
Vector2f d_dragPoint
point where we are being dragged at.
Definition: Thumb.h:316
float d_horzMax
horizontal range
Definition: Thumb.h:312
void setVertFree(bool setting)
set whether thumb is movable on the vertical axis.
Definition: Thumb.h:165
bool d_beingDragged
true if thumb is being dragged
Definition: Thumb.h:315
bool isHorzFree(void) const
return whether the thumb is movable on the horizontal axis.
Definition: Thumb.h:114
const char * c_str(void) const
Returns contents of the String as a null terminated string of utf8 encoded data.
Definition: String.h:1143
void setHorzFree(bool setting)
set whether thumb is movable on the horizontal axis.
Definition: Thumb.h:178
Helper class used to convert various data types to and from the format expected in Property strings...
Definition: ForwardRefs.h:84
static const String EventThumbTrackStarted
Definition: Thumb.h:76
bool d_horzFree
true if thumb is movable horizontally
Definition: Thumb.h:308
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: InputEvent.h:251
bool d_hotTrack
true if events are to be sent real-time, else just when thumb is released
Definition: Thumb.h:306
static const String WidgetTypeName
Window factory name.
Definition: Thumb.h:59
EventArgs based class that is used for objects passed to input event handlers concerning mouse input...
Definition: InputEvent.h:280
float d_vertMax
vertical range
Definition: Thumb.h:311
static const String EventThumbTrackEnded
Definition: Thumb.h:81
String class used within the GUI system.
Definition: String.h:62