Documentation ¶
Index ¶
- type Layer
- type Layers
- func (l *Layers) NewLayer(ctx context.Context, screen Screen, isInteractive bool, isOpaque bool) *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 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 ¶
This section is empty.
Types ¶
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.