input

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT, Unlicense Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	ImplementsCommand()
}

type EditorState

type EditorState struct {
	Selection struct {
		Transform f32.Affine2D
		key.Range
		key.Caret
	}
	Snippet key.Snippet
}

type Router

type Router struct {
	// contains filtered or unexported fields
}

func (*Router) ActionAt

func (q *Router) ActionAt(p f32.Point) (system.Action, bool)

func (*Router) AppendSemantics

func (q *Router) AppendSemantics(nodes []SemanticNode) []SemanticNode

func (*Router) ClickFocus

func (q *Router) ClickFocus()

func (*Router) ClipboardRequested

func (q *Router) ClipboardRequested() bool

func (*Router) Cursor

func (q *Router) Cursor() pointer.Cursor

func (*Router) EditorState

func (q *Router) EditorState() EditorState

func (*Router) Event

func (q *Router) Event(filters ...event.Filter) (event.Event, bool)

func (*Router) Frame

func (q *Router) Frame(frame *op.Ops)

func (*Router) MoveFocus

func (q *Router) MoveFocus(dir key.FocusDirection)

func (*Router) Queue

func (q *Router) Queue(events ...event.Event)

func (*Router) RevealFocus

func (q *Router) RevealFocus(viewport image.Rectangle)

func (*Router) ScrollFocus

func (q *Router) ScrollFocus(dist image.Point)

func (*Router) SemanticAt

func (q *Router) SemanticAt(pos f32.Point) (SemanticID, bool)

func (*Router) Source

func (q *Router) Source() Source

func (*Router) TextInputHint

func (q *Router) TextInputHint() (key.InputHint, bool)

func (*Router) TextInputState

func (q *Router) TextInputState() TextInputState

func (*Router) WakeupTime

func (q *Router) WakeupTime() (time.Time, bool)

func (*Router) WriteClipboard

func (q *Router) WriteClipboard() (mime string, content []byte, ok bool)

type SemanticDesc

type SemanticDesc struct {
	Class       semantic.ClassOp
	Description string
	Label       string
	Selected    bool
	Disabled    bool
	Gestures    SemanticGestures
	Bounds      image.Rectangle
}

type SemanticGestures

type SemanticGestures int
const (
	ClickGesture SemanticGestures = 1 << iota
	ScrollGesture
)

func (SemanticGestures) String

func (s SemanticGestures) String() string

type SemanticID

type SemanticID uint

type SemanticNode

type SemanticNode struct {
	ID       SemanticID
	ParentID SemanticID
	Children []SemanticNode
	Desc     SemanticDesc
	// contains filtered or unexported fields
}

type Source

type Source struct {
	// contains filtered or unexported fields
}

func (Source) Disabled

func (s Source) Disabled() Source

func (Source) Enabled

func (s Source) Enabled() bool

func (Source) Event

func (s Source) Event(filters ...event.Filter) (event.Event, bool)

func (Source) Execute

func (s Source) Execute(c Command)

func (Source) Focused

func (s Source) Focused(tag event.Tag) bool

type SystemEvent

type SystemEvent struct {
	Event event.Event
}

func (SystemEvent) ImplementsEvent

func (SystemEvent) ImplementsEvent()

type TextInputState

type TextInputState uint8
const (
	TextInputKeep TextInputState = iota
	TextInputClose
	TextInputOpen
)

func (TextInputState) String

func (t TextInputState) String() string

Jump to

Keyboard shortcuts

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