Superclass for toolbar widgets
PtWidget → PtBasic → PtContainer → PtToolbar
Immediate subclasses:
For more information, see the diagram of the widget hierarchy.
<photon/PtToolbar.h>
A PtToolbar is a container that organizes its children as a horizontal (by default) or vertical toolbar.
The children of a PtToolbar can be any type of widget. They're center-aligned within the toolbar, and can optionally be separated from each other with etched lines:
Resource | C type | Pt type | Default |
---|---|---|---|
Pt_ARG_ORIENTATION | char | Boolean | Pt_HORIZONTAL |
Pt_ARG_TOOLBAR_FLAGS | uint16_t | Flag | Pt_TOOLBAR_DRAGGABLE | Pt_TOOLBAR_END_SEPARATOR | Pt_TOOLBAR_FOLLOW_FOCUS |
Pt_ARG_TOOLBAR_LAYOUT_FLAGS | uint8_t | Flag | 0 |
Pt_ARG_TOOLBAR_SPACING | uint8_t | Scalar | 2 |
C type | Pt type | Default |
---|---|---|
char | Boolean | Pt_HORIZONTAL |
Indicates whether the toolbar is to be drawn vertically or horizontally. Possible values:
C type | Pt type | Default |
---|---|---|
uint16_t | Flag | Pt_TOOLBAR_DRAGGABLE | Pt_TOOLBAR_END_SEPARATOR | Pt_TOOLBAR_FOLLOW_FOCUS |
Flags that control the behavior of the widget. Any combination of:
C type | Pt type | Default |
---|---|---|
uint8_t | Flag | 0 |
Flags that PtToolbarGroup uses to record the toolbar's layout:
C type | Pt type | Default |
---|---|---|
uint8_t | Scalar | 2 |
The spacing, in pixels, between items in the toolbar.
If the widget modifies an inherited resource, the “Default override” column indicates the new value. This modification affects any subclasses of the widget.