tui

package
v0.0.0-...-60717b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChanLabel

type ChanLabel struct {
	WidgetBase
	// contains filtered or unexported fields
}

ChanLabel is a widget to display read-only text.

func NewChanLabel

func NewChanLabel(text string) *ChanLabel

NewChanLabel returns a new ChanLabel.

func (*ChanLabel) Draw

func (l *ChanLabel) Draw(p *Painter)

Draw draws the label.

func (*ChanLabel) MinSizeHint

func (l *ChanLabel) MinSizeHint() image.Point

MinSizeHint returns the minimum size the widget is allowed to be.

func (*ChanLabel) Resize

func (l *ChanLabel) Resize(size image.Point)

Resize changes the size of the Widget.

func (*ChanLabel) SetSpoilers

func (l *ChanLabel) SetSpoilers(status *bool)

func (*ChanLabel) SetStyleName

func (l *ChanLabel) SetStyleName(style string)

SetStyleName sets the identifier used for custom styling.

func (*ChanLabel) SetText

func (l *ChanLabel) SetText(text string)

SetText sets the text content of the label.

func (*ChanLabel) SetWordWrap

func (l *ChanLabel) SetWordWrap(enabled bool)

SetWordWrap sets whether text content should be wrapped.

func (*ChanLabel) SizeHint

func (l *ChanLabel) SizeHint() image.Point

SizeHint returns the recommended size for the label.

func (*ChanLabel) Text

func (l *ChanLabel) Text() string

Text returns the text content of the label.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL