Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestBuilder ¶
func TestBuilder(delegate *testbuilder.GlTestBuilder) *testBuilder
func WithTestWindow ¶
func WithTestWindowDriver ¶
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
}
func NewTestWindow ¶
func NewTestWindow(sys system.System, hdl system.NativeWindowHandle, queue render.RenderQueueInterface) Window
Click to show internal directories.
Click to hide internal directories.