ui

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coll

type Coll struct{ Rows, Cols int }

type Hit added in v0.6.0

type Hit struct {
	Point  int
	X, Y   int
	By     *Node
	Layers []HitLayer
}

type HitLayer added in v0.6.0

type HitLayer struct {
	Node *Node
	Kind string
}

type Node

type Node struct {
	Text  string
	Desc  string
	ID    string
	Hint  string
	Value string
	Error string
	State string
	Class string

	Bounds        Rect
	PreciseBounds *[4]float64

	Clickable, LongClickable, Enabled, Focused, Checked, Checkable, Selected bool
	Scrollable, Password, Editable, Visible, ShowingHint                     bool

	MoreAfter, MoreBefore bool
	Coll, Item            *Coll

	DrawOrder      int
	DrawOrderKnown bool

	Covers []Hit

	Modal, UnderModal bool

	Window   int
	Depth    int
	Index    int
	Parent   *Node
	Children []*Node

	Ref int
}

func (*Node) ClipRect

func (n *Node) ClipRect(screen Rect) Rect

func (*Node) IsDescendantOf

func (n *Node) IsDescendantOf(anc *Node) bool

func (*Node) Label

func (n *Node) Label() string

func (*Node) ShortClass

func (n *Node) ShortClass() string

func (*Node) Walk

func (n *Node) Walk(fn func(*Node) bool)

type Rect

type Rect struct{ L, T, R, B int }

func (Rect) Area

func (r Rect) Area() int

func (Rect) CX

func (r Rect) CX() int

func (Rect) CY

func (r Rect) CY() int

func (Rect) Contains

func (r Rect) Contains(x, y int) bool

func (Rect) Empty

func (r Rect) Empty() bool

func (Rect) H

func (r Rect) H() int

func (Rect) Intersect

func (r Rect) Intersect(o Rect) Rect

func (Rect) Overlaps

func (r Rect) Overlaps(o Rect) bool

func (Rect) String

func (r Rect) String() string

func (Rect) W

func (r Rect) W() int

type Screen

type Screen struct {
	Platform string
	Width    int
	Height   int
	Seq      int64
	Read     int64
	Keyboard bool
	Unread   int
	Windows  []*Window
	Nodes    []*Node
}

func (*Screen) Foreground

func (s *Screen) Foreground() string
func (s *Screen) Link()

func (*Screen) Signature

func (s *Screen) Signature() uint64

type Window

type Window struct {
	ID      int
	Type    string
	Package string
	Title   string
	Active  bool
	Focused bool
	Bounds  Rect
	Nodes   []*Node
	Roots   []*Node
}

Jump to

Keyboard shortcuts

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