mouse

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: AGPL-3.0 Imports: 8 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)
	ExecuteContextMenuAction   func(*model.Model) tea.Cmd
}

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 tea.MouseMsg) 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