app_software.go 389 B

12345678910111213141516
  1. //go:build ci
  2. // +build ci
  3. package app
  4. import (
  5. "fyne.io/fyne/v2"
  6. "fyne.io/fyne/v2/internal/painter/software"
  7. "fyne.io/fyne/v2/test"
  8. )
  9. // NewWithID returns a new app instance using the test (headless) driver.
  10. // The ID string should be globally unique to this app.
  11. func NewWithID(id string) fyne.App {
  12. return newAppWithDriver(test.NewDriverWithPainter(software.NewPainter()), id)
  13. }