Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface { Init() Done() Title(title string) Size(rect image.Rectangle) NewWindow(rect image.Rectangle, background color.Color) Painter NewFont(height int, attributes map[string]string) Fonter NewImage(img image.Image) Imager NewMenu(label string) Menuer Chan() <-chan event.Eventer }
Driver is a internal interface to a application level functions
type Fonter ¶
type Fonter interface { Baseline() int Ascent() int Descent() int Close() Split(text string, edge int) []string Size(text string) image.Point }
Fonter is a internal interface to a font functions
type Painter ¶
type Painter interface { Drop() Size(rect image.Rectangle) Raise() Clear() Show() Fill(rect image.Rectangle, foreground color.Color) Line(from image.Point, to image.Point, foreground color.Color) Image(from image.Point, img Imager) Text(text string, font Fonter, from image.Point, foreground color.Color) }
Painter is a internal interface to a window functions
Click to show internal directories.
Click to hide internal directories.