Home | Libraries | People | FAQ | More |
boost::ui::strings_box — Abstract widget that holds array of strings.
// In header: <boost/ui/strings_box.hpp> class strings_box : public boost::ui::widget { public: // types typedef uistring value_type; // String type. typedef index_type size_type; // Integral type. // public member functions uistring at(size_type) const; uistring operator[](size_type) const; bool empty() const; size_type size() const; void clear(); void push_back(const uistring &); strings_box & select(size_type); // private member functions void check_range(size_type) const; native_impl * get_native(); const native_impl * get_native() const; // public data members static const size_type npos; // Invalid index. };
strings_box
public member functionsuistring at(size_type pos) const;Returns specified element with bounds checking.
Throws: |
std::out_of_range If pos is an invalid index |
uistring operator[](size_type pos) const;Retuns specified element.
bool empty() const;Checks whether the container has options.
size_type size() const;Returns the number of options.
void clear();Clears the contents.
void push_back(const uistring & value);Appends the given string value to the end.
strings_box & select(size_type pos);Selects specified element.