Rev 7858 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7858 | Rev 8177 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | package os |
1 | package os |
Line -... | Line 2... | ||
- | 2 | ||
- | 3 | const ( |
|
- | 4 | EVENT_NONE = 0 /* Event queue is empty */ |
|
- | 5 | EVENT_REDRAW = 1 /* Window and window elements should be redrawn */ |
|
- | 6 | EVENT_KEY = 2 /* A key on the keyboard was pressed */ |
|
- | 7 | EVENT_BUTTON = 3 /* A button was clicked with the mouse */ |
|
- | 8 | EVENT_DESKTOP = 5 /* Desktop redraw finished */ |
|
- | 9 | EVENT_MOUSE = 6 /* Mouse activity (movement, button press) was detected */ |
|
- | 10 | EVENT_IPC = 7 /* Interprocess communication notify */ |
|
- | 11 | EVENT_NETWORK = 8 /* Network event */ |
|
- | 12 | EVENT_DEBUG = 9 /* Debug subsystem event */ |
|
- | 13 | EVENT_IRQBEGIN = 16 |
|
2 | 14 | ) |
|
- | 15 | func Sleep(uint32) |
|
3 | func Sleep(uint32) |
16 | func GetTime()(time uint32) |
4 | func Event() uint32 |
17 | func Event()(uint32) |
- | 18 | func GetButtonID()(id int) |
|
5 | func Button() uint32 |
19 | func CreateButton(x uint32, y uint32, xsize uint32, ysize uint32, id uint32, color uint32) |
6 | func Exit() |
20 | func Exit() |
7 | func Redraw(uint32) |
21 | func Redraw(uint32) |
- | 22 | func Window(y uint32, x uint32, w uint32,h uint32, title string) |
|
- | 23 | func WriteText(x uint32 ,y uint32 , color uint32, text string, len uint32) |
|
- | 24 | func DrawLine(x1 uint32, y1 uint32, x2 uint32, y2 uint32, color uint32)(uint32) |
|
- | 25 | func DrawBar(x uint32, y uint32, xsize uint32, ysize uint32, color uint32) |
|
- | 26 | func DebugOutHex(uint32) |
|
- | 27 | func DebugOutChar(byte) |