windowmanager

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StackItem

type StackItem struct {
	ID   string
	Win  windows.Window
	XYWH [4]int
}

type WM

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

func New

func New(c *ctx.Ctx) *WM

func (*WM) Close

func (wm *WM) Close(id string, args ...cmd.Arg) (bool, []tea.Cmd)

func (*WM) CloseFocused

func (wm *WM) CloseFocused() (bool, []tea.Cmd)

func (*WM) Focus

func (wm *WM) Focus(id string) []tea.Cmd

func (*WM) Focused

func (wm *WM) Focused() string

func (*WM) GetNumberOpen

func (wm *WM) GetNumberOpen() int

func (*WM) IsFocused

func (wm *WM) IsFocused(id string) bool

func (*WM) IsOpen

func (wm *WM) IsOpen(id string) bool

func (*WM) Open

func (wm *WM) Open(id string, win windows.Window, xywh [4]int, command *cmd.Command) []tea.Cmd

func (*WM) Resize

func (wm *WM) Resize(id string, w int, h int) []tea.Cmd

func (*WM) ResizeAll

func (wm *WM) ResizeAll(w int, h int) []tea.Cmd

func (*WM) Update

func (wm *WM) Update(id string, msg tea.Msg) tea.Cmd

func (*WM) UpdateAll

func (wm *WM) UpdateAll(msg tea.Msg) []tea.Cmd

func (*WM) UpdateFocused

func (wm *WM) UpdateFocused(msg tea.Msg) []tea.Cmd

func (*WM) View

func (wm *WM) View(view string, onlyFocused bool) string

Jump to

Keyboard shortcuts

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