Boost.UI
User Interface Boost library
|
Go to the documentation of this file.
8 #ifndef BOOST_UI_CHOICE_HPP
9 #define BOOST_UI_CHOICE_HPP
13 #ifdef BOOST_HAS_PRAGMA_ONCE
41 explicit choice(
widget& parent,
const std::vector<uistring>& options)
42 { create(parent, options); }
44 choice& create(
widget& parent,
const std::vector<uistring>& options);
46 template <
class Iterator>
48 { create(parent, first, last); }
50 template <
class Iterator>
52 {
return create(parent, std::vector<uistring>(first, last)); }
54 template <
class Range>
56 { create(parent, r); }
58 template <
class Range>
60 {
return create(parent, detail::range_to_vector_uistring(r)); }
62 #ifndef BOOST_NO_CXX11_HDR_INITIALIZER_LIST
65 { create(parent, list); }
69 {
return create(parent, detail::initializer_list_to_vector_uistring(list)); }
80 BOOST_UI_DETAIL_HANDLER(select,
choice);
85 void on_select_raw(
const boost::function<
void()>& handler);
86 void on_select_event_raw(
const boost::function<
void(
index_event&)>& handler);
89 detail_impl* get_impl();
90 const detail_impl* get_impl()
const;
96 #endif // BOOST_UI_CHOICE_HPP
Helper class to convert string between UI and application logic only.
Definition: string.hpp:49
choice(widget &parent, std::initializer_list< T > list)
Creates choice widget with options.
Definition: choice.hpp:64
choice(widget &parent, const std::vector< uistring > &options)
Creates choice widget with options.
Definition: choice.hpp:41
choice(widget &parent, Iterator first, Iterator last)
Creates choice widget with options.
Definition: choice.hpp:47
Event class that holds some index in container.
Definition: event.hpp:55
choice(widget &parent)
Creates empty choice widget.
Definition: choice.hpp:35
Boost C++ libraries namespace.
Definition: window.hpp:19
choice & create(widget &parent, Iterator first, Iterator last)
Creates choice widget with options.
Definition: choice.hpp:51
Widget to select string from popup list of strings.
Definition: choice.hpp:29
choice & create(widget &parent, std::initializer_list< T > list)
Creates choice widget with options.
Definition: choice.hpp:68
choice & create(widget &parent, const Range &r)
Creates choice widget with options.
Definition: choice.hpp:59
Abstract widget that holds array of strings.
Definition: strings_box.hpp:71
choice(widget &parent, const Range &r)
Creates choice widget with options.
Definition: choice.hpp:55
Widget with array of strings.