Subversion Repositories Kolibri OS

Rev

Rev 9053 | Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. package os
  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
  14. )
  15.  
  16. func Sleep(uint32)
  17. func GetTime()(time uint32)
  18. func Event()(int)
  19. func GetButtonID()(id int)
  20. func CreateButton(x int, y int, xsize int, ysize int, id int, color uint32)
  21. func Exit()
  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)
  27. func DrawBar(x int, y int, xsize int, ysize int, color uint32)
  28. func DebugOutHex(uint32)
  29. func DebugOutChar(byte)
  30. func DebugOutStr(string)
  31.  
  32. func Pointer2byteSlice(ptr uint32) *[]byte __asm__("__unsafe_get_addr")
  33.  
  34. //func Pointer2uint32(ptr interface{}) uint32 __asm__("__unsafe_get_addr")