Open3D (C++ API)
0.17.0
|
#include <Menu.h>
Data Structures | |
struct | Impl |
Public Member Functions | |
Menu () | |
virtual | ~Menu () |
void | AddItem (const char *name, ItemId item_id=NO_ITEM, KeyName key=KEY_NONE) override |
void | AddMenu (const char *name, std::shared_ptr< MenuBase > submenu) override |
void | AddSeparator () override |
void | InsertItem (int index, const char *name, ItemId item_id=NO_ITEM, KeyName key=KEY_NONE) override |
void | InsertMenu (int index, const char *name, std::shared_ptr< MenuBase > submenu) override |
void | InsertSeparator (int index) override |
int | GetNumberOfItems () const override |
bool | IsEnabled (ItemId item_id) const override |
void | SetEnabled (ItemId item_id, bool enabled) override |
bool | IsChecked (ItemId item_id) const override |
void | SetChecked (ItemId item_id, bool checked) override |
int | CalcHeight (const Theme &theme) const override |
bool | CheckVisibilityChange () const override |
Returns true if submenu visibility changed on last call to DrawMenuBar. More... | |
ItemId | DrawMenuBar (const DrawContext &context, bool is_enabled) override |
ItemId | Draw (const DrawContext &context, const char *name, bool is_enabled) override |
void * | GetNativePointer () override |
Public Member Functions inherited from open3d::visualization::gui::MenuBase | |
MenuBase () | |
virtual | ~MenuBase () |
Friends | |
class | Application |
Additional Inherited Members | |
Public Types inherited from open3d::visualization::gui::MenuBase | |
using | ItemId = int |
Static Public Attributes inherited from open3d::visualization::gui::MenuBase | |
static constexpr ItemId | NO_ITEM = -1 |
The menu item action is handled by Window, rather than by registering a a callback function with (non-existent) Menu::SetOnClicked(). This is because on macOS the menubar is global over all application windows, so any callback would need to go find the data object corresponding to the active window.
open3d::visualization::gui::Menu::Menu | ( | ) |
|
virtual |
|
overridevirtual |
Implements open3d::visualization::gui::MenuBase.
|
overridevirtual |
Implements open3d::visualization::gui::MenuBase.
|
overridevirtual |
Implements open3d::visualization::gui::MenuBase.
|
overridevirtual |
Implements open3d::visualization::gui::MenuBase.
|
overridevirtual |
Returns true if submenu visibility changed on last call to DrawMenuBar.
Implements open3d::visualization::gui::MenuBase.
|
overridevirtual |
Implements open3d::visualization::gui::MenuBase.
|
overridevirtual |
Implements open3d::visualization::gui::MenuBase.
|
overridevirtual |
Implements open3d::visualization::gui::MenuBase.
|
overridevirtual |
Implements open3d::visualization::gui::MenuBase.
|
overridevirtual |
Implements open3d::visualization::gui::MenuBase.
|
overridevirtual |
Implements open3d::visualization::gui::MenuBase.
|
overridevirtual |
Implements open3d::visualization::gui::MenuBase.
|
overridevirtual |
Implements open3d::visualization::gui::MenuBase.
|
overridevirtual |
Searches the menu hierarchy down from this menu to find the item and returns true if the item is enabled.
Implements open3d::visualization::gui::MenuBase.
|
overridevirtual |
Implements open3d::visualization::gui::MenuBase.
|
overridevirtual |
Searches the menu hierarchy down from this menu to find the item and set it enabled according to enabled
.
Implements open3d::visualization::gui::MenuBase.
|
friend |