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;
108 std::any tag() const noexcept;
118 using
object::equals;
119 bool equals(const
menu&) const noexcept override;
134 virtual
void merge_menu(const
menu& menu_src);
139 xtd::
string to_string() const noexcept override;
162 menu& operator =(const
menu&) = default;
171 void clone_menu(const
menu& menu_src);
179 virtual
void destroy_menu_handle(
intptr handle);
182 virtual
void on_item_removed(
size_t pos,
menu_item_ref item);
186 virtual
void create_menu();
187 virtual
void destroy_menu();
188 void recreate_menu();
191 static std::map<
intptr, std::reference_wrapper<
menu>> handles_;
Contains xtd::forms::layout::arranged_element_collection collection.
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:181
int32_t int32
Represents a 32-bit signed integer.
Definition int32.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