Interface for components that fill the left and right sides of a split-pane shell.
More...
Interface for components that fill the left and right sides of a split-pane shell.
Inherit SplitPaneWidget alongside Hookable to participate in any shell that manages a split layout. The shell decides how to present and activate the widget (toolbar button, sidebar list, tab, etc.) — this interface only describes how to populate the panels.
Usage
virtual std::string getToolbarLabel() = 0;
};
onHook(Hook::GRAPHIC, [this](GraphicWidget& w) {
_toolbar.addButton(w.getToolbarLabel(), [this, &w]() {
_left->clear(); _right->clear();
w.fillLeft(*_left); w.fillRight(*_right);
});
});
Trait that layers a hook system on top of ml::Messenger.
- See also
- Panel, OverlayWidget, ToolbarWidget
Definition at line 42 of file SplitPaneWidget.h.