Boost.UI
User Interface Boost library
|
Go to the documentation of this file.
8 #ifndef BOOST_UI_SLIDER_HPP
9 #define BOOST_UI_SLIDER_HPP
13 #ifdef BOOST_HAS_PRAGMA_ONCE
42 BOOST_UI_DETAIL_HANDLER(slide,
slider);
45 BOOST_UI_DETAIL_HANDLER(slide_end,
slider);
51 void detail_create(
widget& parent,
bool horizontal, value_type initial,
52 value_type min, value_type max);
56 void check_range(value_type value)
const
57 { check_range(value, min(), max()); }
58 static void check_range(value_type value, value_type min, value_type max);
60 void on_slide_raw(
const boost::function<
void()>& handler);
61 void on_slide_end_raw(
const boost::function<
void()>& handler);
64 detail_impl* get_impl();
65 const detail_impl* get_impl()
const;
80 { create(parent, initial, min, max); }
82 { create(parent, initial); }
85 { detail_create(parent,
true, initial, min, max);
return *
this; }
87 {
return create(parent, initial, 0, 100); }
103 { create(parent, initial, min, max); }
105 { create(parent, initial); }
108 { detail_create(parent,
false, initial, min, max);
return *
this; }
110 {
return create(parent, initial, 0, 100); }
117 #endif // BOOST_UI_SLIDER_HPP
vslider & create(widget &parent, value_type initial, value_type min, value_type max)
Creates vertical slider.
Definition: slider.hpp:106
vslider(widget &parent, value_type initial, value_type min, value_type max)
Creates vertical slider.
Definition: slider.hpp:101
Horizontal slider widget.
Definition: slider.hpp:71
hslider & create(widget &parent, value_type initial=0)
Creates horizontal slider.
Definition: slider.hpp:86
Boost C++ libraries namespace.
Definition: window.hpp:19
Vertical slider widget.
Definition: slider.hpp:94
Slider widget base class.
Definition: slider.hpp:26
int value_type
Slider value type.
Definition: slider.hpp:30
hslider & create(widget &parent, value_type initial, value_type min, value_type max)
Creates horizontal slider.
Definition: slider.hpp:83
vslider & create(widget &parent, value_type initial=0)
Creates vertical slider.
Definition: slider.hpp:109
vslider(widget &parent, value_type initial=0)
Creates vertical slider.
Definition: slider.hpp:104
hslider(widget &parent, value_type initial, value_type min, value_type max)
Creates horizontal slider.
Definition: slider.hpp:78
hslider(widget &parent, value_type initial=0)
Creates horizontal slider.
Definition: slider.hpp:81