Boost.UI
User Interface Boost library
|
Go to the documentation of this file.
8 #ifndef BOOST_UI_COMBO_BOX_HPP
9 #define BOOST_UI_COMBO_BOX_HPP
13 #ifdef BOOST_HAS_PRAGMA_ONCE
43 { create(parent, text); }
46 {
return create(parent, text, std::vector<uistring>()); }
51 { create(parent, options); }
54 {
return create(parent,
uistring(), options); }
56 template <
class Iterator>
58 { create(parent, first, last); }
60 template <
class Iterator>
62 {
return create(parent, std::vector<uistring>(first, last)); }
64 template <
class Range>
66 { create(parent, r); }
68 template <
class Range>
70 {
return create(parent, detail::range_to_vector_uistring(r)); }
72 #ifndef BOOST_NO_CXX11_HDR_INITIALIZER_LIST
75 { create(parent, list); }
79 {
return create(parent, detail::initializer_list_to_vector_uistring(list)); }
85 const std::vector<uistring>& options)
86 { create(parent, text, options); }
90 template <
class Range>
92 { create(parent, text, r); }
94 template <
class Range>
96 {
return create(parent, text, detail::range_to_vector_uistring(r)); }
98 #ifndef BOOST_NO_CXX11_HDR_INITIALIZER_LIST
101 { create(parent, text, list); }
105 {
return create(parent, text, detail::initializer_list_to_vector_uistring(list)); }
116 BOOST_UI_DETAIL_HANDLER(select,
combo_box);
121 void on_select_raw(
const boost::function<
void()>& handler);
122 void on_select_event_raw(
const boost::function<
void(
index_event&)>& handler);
125 detail_impl* get_impl();
126 const detail_impl* get_impl()
const;
132 #endif // BOOST_UI_COMBO_BOX_HPP
Helper class to convert string between UI and application logic only.
Definition: string.hpp:49
combo_box(widget &parent, Iterator first, Iterator last)
Creates combo box widget with options and without initial text.
Definition: combo_box.hpp:57
combo_box & create(widget &parent, const uistring &text, std::initializer_list< T > list)
Creates combo_box widget with options and initial text.
Definition: combo_box.hpp:104
combo_box & create(widget &parent, const std::vector< uistring > &options)
Creates combo box widget with options and without initial text.
Definition: combo_box.hpp:53
combo_box & create(widget &parent, const uistring &text, const Range &r)
Creates combo_box widget with options and initial text.
Definition: combo_box.hpp:95
combo_box & create(widget &parent, Iterator first, Iterator last)
Creates combo box widget with options and without initial text.
Definition: combo_box.hpp:61
combo_box(widget &parent, const uistring &text)
Creates combo box widget without options and with initial text.
Definition: combo_box.hpp:42
combo_box(widget &parent, const uistring &text, const Range &r)
Creates combo_box widget with options and initial text.
Definition: combo_box.hpp:91
Event class that holds some index in container.
Definition: event.hpp:55
combo_box(widget &parent)
Creates empty combo box widget.
Definition: combo_box.hpp:35
Boost C++ libraries namespace.
Definition: window.hpp:19
combo_box & create(widget &parent, const Range &r)
Creates combo box widget with options and without initial text.
Definition: combo_box.hpp:69
combo_box & create(widget &parent, const uistring &text)
Creates combo box widget without options and with initial text.
Definition: combo_box.hpp:45
combo_box(widget &parent, const std::vector< uistring > &options)
Creates combo box widget with options and without initial text.
Definition: combo_box.hpp:50
combo_box(widget &parent, const uistring &text, std::initializer_list< T > list)
Creates combo_box widget with options and initial text.
Definition: combo_box.hpp:100
Widget to select one or more strings and edit it.
Definition: combo_box.hpp:29
combo_box & create(widget &parent, std::initializer_list< T > list)
Creates combo box widget with options and without initial text.
Definition: combo_box.hpp:78
combo_box(widget &parent, std::initializer_list< T > list)
Creates combo box widget with options and without initial text.
Definition: combo_box.hpp:74
combo_box(widget &parent, const uistring &text, const std::vector< uistring > &options)
Creates combo_box widget with options and initial text.
Definition: combo_box.hpp:84
Abstract widget that holds array of strings.
Definition: strings_box.hpp:71
combo_box(widget &parent, const Range &r)
Creates combo box widget with options and without initial text.
Definition: combo_box.hpp:65
Widget with array of strings.