window

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager manages the windows and files.

func NewManager

func NewManager() *Manager

NewManager creates a new Manager.

func (*Manager) Close

func (m *Manager) Close()

Close the Manager.

func (*Manager) Emit

func (m *Manager) Emit(e event.Event)

Emit an event to the current window.

func (*Manager) Init

func (m *Manager) Init(eventCh chan<- event.Event, redrawCh chan<- struct{})

Init initializes the Manager.

func (*Manager) Open

func (m *Manager) Open(filename string) error

Open a new window.

func (*Manager) Resize

func (m *Manager) Resize(width, height int)

Resize sets the size of the screen.

func (*Manager) SetSize

func (m *Manager) SetSize(width, height int)

SetSize sets the size of the screen.

func (*Manager) State

func (m *Manager) State() (map[int]*state.WindowState, layout.Layout, int, error)

State returns the state of the windows.

Jump to

Keyboard shortcuts

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