semantic

package
v0.0.0-...-a9b3df6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2023 License: MIT, Unlicense Imports: 2 Imported by: 0

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
)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL