8#include <xtd/drawing/image>
10#include <xtd/iclonable>
223 template<
class delegate_type>
225 template<
class delegate_type>
227 template<
class delegate_type>
229 template<
class delegate_type>
231 template<
class delegate_type>
233 template<
class delegate_type>
235 template<
class delegate_type>
237 template<
class delegate_type>
239 template<
class delegate_type>
241 template<
class delegate_type>
242 menu_item(
const xtd::string& text, delegate_type on_click,
const xtd::drawing::image& image,
xtd::forms::menu_item_kind kind,
bool checked,
xtd::forms::shortcut shortcut) : menu_item(
text, xtd::
event_handler(on_click), image, kind,
checked,
shortcut) {}
243 menu_item(
const xtd::string& text,
const std::initializer_list<const_menu_item_ref>& items);
356 void on_item_removed(
size_t pos,
menu_item_ref item) override;
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.hpp:49
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
Represents an event.
Definition event.hpp:21
Represents the menu structure of a form.
Definition main_menu.hpp:42
Supports cloning, which creates a new instance of a class with the same value as an existing instance...
Definition iclonable.hpp:21
generic_event_handler< const xtd::event_args & > event_handler
Represents the method that will handle an event that has no event data.
Definition event_handler.hpp:24
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
xtd::unique_ptr_object< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.hpp:25
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
Contains classes that represent ASCII and Unicode character encodings; abstract base classes for conv...
Definition basic_string_builder.hpp:17
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201
Contains xtd::forms::shortcut enum class.