BarProps¶
Used as entrypoint for
monitor:attach
Example
The mounted API is documented here:
Bar
Attributes:
- children
- class
- halign
- height
- height_request
- hexpand
- homogeneous
- id
- offset
- valign
- vexpand
- widgets
- width
- width_request
attr
children¶
children: table<number, WrapBatteryProps|WrapBoxProps|WrapClockProps|WrapCpuProps|WrapIconProps...(+4)>?
Type: table
An arrray of children and properties. See ComponentProps
attr
class¶
Type: (string|table<number, string>?
Optional css class names. Either space-delimited classes, or an array of class names. Built-in hitokage components will always contain their type as a class name.
attr
halign¶
Type: ('Baseline'|'Center'|'End'|'Fill'|'Start'...(+1))?
Sets the horizontal alignment of widget
. Defaults to 'Fill'
attr
height¶
attr
height_request¶
Override for height request of the widget.
If this is -1
, the natural request will be used.
attr
hexpand¶
attr
homogeneous¶
attr
id¶
A unique identifier.
This is not enforced or checked by hitokage, it is simply used in utility methods such
as
Bar:get_child_by_id
or Box:get_child_by_id
.
attr
offset¶
attr
valign¶
Type: ('Baseline'|'Center'|'End'|'Fill'|'Start'...(+1))?
Sets the vertical alignment of widget
. Defaults to 'Fill'
.
attr
vexpand¶
attr
widgets¶
widgets: table<number, WrapBatteryProps|WrapBoxProps|WrapClockProps|WrapCpuProps|WrapIconProps...(+4)>?
Type: table
Danger
Use children
instead
attr
width¶
attr
width_request¶
Override for width request of the widget.
If this is -1
, the natural request will be used.