doodle/pkg/native/engine_wasm.go

30 lines
496 B
Go
Raw Normal View History

//go:build js && wasm
// +build js,wasm
package native
import (
2023-12-09 05:52:34 +00:00
"errors"
"image"
"git.kirsle.net/go/render"
)
func HasTouchscreen(e render.Engine) bool {
return false
}
func TextToImage(e render.Engine, text render.Text) (image.Image, error) {
return nil, errors.New("not supported on WASM")
}
func CopyToClipboard(text string) error {
return errors.New("not supported on WASM")
}
2023-12-09 05:52:34 +00:00
func CountTextures(e render.Engine) string {
return "n/a"
}
func MaximizeWindow(e render.Engine) {}