Debian Codegraph @

shiny/driver/gldriver/other.go

raw symbols SCIP
1 // Copyright 2015 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 //go:build (!darwin || ios || !cgo) && (!linux || android || !cgo) && (!openbsd || !cgo) && !windows
6
7 package gldriver
8
9 import (
10 "fmt"
11 "runtime"
12
13 "golang.org/x/exp/shiny/screen"
14 )
15
16 const useLifecycler = true
17 const handleSizeEventsAtChannelReceive = true
18
19 var errUnsupported = fmt.Errorf("gldriver: unsupported GOOS/GOARCH %s/%s or cgo not enabled", runtime.GOOS, runtime.GOARCH)
20
21 func newWindow(opts *screen.NewWindowOptions) (uintptr, error) { return 0, errUnsupported }
22
23 func initWindow(id *windowImpl) {}
24 func showWindow(id *windowImpl) {}
25 func closeWindow(id uintptr) {}
26 func drawLoop(w *windowImpl) {}
27
28 func surfaceCreate() error { return errUnsupported }
29 func main(f func(screen.Screen)) error { return errUnsupported }