Documentation ¶
Index ¶
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 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 Terminal ¶
type Terminal struct { *mux.UpdatePublisher // contains filtered or unexported fields }
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.