forked from KolibriOS/kolibrios
- Added new system functions to golang.
- Renamed int40 file to syscalls.s. - Updated example with new functionality. git-svn-id: svn://kolibrios.org@8177 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -1,8 +1,28 @@
|
||||
package os
|
||||
|
||||
const (
|
||||
EVENT_NONE = 0 /* Event queue is empty */
|
||||
EVENT_REDRAW = 1 /* Window and window elements should be redrawn */
|
||||
EVENT_KEY = 2 /* A key on the keyboard was pressed */
|
||||
EVENT_BUTTON = 3 /* A button was clicked with the mouse */
|
||||
EVENT_DESKTOP = 5 /* Desktop redraw finished */
|
||||
EVENT_MOUSE = 6 /* Mouse activity (movement, button press) was detected */
|
||||
EVENT_IPC = 7 /* Interprocess communication notify */
|
||||
EVENT_NETWORK = 8 /* Network event */
|
||||
EVENT_DEBUG = 9 /* Debug subsystem event */
|
||||
EVENT_IRQBEGIN = 16
|
||||
)
|
||||
func Sleep(uint32)
|
||||
func Event() uint32
|
||||
func Button() uint32
|
||||
func GetTime()(time uint32)
|
||||
func Event()(uint32)
|
||||
func GetButtonID()(id int)
|
||||
func CreateButton(x uint32, y uint32, xsize uint32, ysize uint32, id uint32, color uint32)
|
||||
func Exit()
|
||||
func Redraw(uint32)
|
||||
func Window(uint32, uint32, uint32, uint32, string)
|
||||
func Window(y uint32, x uint32, w uint32,h uint32, title string)
|
||||
func WriteText(x uint32 ,y uint32 , color uint32, text string, len uint32)
|
||||
func DrawLine(x1 uint32, y1 uint32, x2 uint32, y2 uint32, color uint32)(uint32)
|
||||
func DrawBar(x uint32, y uint32, xsize uint32, ysize uint32, color uint32)
|
||||
func DebugOutHex(uint32)
|
||||
func DebugOutChar(byte)
|
||||
func DebugOutStr(string)
|
||||
|
Reference in New Issue
Block a user