Documentation ¶
Overview ¶
Package canvas defines the canvas that the widgets draw on.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Canvas ¶
type Canvas struct {
// contains filtered or unexported fields
}
Canvas is where a widget draws its output for display on the terminal.
func (*Canvas) Apply ¶
func (c *Canvas) Apply(t terminalapi.Terminal) error
Apply applies the canvas to the corresponding area of the terminal. Guarantees to stay within limits of the area the canvas was created with.
func (*Canvas) SetCell ¶
SetCell sets the rune of the specified cell on the canvas. Returns the number of cells the rune occupies, wide runes can occupy multiple cells when printed on the terminal. See http://www.unicode.org/reports/tr11/. Use the options to specify which attributes to modify, if an attribute option isn't specified, the attribute retains its previous value.
Directories ¶
Path | Synopsis |
---|---|
Package testcanvas provides helpers for tests that use the canvas package.
|
Package testcanvas provides helpers for tests that use the canvas package. |
Click to show internal directories.
Click to hide internal directories.