Open3D (C++ API)  0.18.0+fcf98ee
Public Member Functions
open3d::visualization::gui::MenuMacOS Class Reference

#include <MenuMacOS.h>

Inheritance diagram for open3d::visualization::gui::MenuMacOS:
open3d::visualization::gui::MenuBase

Public Member Functions

 MenuMacOS ()
 
virtual ~MenuMacOS ()
 
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 ()
 

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
 

Constructor & Destructor Documentation

◆ MenuMacOS()

open3d::visualization::gui::MenuMacOS::MenuMacOS ( )

◆ ~MenuMacOS()

virtual open3d::visualization::gui::MenuMacOS::~MenuMacOS ( )
virtual

Member Function Documentation

◆ AddItem()

void open3d::visualization::gui::MenuMacOS::AddItem ( const char *  name,
ItemId  item_id = NO_ITEM,
KeyName  key = KEY_NONE 
)
overridevirtual

◆ AddMenu()

void open3d::visualization::gui::MenuMacOS::AddMenu ( const char *  name,
std::shared_ptr< MenuBase submenu 
)
overridevirtual

◆ AddSeparator()

void open3d::visualization::gui::MenuMacOS::AddSeparator ( )
overridevirtual

◆ CalcHeight()

int open3d::visualization::gui::MenuMacOS::CalcHeight ( const Theme theme) const
overridevirtual

◆ CheckVisibilityChange()

bool open3d::visualization::gui::MenuMacOS::CheckVisibilityChange ( ) const
overridevirtual

Returns true if submenu visibility changed on last call to DrawMenuBar.

Implements open3d::visualization::gui::MenuBase.

◆ Draw()

ItemId open3d::visualization::gui::MenuMacOS::Draw ( const DrawContext context,
const char *  name,
bool  is_enabled 
)
overridevirtual

◆ DrawMenuBar()

ItemId open3d::visualization::gui::MenuMacOS::DrawMenuBar ( const DrawContext context,
bool  is_enabled 
)
overridevirtual

◆ GetNativePointer()

void* open3d::visualization::gui::MenuMacOS::GetNativePointer ( )
overridevirtual

◆ GetNumberOfItems()

int open3d::visualization::gui::MenuMacOS::GetNumberOfItems ( ) const
overridevirtual

◆ InsertItem()

void open3d::visualization::gui::MenuMacOS::InsertItem ( int  index,
const char *  name,
ItemId  item_id = NO_ITEM,
KeyName  key = KEY_NONE 
)
overridevirtual

◆ InsertMenu()

void open3d::visualization::gui::MenuMacOS::InsertMenu ( int  index,
const char *  name,
std::shared_ptr< MenuBase submenu 
)
overridevirtual

◆ InsertSeparator()

void open3d::visualization::gui::MenuMacOS::InsertSeparator ( int  index)
overridevirtual

◆ IsChecked()

bool open3d::visualization::gui::MenuMacOS::IsChecked ( ItemId  item_id) const
overridevirtual

◆ IsEnabled()

bool open3d::visualization::gui::MenuMacOS::IsEnabled ( ItemId  item_id) const
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.

◆ SetChecked()

void open3d::visualization::gui::MenuMacOS::SetChecked ( ItemId  item_id,
bool  checked 
)
overridevirtual

◆ SetEnabled()

void open3d::visualization::gui::MenuMacOS::SetEnabled ( ItemId  item_id,
bool  enabled 
)
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.


The documentation for this class was generated from the following file: