Documentation
¶
Overview ¶
Package semantic provides operations for semantic descriptions of a user interface, to facilitate presentation and interaction in external software such as screen readers.
Semantic descriptions are organized in a tree, with clip operations as nodes. Operations in this package are associated with the current semantic node, that is the most recent pushed clip operation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassOp ¶
type ClassOp int
ClassOp provides the component class.
const ( Unknown ClassOp = iota Button CheckBox Editor RadioButton Switch Image // giokit: WAI-ARIA roles beyond upstream's classes. Link // navigates somewhere Slider // picks a value in a range ComboBox // a field that opens a list of choices ListBox // a list of choices Option // a choice in a ListBox List // a list of items ListItem // an item in a List Tree // a hierarchical list TreeItem // an item in a Tree Grid // a table of interactive cells Row // a row in a Grid GridCell // a cell in a Row TabList // a set of tabs Tab // a tab in a TabList Menu // a list of commands MenuItem // a command in a Menu Dialog // a window over the page Toolbar // a set of controls Status // a live message (a toast) Tooltip // a description shown on hover or focus Group // a named set of components Separator // divides content )
type DescriptionOp ¶
type DescriptionOp string
DescriptionOp describes a component.
func (DescriptionOp) Add ¶
func (d DescriptionOp) Add(o *op.Ops)
type SelectedOp ¶
type SelectedOp bool
SelectedOp describes the selected state for components that have boolean state.
func (SelectedOp) Add ¶
func (s SelectedOp) Add(o *op.Ops)