MenuBase

Base class of menu bar and popup menu.

Header#include "nativeui/menu_base.h"
Namespacenamespace nu
Typeclass (RefCounted)

Methods

void Append(MenuItem* item)

Append the item to the menu.

Parameters

void Insert(MenuItem* item, int index)

Insert the item at index to the menu.

Parameters

void Remove(MenuItem* item)

Remove the item from the menu.

Parameters

int ItemCount() const

Return the count of items in the menu.

Return

int

MenuItem* ItemAt(int index) const

Return the item at index.

Parameters

Return

MenuItem*

NativeMenu GetNative() const

Return the native instance wrapped by the class.

Return

NativeMenu