package
Version:
v0.0.0-...-1e2fe69
Opens a new window with list of versions in this module.
Published: Nov 18, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func HLine(screen tcell.Screen, x, y, width int, style tcell.Style)
-
func Rect(screen tcell.Screen, x, y, width, height int, style tcell.Style)
-
func Text(screen tcell.Screen, x, y int, style tcell.Style, text string)
-
func TextCentered(screen tcell.Screen, x, y, width int, style tcell.Style, text string)
-
func TextRight(screen tcell.Screen, x, y, width int, style tcell.Style, text string)
-
func VLine(screen tcell.Screen, x, y, height int, style tcell.Style)
-
type Box
func HLine(screen tcell.Screen, x, y, width int, style tcell.Style)
HLine draws a horizontal line
func Rect(screen tcell.Screen, x, y, width, height int, style tcell.Style)
Rect draws a rectangle with the specified dimensions
func Text(screen tcell.Screen, x, y int, style tcell.Style, text string)
Text draws text at the specified position
func TextCentered(screen tcell.Screen, x, y, width int, style tcell.Style, text string)
TextCentered draws text centered at the specified position
func TextRight(screen tcell.Screen, x, y, width int, style tcell.Style, text string)
TextRight draws text aligned to the right at the specified position
func VLine(screen tcell.Screen, x, y, height int, style tcell.Style)
VLine draws a vertical line
Box represents a box widget with borders
NewBox creates a new box widget
Draw draws the box on the screen
func (b *Box) InnerHeight() int
InnerHeight returns the inner height
func (b *Box) InnerWidth() int
InnerWidth returns the inner width
InnerX returns the inner X coordinate
InnerY returns the inner Y coordinate
SetRound sets whether to use rounded corners
SetStyle sets the box style
SetTitle sets the box title
Source Files
¶
Click to show internal directories.
Click to hide internal directories.