On this page
software.WindowlessCanvas
import "fyne.io/fyne/v2/driver/software"
Usage
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.9func 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.8func NewTransparentCanvas
func NewTransparentCanvas() WindowlessCanvas
NewTransparentCanvas creates a new canvas in memory that can render without hardware support without a background color.
Since:
2.2func 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