Documentation ¶
Index ¶
- func AddMargins(ctx context.Context, screen Screen) mux.Screen
- func WithInteractive(layer *Layer)
- func WithOpaque(layer *Layer)
- type Layer
- type LayerOption
- type Layers
- type Margins
- type Position
- type RenderLayer
- type Renderable
- type Screen
- type Size
- type Split
- type Stream
- type Terminal
- type Trigger
- type Updater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithInteractive ¶ added in v0.1.5
func WithInteractive(layer *Layer)
func WithOpaque ¶ added in v0.1.5
func WithOpaque(layer *Layer)
Types ¶
type LayerOption ¶ added in v0.1.5
type LayerOption func(*Layer)
type Layers ¶
type Layers struct { deadlock.RWMutex *mux.UpdatePublisher // contains filtered or unexported fields }
Layers allows you to stack several Screens on top of one another. The topmost layer with isInteractive set to true receives all key presses.
type Margins ¶
type Margins struct { deadlock.RWMutex *mux.UpdatePublisher // contains filtered or unexported fields }
Margins puts empty space around a Screen and centers it. In size mode, Margins attempts to keep the Screen at a fixed size (one or both dimensions fixed). In margin mode, the Screen is surrounded by fixed-size margins that do not change with the screen size.
type RenderLayer ¶
type RenderLayer struct {
// contains filtered or unexported fields
}
type Split ¶ added in v0.1.11
type Split struct { deadlock.RWMutex *mux.UpdatePublisher // contains filtered or unexported fields }
Split renders two screens side by side (or one above the other) at a fixed proportion of its full width or height (respectively.)
func (*Split) SetPercent ¶ added in v0.1.11
type Terminal ¶
type Terminal struct { *mux.UpdatePublisher // contains filtered or unexported fields }
func NewTerminal ¶
type Trigger ¶
type Trigger struct { deadlock.RWMutex *mux.UpdatePublisher // contains filtered or unexported fields }
func NewTrigger ¶
func NewTrigger(r Renderable) *Trigger
Click to show internal directories.
Click to hide internal directories.