semantic

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT, MIT, Unlicense Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
)

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