7#include <xtd/drawing/size>
8#include <xtd/iclonable>
50 explicit main_menu(
const std::vector<menu_item_ref>& menu_items);
54 explicit main_menu(
const std::initializer_list<const_menu_item_ref>& menu_items);
266 template<
typename on_click_type>
268 template<
typename on_click_type>
270 template<
typename on_click_type>
272 template<
typename on_click_type>
289 void on_item_removed(
size_t pos,
menu_item_ref item)
override;
295 std::vector<xtd::sptr<menu_item>> standard_menu_items_;
Represents text as a sequence of character units.
Definition basic_string.h:79
Stores an ordered pair of integers, which specify a height and width.
Definition size.h:31
Represents the menu structure of a form.
Definition main_menu.h:41
static xtd::forms::main_menu create_standard_items(const xtd::string &theme, const xtd::drawing::size &size, const xtd::event_handler &on_click)
A factory to create a main menu with specified theme, image size and on click event handler.
static xtd::forms::main_menu create_standard_items(const xtd::string &theme, const xtd::event_handler &on_click)
A factory to create a main menu with specified theme and on click event handler.
static xtd::forms::main_menu create_standard_items(const xtd::event_handler &on_click)
A factory to create a main menu with specified on click event handler.
main_menu()
Initialize a new instance of main_menu class.
void destroy_menu_handle(intptr handle) override
Destroys the handle to the Menu.
intptr create_menu_handle() override
Creates a new handle to the Menu.
static xtd::forms::main_menu create_standard_items(const xtd::drawing::size &image_size, const xtd::event_handler &on_click)
A factory to create a main menu with specified image size and on click event handler.
xtd::uptr< xtd::object > clone() const override
Creates a new object that is a copy of the current instance.
main_menu(const std::vector< menu_item_ref > &menu_items)
Initialize a new instance of main_menu class.
Supports cloning, which creates a new instance of a class with the same value as an existing instance...
Definition iclonable.h:21
generic_event_handler<> event_handler
Represents the method that will handle an event that has no event data.
Definition event_handler.h:32
#define forms_export_
Define shared library export.
Definition forms_export.h:13
xtd::forms::style_sheets::control form
The form data allows you to specify the box of a form control.
Definition form.h:23
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.h:25
size_t size
Represents a size of any object in bytes.
Definition size.h:23
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.h:23
Contains xtd::forms::message class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10