11#include <xtd/iequatable>
51 static constexpr int32 find_handle = 0;
53 static constexpr int32 find_shortcut = 1;
70 virtual
bool is_parent() const noexcept;
98 const
xtd::
string& name() const noexcept;
121 bool equals(const
xtd::
object& obj) const noexcept override;
125 bool equals(const
menu& other) const noexcept override;
129 xtd::
size get_hash_code() const noexcept override;
144 virtual
void merge_menu(const
menu& menu_src);
149 xtd::
string to_string() const noexcept override;
172 menu& operator =(const
menu&) = default;
181 void clone_menu(const
menu& menu_src);
189 virtual
void destroy_menu_handle(
intptr handle);
192 virtual
void on_item_removed(
size_t pos,
menu_item_ref item);
196 virtual
void create_menu();
197 virtual
void destroy_menu();
198 void recreate_menu();
201 static std::map<
intptr, std::reference_wrapper<
menu>> handles_;
Contains xtd::forms::layout::arranged_element_collection collection.
Represent a polymorphic wrapper capable of holding any type.
Definition any_object.hpp:29
Represents the menu structure of a form.
Definition main_menu.hpp:41
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Contains xtd::forms::component class.
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
std::optional< type_t > optional
Represents the null_opt alias on std::nullopt_t.
Definition optional.hpp:175
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10