-
Notifications
You must be signed in to change notification settings - Fork 0
Separator
Wire name separator
A rule drawn between things, optionally with a title in it.
new panel layout=vbox children={
new label caption="Above"
new separator
new label caption="Below"
}
| Property | Type | Default | Meaning |
|---|---|---|---|
caption |
string | — | Optional separator title |
orientation |
horizontal | vertical
|
— | Line orientation |
Plus the common properties.
separator emits no events.
A separator is horizontal unless you say otherwise. It does not infer its
direction from the box it sits in — dropped into an hbox it is still a
horizontal rule, laid across the row rather than dividing it.
new panel layout=hbox children={
new label caption="Left"
new separator orientation=vertical
new label caption="Right"
}
caption puts a title in the rule, which reads as a section heading in a
vbox.
A separator takes no focus and no input.
A separator inside a menu is a different thing — a menuitem with the
separator flag, not this trinket. See MenuBar.
KittyTK — image/tty Trinket Kit · MIT licensed · alpha, 0.1.x
Repository · Issues · Support on ko-fi
Sibling projects: PurfecTerm (terminal emulator) · mew (text editor) · PawScript (language)
Getting Started
Installation Building from Source Running a Display Host Your First Application Examples
Protocol
Protocol Overview Object Model Properties and Values Events Templates and Aliases Common Properties Introspection Transports and Security
Clients
Go Client Python Client C Client
Application Objects
Application · MenuBar · Window · MessageBox
Output Trinkets
Label · ProgressBar · StatusBar
Input Trinkets
TextInput · Editor · Terminal
Button · CheckBox · RadioButton
ListView · ComboBox · TreeView
Layout Trinkets
TabTrinket · Panel
ScrollArea · MDIPane
Separator · Spacer · Splitter
Other Trinkets
Layout Helpers