|
xentara-workbench-plugin v1.0.1
The Xentara Workbench Plugin Framework
|
A group that can be expanded and collapsed by the user. More...
#include <xentara/workbench/bindings/CollapsibleGroup.hpp>
Inheritance diagram for xentara::workbench::bindings::CollapsibleGroup:Classes | |
| struct | Options |
| Options for the binding. More... | |
Public Member Functions | |
| CollapsibleGroup (Options options) | |
| Constructor for a group that doesn't bind to a property. | |
| template<std::convertible_to< ui::String > Property> | |
| CollapsibleGroup (PropertyController &propertyController, Property &property, Options options) | |
| Constructor that accesses the variable holding a property’s value directly. | |
| CollapsibleGroup (const PropertyHandle &property, Options options) | |
| Constructor that uses the state of a property to display an error in the header. | |
| template<typename Object , Getter< ui::String, Object > GetterType> | |
| CollapsibleGroup (const PropertyHandle &property, const Object &object, GetterType get, Options options) | |
| Constructor that uses a getter to access a property. | |
A group that can be expanded and collapsed by the user.
Collapsible groups can bind to a property that contains a summary text for the group’s content. The property can also provide a summary state, allowing you to display an additional error in the group header.
| xentara::workbench::bindings::CollapsibleGroup::CollapsibleGroup | ( | Options | options | ) |
Constructor for a group that doesn't bind to a property.
| options | The binding options |
| xentara::workbench::bindings::CollapsibleGroup::CollapsibleGroup | ( | PropertyController & | propertyController, |
| Property & | property, | ||
| Options | options | ||
| ) |
Constructor that accesses the variable holding a property’s value directly.
This constructor binds to a property, and displays the property’s value in the header as a summary state. In addition, the property’s state can be used to show an additional error in the header.
The property’s visibility is used to control the visibility of the summary text only. The visibility of the actual Group is controlled by the visibility of the group’s members.
| propertyController | The property controller that manages the property |
| property | A reference to the variable holding the property’s value. |
| options | The binding options |
| xentara::workbench::bindings::CollapsibleGroup::CollapsibleGroup | ( | const PropertyHandle & | property, |
| Options | options | ||
| ) |
Constructor that uses the state of a property to display an error in the header.
This constructor binds to the state of a property, and displays any errors in the group’s header. The value and visibility state of the property are ignored.
| property | A handle to the bound property. |
| options | The binding options |
| xentara::workbench::bindings::CollapsibleGroup::CollapsibleGroup | ( | const PropertyHandle & | property, |
| const Object & | object, | ||
| GetterType | get, | ||
| Options | options | ||
| ) |
Constructor that uses a getter to access a property.
This constructor binds to a property, and displays the property’s value in the header as a summary state. In addition, the property’s state can be used to show an additional error in the header.
The property’s visibility is used to control the visibility of the summary text only. The visibility of the actual Group is controlled by the visibility of the group’s members.
| property | A handle to the bound property |
| object | The object on which the getter should be called |
| get | The getter function |
| options | The binding options |