hover

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 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

Overview

Package hover follows the pointer over views for the backends whose views hear no hovers of their own, Windows' and Linux's. As a tracking area or pointerenter does, a view stays hovered while the pointer is over it or any view inside it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Follows

func Follows(m driver.EventMask) bool

Follows reports whether a view reporting events m follows hovers: any of the three mouse events makes it take part.

func Pressed

func Pressed(state uint32, bits [5]uint32) driver.MouseButton

Pressed is the button a platform's button bits hold down: the first that is, the bits naming left, right, middle, back and forward.

Types

type Tracker

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

Tracker holds the views the pointer is over that follow hovers.

func (*Tracker) Forget

func (t *Tracker) Forget(id driver.NodeID)

Forget drops id, whose view went away, without reporting it.

func (*Tracker) Move

func (t *Tracker) Move(under []driver.NodeID) []driver.Event

Move sets the views under the pointer that follow hovers, outermost first, and returns the events that report the change: leaving views innermost first, then entering ones outermost first.

Jump to

Keyboard shortcuts

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