Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) Characters ¶
Characters turns a string into a slice of measured graphemes
type CursorState ¶
type CursorState struct { Row uint16 Col uint16 Shape vaxis.CursorStyle }
type DrawContext ¶
type DrawContext struct { // The minimum size the widget must render as Min Size // The maximum size the widget must render as. A value of math.MaxUint16 // in either dimension means that dimension has no limit Max Size // Function to turn a string into a slice of characters. This splits the // string into graphemes and measures each grapheme Characters func(string) []vaxis.Character }
type EventPhase ¶
type EventPhase uint8
EventPhase is the phase of the event during the event handling process. Possible values are
CapturePhase TargetPhase BubblePhase
const ( CapturePhase EventPhase = iota TargetPhase BubblePhase )
type RelativePoint ¶
type SubSurface ¶
type SubSurface struct { Origin RelativePoint Surface Surface ZIndex int }
func NewSubSurface ¶
func NewSubSurface(col int, row int, s Surface) SubSurface
type Surface ¶
type Surface struct { Size Size Widget Widget Cursor *CursorState Buffer []vaxis.Cell Children []SubSurface }
func NewSurface ¶
Creates a new surface. The resulting surface will have a Buffer with capacity large enough for Size
type Widget ¶
type Widget interface { HandleEvent(vaxis.Event, EventPhase) (Command, error) Draw(DrawContext) (Surface, error) }
Click to show internal directories.
Click to hide internal directories.