31 #ifndef _CEGUIThumb_h_
32 #define _CEGUIThumb_h_
34 #include "./PushButton.h"
39 # pragma warning(push)
40 # pragma warning(disable : 4251)
41 # pragma warning(disable : 4996)
126 std::pair<float, float> getVertRange(
void)
const;
137 std::pair<float, float> getHorzRange(
void)
const;
198 void setVertRange(
float min,
float max);
213 void setVertRange(
const std::pair<float, float> &range);
232 void setHorzRange(
float min,
float max);
246 void setHorzRange(
const std::pair<float, float> &range);
263 virtual ~
Thumb(
void);
268 void banPropertiesForAutoWindow();
324 void addThumbProperties(
void);
334 typedef std::pair<float,float> return_type;
335 typedef return_type safe_method_return_type;
336 typedef const std::pair<float,float>& pass_type;
339 static const String& getDataTypeName()
341 static String type(
"std::pair<float,float>");
346 static return_type fromString(
const String& str)
348 float rangeMin = 0, rangeMax = 0;
349 sscanf(str.
c_str(),
" min:%f max:%f", &rangeMin, &rangeMax);
350 return std::pair<float,float>(rangeMin,rangeMax);
356 sprintf(buff,
"min:%f max:%f", val.first, val.second);
363 #if defined(_MSC_VER)
364 # pragma warning(pop)
367 #endif // end of guard _CEGUIThumb_h_