gioui.orggioui.org/io/semantic Index | Files

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.

const (
	Unknown ClassOp = iota
	Button
	CheckBox
	Editor
	RadioButton
	Switch
)

func (ClassOp) Add

func (c ClassOp) Add(o *op.Ops)

func (ClassOp) String

func (c ClassOp) String() 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

func (e EnabledOp) Add(o *op.Ops)

type LabelOp

type LabelOp string

LabelOp provides the content of a textual component.

func (LabelOp) Add

func (l LabelOp) 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)

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.