Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Button ¶
Button is a clickable button.
type Container ¶
type Container struct {
tomo.ContainerBox
}
Container is an object that can contain other objects. It can be used as a primitive for building more complex layouts. It has two variants: an outer container, and an inner container. The outer container has padding around its edges, whereas the inner container does not. The container will have a corresponding object role variation of either "outer" or "inner".
func NewInnerContainer ¶
NewInnerContainer creates a new container that has no padding around it.
type Heading ¶
Heading is a label that denotes the start of some section of content. It can have a level from 0 to 2, with 0 being the most prominent and 2 being the most subtle. The level is described in the role variation.
type Label ¶
Label is a simple text label.
func NewHeading ¶
NewHeading creates a new section heading. The level can be from 0 to 2.
type Slider ¶
type Slider struct { tomo.ContainerBox // contains filtered or unexported fields }
func NewHorizontalSlider ¶
func NewVerticalSlider ¶
func (*Slider) OnValueChange ¶
type SliderHandle ¶
type TextInput ¶
TextInput is a single-line editable text box.
func NewTextInput ¶
NewTextInput creates a new text input containing the specified text.
func (*TextInput) OnEnter ¶
OnEnter specifies a function to be called when the user presses enter within the text input.