Documentation
¶
Overview ¶
Package software implements a more generic system for just rendering without a window. Primarily, it was used in tests but found to be useful elsewhere. Between embedded and test utilities this may not be needed any more.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WindowlessCanvas ¶
type WindowlessCanvas interface {
fyne.Canvas
Padded() bool
Resize(fyne.Size)
SetPadded(bool)
SetScale(float32)
}
WindowlessCanvas provides functionality for a canvas to operate without a window
Since: 2.9
func NewCanvas ¶
func NewCanvas() WindowlessCanvas
NewCanvas creates a new canvas in memory that can render without hardware support.
func NewCanvasWithPainter ¶
func NewCanvasWithPainter(painter driver.Painter) WindowlessCanvas
NewCanvasWithPainter creates a new canvas in memory that can render without hardware support which uses the given driver.Painter for #Capture().
Since: 2.8
func NewTransparentCanvas ¶
func NewTransparentCanvas() WindowlessCanvas
NewTransparentCanvas creates a new canvas in memory that can render without hardware support without a background color.
Since: 2.2
func NewTransparentCanvasWithPainter ¶
func NewTransparentCanvasWithPainter(painter driver.Painter) WindowlessCanvas
NewTransparentCanvasWithPainter creates a new canvas in memory that can render without hardware support which uses the given driver.Painter for #Capture() without a background color.
Since: 2.8