|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
A titled frame around one child; a collapsible one is an accordion section. More...
#include <view.hpp>
Public Attributes | |
| Prop< std::string > | title |
| The title. | |
| Node | header |
| Shown beside the title, collapsed or not; may be null. | |
| int | padding = 0 |
| Space between frame and child: a spacing step, 0 to kMaxSpacingStep. | |
| Node | child |
| The content; may be null. | |
| bool | collapsible = false |
| Whether the user can collapse it; set once. | |
| Prop< bool > | collapsed = false |
| Whether it is collapsed; used only when collapsible. | |
| std::function< void(bool)> | onToggle |
| Called with the collapsed state the user asked for; used only when collapsible. | |
| Common | common {} |
| Visibility, enablement, layout, drag-and-drop. | |
A titled frame around one child; a collapsible one is an accordion section.
| Node morph::ui::Panel::header |
| int morph::ui::Panel::padding = 0 |
Space between frame and child: a spacing step, 0 to kMaxSpacingStep.
| bool morph::ui::Panel::collapsible = false |
| Prop<bool> morph::ui::Panel::collapsed = false |
Whether it is collapsed; used only when collapsible.
| std::function<void(bool)> morph::ui::Panel::onToggle |
Called with the collapsed state the user asked for; used only when collapsible.
| Common morph::ui::Panel::common {} |