Documentation
¶
Index ¶
- func Exec(mainFn func(d driver.Driver))
- type Application
- func (a *Application) Chan() <-chan event.Eventer
- func (a *Application) ClipboardGet(typeID int)
- func (a *Application) ClipboardPut(c clipboard.Clipboarder)
- func (a *Application) Done()
- func (a *Application) Init()
- func (a *Application) NewFont(height int, attributes map[string]string) driver.Fonter
- func (a *Application) NewFrame(rect image.Rectangle) driver.Framer
- func (a *Application) NewImage(img image.Image) driver.Imager
- func (a *Application) NewMenu(label string) driver.Menuer
- func (a *Application) Size(rect image.Rectangle)
- func (a *Application) Sync()
- func (a *Application) Title(title string)
- type Font
- type Frame
- type Image
- type Menu
- type MenuItem
- type Window
- func (w *Window) Clear()
- func (w *Window) Drop()
- func (w *Window) Fill(rect image.Rectangle, foreground color.Color)
- func (w *Window) Image(rect image.Rectangle, img driver.Imager)
- func (w *Window) Line(from image.Point, to image.Point, foreground color.Color)
- func (w *Window) Raise()
- func (w *Window) Show()
- func (w *Window) Size(rect image.Rectangle)
- func (w *Window) Text(text string, font driver.Fonter, from image.Point, foreground color.Color)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func New ¶
func New(mainFn func(d driver.Driver)) *Application
func (*Application) Chan ¶
func (a *Application) Chan() <-chan event.Eventer
func (*Application) ClipboardGet ¶
func (a *Application) ClipboardGet(typeID int)
func (*Application) ClipboardPut ¶
func (a *Application) ClipboardPut(c clipboard.Clipboarder)
func (*Application) Done ¶
func (a *Application) Done()
func (*Application) Init ¶
func (a *Application) Init()
func (*Application) Size ¶
func (a *Application) Size(rect image.Rectangle)
func (*Application) Sync ¶
func (a *Application) Sync()
func (*Application) Title ¶
func (a *Application) Title(title string)
type Font ¶
type Font struct {
// contains filtered or unexported fields
}
func (*Font) LineHeight ¶
type Frame ¶
type Frame struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.