package software
import "fyne.io/fyne/v2/driver/software"
Index ¶
- func NewCanvas() test.WindowlessCanvas
- func NewTransparentCanvas() test.WindowlessCanvas
- func Render(obj fyne.CanvasObject, t fyne.Theme) image.Image
- func RenderCanvas(c fyne.Canvas, t fyne.Theme) image.Image
Functions ¶
func NewCanvas ¶
func NewCanvas() test.WindowlessCanvas
NewCanvas creates a new canvas in memory that can render without hardware support.
func NewTransparentCanvas ¶
func NewTransparentCanvas() test.WindowlessCanvas
NewTransparentCanvas creates a new canvas in memory that can render without hardware support without a background color.
Since: 2.2
func Render ¶
Render takes a canvas object and renders it to a regular Go image using the provided Theme. The returned image will be set to the object's minimum size. Use the theme.LightTheme() or theme.DarkTheme() to access the builtin themes.
func RenderCanvas ¶
RenderCanvas takes a canvas and renders it to a regular Go image using the provided Theme. This is the same as setting the application theme and then calling Canvas.Capture().
Source Files ¶
render.go softwarecanvas.go
- Version
- v2.5.4 (latest)
- Published
- Feb 1, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 month ago –
Tools for package owners.