Documentation ¶
Index ¶
- func WithInteractive(layer *Layer)
- func WithOpaque(layer *Layer)
- type Layer
- type LayerOption
- type Layers
- func (l *Layers) NewLayer(ctx context.Context, screen Screen, pos Position, options ...LayerOption) *Layer
- func (l *Layers) NumLayers() int
- func (l *Layers) Resize(size Size) error
- func (l *Layers) State() *tty.State
- func (l *Layers) Updates() *Updater
- func (l *Layers) Write(data []byte) (n int, err error)
- type Margins
- type Position
- type RenderContext
- type RenderLayer
- type Renderable
- type Screen
- type Size
- type Stream
- type Tea
- 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 // 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 // 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 RenderContext ¶
RenderContext contains information about the rendering environment, such as the supported color mode and terminfo database.
type RenderLayer ¶
type RenderLayer struct {
// contains filtered or unexported fields
}
type Trigger ¶
type Trigger struct { deadlock.RWMutex // contains filtered or unexported fields }
func NewTrigger ¶
func NewTrigger(r Renderable) *Trigger
Click to show internal directories.
Click to hide internal directories.