summaryrefslogtreecommitdiff
path: root/sysdata.go
blob: b17f50635a7d6c573a872ec6ff722fa8a1b04073 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// 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) 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
)