libpromeki 1.0.0-alpha
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
promeki::TuiMenu Class Reference

Dropdown menu. More...

#include <menu.h>

Inheritance diagram for promeki::TuiMenu:
Collaboration diagram for promeki::TuiMenu:

Public Member Functions

 TuiMenu (const String &title=String(), ObjectBase *parent=nullptr)
 
const String & title () const
 
void setTitle (const String &title)
 
TuiActionaddAction (const String &text)
 
void addSeparator ()
 
const List< TuiAction * > & actions () const
 
int currentIndex () const
 
void setCurrentIndex (int index)
 
bool isOpen () const
 
void open ()
 
void close ()
 
Size2Di32 sizeHint () const override
 
- Public Member Functions inherited from promeki::TuiWidget
 TuiWidget (ObjectBase *parent=nullptr)
 Constructs a TuiWidget.
 
 ~TuiWidget () override
 Destructor.
 
void update () override
 Marks the widget as needing a repaint.
 

Protected Member Functions

void paintEvent (PaintEvent *e) override
 
void keyPressEvent (KeyEvent *e) override
 

Detailed Description

Dropdown menu.

Thread Safety
Thread-affine — see TuiWidget.

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