Documentation
¶
Index ¶
- func DrawBox(position BufferPosition, size BufferSize, screen tcell.Screen, title BoxTitle)
- func DrawBoxWithStyle(position BufferPosition, size BufferSize, screen tcell.Screen, title BoxTitle, ...)
- func DrawParagraphInContainer(screen tcell.Screen, containerX *int, y *int, maxWidth int, text string, ...)
- func DrawText(screen tcell.Screen, s string, x *int, y *int, style tcell.Style)
- type BoxTitle
- type Buffer
- type BufferPosition
- type BufferSize
- type TextAlignment
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawBox ¶
func DrawBox(position BufferPosition, size BufferSize, screen tcell.Screen, title BoxTitle)
func DrawBoxWithStyle ¶
func DrawBoxWithStyle(position BufferPosition, size BufferSize, screen tcell.Screen, title BoxTitle, style tcell.Style)
Types ¶
type BoxTitle ¶
type BoxTitle struct { Title string Alignment TextAlignment }
type BufferPosition ¶
type BufferSize ¶
type TextAlignment ¶
type TextAlignment string
const ( TextAlignmentCenter TextAlignment = "center" TextAlignmentRight TextAlignment = "right" TextAlignmentLeft TextAlignment = "left" )
type Window ¶
type Window struct { Screen tcell.Screen // contains filtered or unexported fields }
func (Window) GetBufferByID ¶
func (Window) HandleEvents ¶
Handles tcell screen HandleEvents
Returns:
- bool: terminate signal received
func (*Window) Init ¶
Initialize the window
Parameters:
- mainBuffer: The first buffer that window will draw
Returns:
- error: nil in case of success
func (*Window) ReplaceBuffer ¶
Click to show internal directories.
Click to hide internal directories.