impresslink

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(mainFn func(d driver.Driver))

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) NewFont

func (a *Application) NewFont(height int, attributes map[string]string) driver.Fonter

func (*Application) NewFrame

func (a *Application) NewFrame(rect image.Rectangle) driver.Framer

func (*Application) NewImage

func (a *Application) NewImage(img image.Image) driver.Imager

func (*Application) NewMenu

func (a *Application) NewMenu(label string) driver.Menuer

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) Ascent

func (f *Font) Ascent() int

func (*Font) Baseline

func (f *Font) Baseline() int

func (*Font) Close

func (f *Font) Close()

func (*Font) Descent

func (f *Font) Descent() int

func (*Font) LineHeight

func (f *Font) LineHeight() int

func (*Font) Size

func (f *Font) Size(text string) image.Point

func (*Font) Split

func (f *Font) Split(text string, edge int, indent int) []string

type Frame

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

func (*Frame) Drop

func (f *Frame) Drop()

func (*Frame) NewFrame

func (parent *Frame) NewFrame(rect image.Rectangle) driver.Framer

func (*Frame) NewWindow

func (f *Frame) NewWindow(rect image.Rectangle, background color.Color) driver.Painter

func (*Frame) Raise

func (f *Frame) Raise()

func (*Frame) Size

func (f *Frame) Size(rect image.Rectangle)

type Image

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

func (*Image) Close

func (i *Image) Close()

func (*Image) Size

func (i *Image) Size() image.Point
type Menu struct {
	// contains filtered or unexported fields
}
func (m *Menu) NewItem(label string, action string)
func (parent *Menu) NewMenu(label string) driver.Menuer
type MenuItem struct {
	// contains filtered or unexported fields
}

type Window

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

func (*Window) Clear

func (w *Window) Clear()

func (*Window) Drop

func (w *Window) Drop()

func (*Window) Fill

func (w *Window) Fill(rect image.Rectangle, foreground color.Color)

func (*Window) Image

func (w *Window) Image(rect image.Rectangle, img driver.Imager)

func (*Window) Line

func (w *Window) Line(from image.Point, to image.Point, foreground color.Color)

func (*Window) Raise

func (w *Window) Raise()

func (*Window) Show

func (w *Window) Show()

func (*Window) Size

func (w *Window) Size(rect image.Rectangle)

func (*Window) Text

func (w *Window) Text(text string, font driver.Fonter, from image.Point, foreground color.Color)

Jump to

Keyboard shortcuts

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