systemtest

package
v0.0.0-...-e1cee33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2026 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestBuilder

func TestBuilder(delegate *testbuilder.GlTestBuilder) *testBuilder

func WithTestWindow

func WithTestWindow(dx, dy int, fn func(window Window))

func WithTestWindowDriver

func WithTestWindowDriver(dx, dy int, fn func(driver Driver))

Types

type Driver

type Driver interface {
	MoveMouse(x, y int)
	Click(wx, wy int)
	Scroll(dy float64)
	ProcessFrame()

	// Put the top-left extent of the window at (x, y) in glop-coords.
	PositionWindow(x, y int)
	AddInputListener(gin.Listener)

	RawTool(func(system.NativeWindowHandle) []any)

	GetMousePosition() gui.Point
	GetEvents() []gin.EventGroup

	// Panics if there were no clicks
	GetLastClick() (int, int)

	// Panics if there were no scrolls
	GetLastScroll() float64

	gin.Listener
}

type Window

type Window interface {
	AddInputListener(gin.Listener)
	NewDriver() Driver
	GetQueue() render.RenderQueueInterface
	GetDims() gui.Dims
	GetSystemInterface() system.System
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL