pointer

package
v1.0.11 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: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buttons

type Buttons uint8
const (
	ButtonPrimary Buttons = 1 << iota

	ButtonSecondary

	ButtonTertiary

	ButtonQuaternary

	ButtonQuinary
)

func (Buttons) Contain

func (b Buttons) Contain(buttons Buttons) bool

func (Buttons) String

func (b Buttons) String() string

type Cursor

type Cursor byte
const (
	CursorDefault Cursor = iota

	CursorNone

	CursorText

	CursorVerticalText

	CursorPointer

	CursorCrosshair

	CursorAllScroll

	CursorColResize

	CursorRowResize

	CursorGrab

	CursorGrabbing

	CursorNotAllowed

	CursorWait

	CursorProgress

	CursorNorthWestResize

	CursorNorthEastResize

	CursorSouthWestResize

	CursorSouthEastResize

	CursorNorthSouthResize

	CursorEastWestResize

	CursorWestResize

	CursorEastResize

	CursorNorthResize

	CursorSouthResize

	CursorNorthEastSouthWestResize

	CursorNorthWestSouthEastResize
)

func (Cursor) Add

func (op Cursor) Add(o *op.Ops)

func (Cursor) String

func (c Cursor) String() string

type Event

type Event struct {
	Kind   Kind
	Source Source

	PointerID ID

	Priority Priority

	Time time.Duration

	Buttons Buttons

	Position f32.Point

	Scroll f32.Point

	Modifiers key.Modifiers
}

func (Event) ImplementsEvent

func (Event) ImplementsEvent()

type Filter

type Filter struct {
	Target event.Tag

	Kinds Kind

	ScrollX ScrollRange
	ScrollY ScrollRange
}

func (Filter) ImplementsFilter

func (Filter) ImplementsFilter()

type GrabCmd

type GrabCmd struct {
	Tag event.Tag
	ID  ID
}

func (GrabCmd) ImplementsCommand

func (GrabCmd) ImplementsCommand()

type ID

type ID uint16

type Kind

type Kind uint
const (
	Cancel Kind = 1 << iota

	Press

	Release

	Move

	Drag

	Enter

	Leave

	Scroll
)

func (Kind) String

func (t Kind) String() string

type PassOp

type PassOp struct{}

func (PassOp) Push

func (p PassOp) Push(o *op.Ops) PassStack

type PassStack

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

func (PassStack) Pop

func (p PassStack) Pop()

type Priority

type Priority uint8
const (
	Shared Priority = iota

	Grabbed
)

func (Priority) String

func (p Priority) String() string

type ScrollRange

type ScrollRange struct {
	Min, Max int
}

func (ScrollRange) Union

func (s ScrollRange) Union(s2 ScrollRange) ScrollRange

type Source

type Source uint8
const (
	Mouse Source = iota

	Touch
)

func (Source) String

func (s Source) String() string

Jump to

Keyboard shortcuts

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