Subversion Repositories Kolibri OS

Rev

Rev 8177 | 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
)
7858 pavelyakov 15
func Sleep(uint32)
8177 superturbo 16
func GetTime()(time uint32)
17
func Event()(uint32)
18
func GetButtonID()(id int)
19
func CreateButton(x uint32, y uint32, xsize uint32, ysize uint32, id uint32, color uint32)
7858 pavelyakov 20
func Exit()
21
func Redraw(uint32)
8177 superturbo 22
func Window(y uint32, x uint32, w uint32,h uint32, title string)
9053 pavelyakov 23
func WriteText(x uint32 ,y uint32 , color uint32, text string)
24
func WriteText2(uint32 ,string ,uint32, uint32,uint32)
8177 superturbo 25
func DrawLine(x1 uint32, y1 uint32, x2 uint32, y2 uint32, color uint32)(uint32)
9053 pavelyakov 26
func DrawBar(x int, y int, xsize int, ysize int, color uint32)
8177 superturbo 27
func DebugOutHex(uint32)
28
func DebugOutChar(byte)
29
func DebugOutStr(string)