Documentation ¶
Overview ¶
Package offscreen provides placeholder implementations of system interfaces to allow for offscreen testing and capturing of apps.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TheApp = &App{AppSingle: base.NewAppSingle[*Drawer, *Window]()}
TheApp is the single system.App for the offscreen platform
Functions ¶
Types ¶
type App ¶
type App struct { base.AppSingle[*Drawer, *Window] // TempDataDir is the path of the app data directory, used as the // return value of [App.DataDir]. It is set to a temporary directory, // as offscreen tests should not be dependent on user preferences and // other data. TempDataDir string }
App is the system.App implementation for the offscreen platform
func (*App) GetScreens ¶
func (a *App) GetScreens()
type Drawer ¶
type Drawer struct {
system.DrawerBase
}
Drawer is the implementation of system.Drawer for the offscreen platform
func (*Drawer) DestBounds ¶
DestBounds returns the bounds of the render destination
type Window ¶
type Window struct { base.WindowSingle[*App] }
Window is the implementation of system.Window for the offscreen platform.
Click to show internal directories.
Click to hide internal directories.