Documentation ¶
Index ¶
- func New() (tomo.Backend, error)
- type Backend
- func (this *Backend) ColorRGBA(id tomo.Color) (r, g, b, a uint32)
- func (this *Backend) Do(callback func())
- func (this *Backend) IconTexture(id tomo.Icon, size tomo.IconSize) canvas.Texture
- func (this *Backend) MimeIconTexture(mime data.Mime, size tomo.IconSize) canvas.Texture
- func (this *Backend) NewBox() tomo.Box
- func (this *Backend) NewCanvas(bounds image.Rectangle) canvas.CanvasCloser
- func (this *Backend) NewCanvasBox() tomo.CanvasBox
- func (this *Backend) NewContainerBox() tomo.ContainerBox
- func (this *Backend) NewSurfaceBox() (tomo.SurfaceBox, error)
- func (this *Backend) NewTextBox() tomo.TextBox
- func (this *Backend) NewTexture(source image.Image) canvas.TextureCloser
- func (this *Backend) NewWindow(kind tomo.WindowKind, bounds image.Rectangle) (tomo.Window, error)
- func (this *Backend) Run() error
- func (this *Backend) SetFaceSet(faceSet style.FaceSet)
- func (this *Backend) SetIconSet(iconSet style.IconSet)
- func (this *Backend) SetStyle(style *style.Style)
- func (this *Backend) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func (*Backend) IconTexture ¶ added in v0.6.0
func (*Backend) MimeIconTexture ¶ added in v0.6.0
func (*Backend) NewCanvas ¶
func (this *Backend) NewCanvas(bounds image.Rectangle) canvas.CanvasCloser
func (*Backend) NewCanvasBox ¶
func (*Backend) NewContainerBox ¶
func (this *Backend) NewContainerBox() tomo.ContainerBox
func (*Backend) NewSurfaceBox ¶
func (this *Backend) NewSurfaceBox() (tomo.SurfaceBox, error)
func (*Backend) NewTextBox ¶
func (*Backend) NewTexture ¶
func (this *Backend) NewTexture(source image.Image) canvas.TextureCloser
func (*Backend) SetFaceSet ¶ added in v0.6.0
func (*Backend) SetIconSet ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.