Loading...
Searching...
No Matches
ml::NativeMenuBar::Menu Class Reference

#include <Malena/Graphics/Controls/NativeMenuBar.h>

Public Member Functions

Menu & addItem (const std::string &label, std::function< void()> action)
 Add a clickable menu item with a callback.
Menu & addSeparator ()
 Add a horizontal separator line.
const std::vector< Item > & getItems () const
const std::string & getLabel () const

Friends

class NativeMenuBar

Detailed Description

Definition at line 52 of file NativeMenuBar.h.

Member Function Documentation

◆ addItem()

Menu & ml::NativeMenuBar::Menu::addItem ( const std::string & label,
std::function< void()> action )

Add a clickable menu item with a callback.

◆ addSeparator()

Menu & ml::NativeMenuBar::Menu::addSeparator ( )

Add a horizontal separator line.

◆ getItems()

const std::vector< Item > & ml::NativeMenuBar::Menu::getItems ( ) const
inline

Definition at line 62 of file NativeMenuBar.h.

◆ getLabel()

const std::string & ml::NativeMenuBar::Menu::getLabel ( ) const
inline

Definition at line 61 of file NativeMenuBar.h.

◆ NativeMenuBar

friend class NativeMenuBar
friend

Definition at line 65 of file NativeMenuBar.h.


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