adam-gui/vendor/fyne.io/fyne/v2/internal/driver/context.go

10 lines
251 B
Go
Raw Permalink Normal View History

2024-04-29 19:13:50 +02:00
package driver
// WithContext allows drivers to execute within another context.
// Mostly this helps GLFW code execute within the painter's GL context.
type WithContext interface {
RunWithContext(f func())
RescaleContext()
Context() interface{}
}