lecui 1.0.0-alpha.20
lecui C++ user interface library
Public Member Functions | List of all members
liblec::lecui::form_menu Class Reference

Form menu. More...

#include <form_menu.h>

Public Member Functions

 form_menu (form &fm)
 Constructor. More...
 
 ~form_menu ()
 Destructor.
 
bool add (const std::string &text, const std::string &tooltip, const std::vector< form_menu_item > &items, std::string &error)
 Add form menu label. More...
 

Detailed Description

Form menu.

Menu is added in the title bar to the right of the form caption.

Constructor & Destructor Documentation

◆ form_menu()

liblec::lecui::form_menu::form_menu ( form fm)

Constructor.

Parameters
fmA reference to the form.

Member Function Documentation

◆ add()

bool liblec::lecui::form_menu::add ( const std::string &  text,
const std::string &  tooltip,
const std::vector< form_menu_item > &  items,
std::string &  error 
)

Add form menu label.

Parameters
textThe label text, e.g. "File".
tooltipThe (optional) tooltip text.
itemsThe items to be displayed when the label is selected.
errorError information.
Returns
Returns true if successful, else false.

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