Documentation
¶
Overview ¶
Package console is a simple Fyne widget for scrolling log messages. The intended use for this is
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Console ¶
type Console struct { widget.BaseWidget // MaxLines is the maximum number of messages to keep. Once we hit this // number of messages, older messages are removed. MaxLines int // ScrollToBottom will scroll the window to the latest message (bottom) when // a new message is appended. The default number of lines is 1000. ScrollToBottom bool // BackgroundColor is the default background color of messages. BackgroundColor color.Color // contains filtered or unexported fields }
Console widget
func NewConsole ¶
func NewConsole() *Console
NewConsole creates a new console widget with default MaxLines and the default message background color.
func (*Console) AppendWithColor ¶
AppendWithColor appends a message and applies specified color to the message background.
func (*Console) CreateRenderer ¶
func (c *Console) CreateRenderer() fyne.WidgetRenderer
CreateRenderer returns a new renderer. Uses SimpleRenderer for now since we don't do anything fancy.
Click to show internal directories.
Click to hide internal directories.