Update manual
Add more funcs
This commit is contained in:
@@ -8,6 +8,17 @@ local syscalls = require("syscalls")
|
||||
|
||||
## Events
|
||||
|
||||
### `WaitEvent()`
|
||||
|
||||
Endless wait event
|
||||
|
||||
### `WaitEventTimeout(timeout)`
|
||||
|
||||
Wait timeout 1/100 sec
|
||||
|
||||
return event or nil
|
||||
|
||||
### Events list
|
||||
```lua
|
||||
syscalls.Event.<EventName>
|
||||
```
|
||||
@@ -73,6 +84,55 @@ textSize, textLen, backgroundColor, encoding are optional.
|
||||
|
||||
return color
|
||||
|
||||
## Buttons
|
||||
|
||||
### `GetButton()`
|
||||
|
||||
return pressed button or nil
|
||||
|
||||
### buttons
|
||||
|
||||
button's ids that defined default by window with skin
|
||||
|
||||
```lua
|
||||
syscalls.buttons.<Value>
|
||||
```
|
||||
|
||||
+ `close`
|
||||
+ `minimize`
|
||||
|
||||
## SystemColors
|
||||
|
||||
### SystemColors type
|
||||
|
||||
|
||||
|
||||
### `GetSystemColors()`
|
||||
|
||||
return SystemColors
|
||||
|
||||
### `SetSytemColors(SystemColors)`
|
||||
|
||||
## Threads
|
||||
|
||||
### `ThreadInfo(pid)`
|
||||
|
||||
return table:
|
||||
```lua
|
||||
{
|
||||
name: string,
|
||||
pid: number,
|
||||
cpu_usage: number,
|
||||
memused: number,
|
||||
winXPos: number,
|
||||
winYPos: number,
|
||||
winXSize: number,
|
||||
winYPos: number,
|
||||
slotState: number,
|
||||
windowState: number
|
||||
}
|
||||
```
|
||||
|
||||
## Sockets
|
||||
|
||||
### `OpenSocket(domain, type, protocol)`
|
||||
|
Reference in New Issue
Block a user