7 #include <xtd/iequatable> 40 template<
typename type_t>
42 std::sort(first, last);
62 item(
const char* value);
65 item& operator =(
const item& value) =
default;
66 item& operator =(
item&& value) =
default;
67 virtual ~
item() =
default;
79 virtual std::any tag()
const noexcept;
85 int32 compare_to(
const item& value)
const noexcept
override;
87 bool equals(
const item& value)
const noexcept
override;
110 static const size_t npos = std::numeric_limits<size_t>::max();
118 virtual size_t selected_index() const noexcept;
122 virtual
list_control& selected_index(
size_t selected_index) = 0;
148 drawing::color default_back_color() const noexcept override;
149 drawing::color default_fore_color() const noexcept override;
157 virtual
bool allow_selection() const noexcept;
160 virtual
void on_selected_index_changed(const
event_args&
e);
163 virtual
void on_selected_value_changed(const
event_args& e);
167 void set_selected_index(
size_t value);
171 std::shared_ptr<data> data_;
Contains xtd::forms::application class.
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
generic_event_handler<> event_handler
Represents the method that will handle an event that has no event data.
Definition: event_handler.h:32
Defines a generalized comparison method that a value type or class implements to create a type-specif...
Definition: icomparable.h:17
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
std::string to_string(const date_time &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: date_time.h:1063
Represents an event.
Definition: event.h:21
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
Indicates that all styles except allow_binary_specifier, allow_octal_specifier and allow_hex_specifie...
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
Contains xtd::forms::control control.