package semantic
import "gioui.org/io/semantic"
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 ¶
Types ¶
type ClassOp ¶
type ClassOp int
ClassOp provides the component class.
func (ClassOp) Add ¶
func (ClassOp) String ¶
type DescriptionOp ¶
type DescriptionOp string
DescriptionOp describes a component.
func (DescriptionOp) Add ¶
func (d DescriptionOp) Add(o *op.Ops)
type EnabledOp ¶
type EnabledOp bool
EnabledOp describes the enabled state.
func (EnabledOp) Add ¶
type LabelOp ¶
type LabelOp string
LabelOp provides the content of a textual component.
func (LabelOp) Add ¶
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)
Source Files ¶
semantic.go
- Version
- v0.8.0 (latest)
- Published
- Jan 14, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 12 hours ago –
Tools for package owners.