8 #include <xtd/drawing/image> 220 template<
typename delegate_type>
222 template<
typename delegate_type>
224 template<
typename delegate_type>
226 template<
typename delegate_type>
228 template<
typename delegate_type>
230 template<
typename delegate_type>
232 template<
typename delegate_type>
234 template<
typename delegate_type>
236 template<
typename delegate_type>
238 template<
typename delegate_type>
239 menu_item(
const xtd::ustring& 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) {}
257 intptr menu_id()
const noexcept;
269 bool enabled()
const noexcept;
275 bool is_parent()
const noexcept
override;
311 void perform_click();
335 intptr create_menu_handle()
override;
336 void destroy_menu_handle(
intptr handle)
override;
344 void on_item_removed(
size_t pos,
menu_item_ref item)
override;
348 std::shared_ptr<data> data_;
intmax_t intptr
Represent a pointer or a handle.
Definition: types.h:151
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
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
An abstract base class that provides functionality for the bitmap and metafile descended classes...
Definition: image.h:48
Represents the menu structure of a form.
Definition: main_menu.h:38
Contains xtd::forms::shortcut enum class.