textbuf

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: BSD-3-Clause Imports: 3 Imported by: 4

Documentation

Index

Constants

View Source
const (
	FontSize6x8   = font.FONT_6x8
	FontSize7x10  = font.FONT_7x10
	FontSize11x18 = font.FONT_11x18
	FontSize16x26 = font.FONT_16x26
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	// contains filtered or unexported fields
}

func New

func New(dev drivers.Displayer, size FontSize) (*Buffer, error)

func (*Buffer) Clear

func (b *Buffer) Clear() error

func (*Buffer) Display

func (b *Buffer) Display() error

func (*Buffer) Print

func (b *Buffer) Print(text string) error

func (*Buffer) PrintInverse

func (b *Buffer) PrintInverse(text string) error

func (*Buffer) Println

func (b *Buffer) Println(text string) error

func (*Buffer) PrintlnInverse

func (b *Buffer) PrintlnInverse(text string) error

func (*Buffer) Scroll

func (b *Buffer) Scroll() error

Scroll moves each line of the display up by one and blanks the last line.

func (*Buffer) SetLine

func (b *Buffer) SetLine(line int16, text string) error

func (*Buffer) SetLineInverse

func (b *Buffer) SetLineInverse(line int16, text string) error

func (*Buffer) SetX added in v0.0.2

func (b *Buffer) SetX(x int16) error

func (*Buffer) SetY added in v0.0.2

func (b *Buffer) SetY(y int16) error

func (*Buffer) Size

func (b *Buffer) Size() (int16, int16)

Size returns the number of columns and rows of text on the display.

func (*Buffer) X added in v0.0.2

func (b *Buffer) X() int16

func (*Buffer) Y added in v0.0.2

func (b *Buffer) Y() int16

type FontSize

type FontSize uint8

Jump to

Keyboard shortcuts

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