window

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const OpName = "window-manager"

Variables

This section is empty.

Functions

This section is empty.

Types

type Close

type Close struct{}

func NewClose

func NewClose() *Close

func (*Close) DefaultEvent

func (w *Close) DefaultEvent() string

func (*Close) Menu

func (w *Close) Menu(context.Context) string

func (*Close) Name

func (w *Close) Name(context.Context) string

func (*Close) Op

func (w *Close) Op(ctx context.Context, b input.Binder) (input.Operation, error)

func (*Close) Type

func (w *Close) Type(input.Command)

type Open

type Open struct{}

func NewOpen

func NewOpen() *Open

func (*Open) DefaultEvent

func (w *Open) DefaultEvent() string

func (*Open) Menu

func (w *Open) Menu(context.Context) string

func (*Open) Name

func (w *Open) Name(context.Context) string

func (*Open) Op

func (w *Open) Op(ctx context.Context, b input.Binder) (input.Operation, error)

func (*Open) Type

func (w *Open) Type(input.Command)

type Quit

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

func NewQuit

func NewQuit(c ui.Creator) *Quit

func (*Quit) DefaultEvent

func (w *Quit) DefaultEvent() string

func (*Quit) Menu

func (w *Quit) Menu(context.Context) string

func (*Quit) Name

func (w *Quit) Name(context.Context) string

func (*Quit) Op

func (w *Quit) Op(ctx context.Context, b input.Binder) (input.Operation, error)

func (*Quit) Type

func (w *Quit) Type(input.Command)

type WindowManager

type WindowManager interface {
	OpenWindow() input.Operation
	CloseWindow() input.Operation
}

Jump to

Keyboard shortcuts

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