mouse

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deps

type Deps struct {
	ExecuteAction              func(*model.Model, config.Action) tea.Cmd
	SwitchTab                  func(*model.Model, config.Action) tea.Cmd
	StartSearch                func(*model.Model, ...tea.Cmd) tea.Cmd
	CloseOverlay               func(*model.Model) tea.Cmd
	SubmitAdd                  func(*model.Model) tea.Cmd
	CloseThemePickerWithRevert func(*model.Model) tea.Cmd
	PreviewTheme               func(*model.Model)
	CycleAppearance            func(*model.Model) tea.Cmd
	ExecuteContextMenuAction   func(*model.Model) tea.Cmd
	ReloadDetails              func(*model.Model) tea.Cmd
}

type Event added in v0.18.0

type Event struct {
	tea.Mouse
	Action action
}

Event normalizes Bubble Tea v2's typed mouse messages for the layout hit testing shared by tabs, overlays, and the results viewport.

type Handler

type Handler struct{ Deps }

func New

func New(d Deps) *Handler

func (*Handler) Handle

func (h *Handler) Handle(m *model.Model, msg tea.MouseMsg) tea.Cmd

Handle is the main entry point for mouse events.

type Region

type Region struct{ X, Y, W, H int }

func (Region) Contains

func (r Region) Contains(msg Event) bool

func (Region) ContainsY

func (r Region) ContainsY(y int) bool

Jump to

Keyboard shortcuts

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