30 lines
662 B
Go
30 lines
662 B
Go
// 11 february 2014
|
|
package main
|
|
|
|
import (
|
|
"runtime"
|
|
)
|
|
|
|
// The sysData type contains all system data. It provides the system-specific underlying implementation. It is guaranteed to have the following by embedding:
|
|
type cSysData struct {
|
|
ctype int
|
|
|
|
// for Window
|
|
closing chan struct{}
|
|
}
|
|
func (c *cSysData) make(initText string, initWidth int, initHeight int) error {
|
|
panic(runtime.GOOS + " sysData does not define make()")
|
|
}
|
|
func (c *cSysData) show() error {
|
|
panic(runtime.GOOS + " sysData does not define show()")
|
|
}
|
|
func (c *cSysData) hide() error {
|
|
panic(runtime.GOOS + " sysData does not define hide()")
|
|
}
|
|
|
|
const (
|
|
c_window = iota
|
|
c_button
|
|
nctypes
|
|
)
|