diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-11 16:14:15 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-11 16:14:15 -0500 |
| commit | 9794814e9375e597d087b94e9643c943f7999f9c (patch) | |
| tree | 1e5df32921f49590756dbe604ec6578f6f671fe1 /sysdata.go | |
| parent | 394bf3ed9c0319924c06e864763cf0464545fa6b (diff) | |
Started implementing the public API: added the Window and Control types and the skeleton of the Windows implementation.
Diffstat (limited to 'sysdata.go')
| -rw-r--r-- | sysdata.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sysdata.go b/sysdata.go new file mode 100644 index 0000000..eb4d8ea --- /dev/null +++ b/sysdata.go @@ -0,0 +1,26 @@ +// 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 + text string +} +func (c *cSysData) make() 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) show() error { + panic(runtime.GOOS + " sysData does not define hide()") +} + +const ( + c_window = iota + c_button +) |
