7 #include <xtd/drawing/size> 47 explicit main_menu(
const std::vector<menu_item_ref>& menu_items);
51 explicit main_menu(
const std::initializer_list<const_menu_item_ref>& menu_items);
260 template<
typename on_click_type>
262 template<
typename on_click_type>
264 template<
typename on_click_type>
266 template<
typename on_click_type>
274 intptr create_menu_handle()
override;
275 void destroy_menu_handle(
intptr handle)
override;
277 void on_item_removed(
size_t pos,
menu_item_ref item)
override;
283 std::vector<std::unique_ptr<menu_item>> standard_menu_items_;
intmax_t intptr
Represent a pointer or a handle.
Definition: types.h:151
generic_event_handler<> event_handler
Represents the method that will handle an event that has no event data.
Definition: event_handler.h:32
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:31
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Contains xtd::forms::message class.
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
xtd::forms::style_sheets::control form
The form data allows you to specify the box of a form control.
Definition: form.h:21
Represents the menu structure of a form.
Definition: main_menu.h:38
size_t size
Represents a size of any object in bytes.
Definition: types.h:195