window

package
v0.0.0-...-8de7bd1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2018 License: MIT Imports: 18 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