Rev 9053 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
7858 | pavelyakov | 1 | package os |
2 | |||
8177 | superturbo | 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 |
||
14 | ) |
||
9063 | pavelyakov | 15 | |
7858 | pavelyakov | 16 | func Sleep(uint32) |
8177 | superturbo | 17 | func GetTime()(time uint32) |
9063 | pavelyakov | 18 | func Event()(int) |
8177 | superturbo | 19 | func GetButtonID()(id int) |
9063 | pavelyakov | 20 | func CreateButton(x int, y int, xsize int, ysize int, id int, color uint32) |
7858 | pavelyakov | 21 | func Exit() |
9063 | pavelyakov | 22 | func Redraw(int) |
23 | func Window(y int, x int, w int,h int, title string) |
||
24 | func WriteText(x int ,y int , color uint32, text string) |
||
25 | func WriteText2(int ,int ,int, uint32,uint32) |
||
26 | func DrawLine(x1 int, y1 int, x2 int, y2 int, color uint32)(uint32) |
||
9053 | pavelyakov | 27 | func DrawBar(x int, y int, xsize int, ysize int, color uint32) |
8177 | superturbo | 28 | func DebugOutHex(uint32) |
29 | func DebugOutChar(byte) |
||
30 | func DebugOutStr(string) |
||
9063 | pavelyakov | 31 | |
32 | func Pointer2byteSlice(ptr uint32) *[]byte __asm__("__unsafe_get_addr") |
||
33 | |||
34 | //func Pointer2uint32(ptr interface{}) uint32 __asm__("__unsafe_get_addr") |