Interface for components that register a button+action in a toolbar.
More...
#include <Malena/Traits/Communication/ToolbarWidget.h>
Interface for components that register a button+action in a toolbar.
Inherit ToolbarWidget alongside Hookable and call sendHook(ml::ToolbarWidget::Hook::REGISTER) to add a labelled action button to whatever shell is listening.
Usage
std::function<void()>
getToolbarAction()
override {
return [
this]{ doExport(); }; }
};
});
Trait that layers a hook system on top of ml::Messenger.
- See also
- SplitPaneWidget, OverlayWidget
Definition at line 38 of file ToolbarWidget.h.
◆ Hook
◆ ~ToolbarWidget()
| virtual ml::ToolbarWidget::~ToolbarWidget |
( |
| ) |
|
|
virtualdefault |
◆ getToolbarAction()
| virtual std::function< void()> ml::ToolbarWidget::getToolbarAction |
( |
| ) |
|
|
pure virtual |
◆ getToolbarLabel()
| virtual std::string ml::ToolbarWidget::getToolbarLabel |
( |
| ) |
|
|
pure virtual |
The documentation for this struct was generated from the following file: