Update manual
Add more funcs
This commit is contained in:
@@ -8,6 +8,17 @@ local syscalls = require("syscalls")
|
|||||||
|
|
||||||
## Events
|
## Events
|
||||||
|
|
||||||
|
### `WaitEvent()`
|
||||||
|
|
||||||
|
Endless wait event
|
||||||
|
|
||||||
|
### `WaitEventTimeout(timeout)`
|
||||||
|
|
||||||
|
Wait timeout 1/100 sec
|
||||||
|
|
||||||
|
return event or nil
|
||||||
|
|
||||||
|
### Events list
|
||||||
```lua
|
```lua
|
||||||
syscalls.Event.<EventName>
|
syscalls.Event.<EventName>
|
||||||
```
|
```
|
||||||
@@ -73,6 +84,55 @@ textSize, textLen, backgroundColor, encoding are optional.
|
|||||||
|
|
||||||
return color
|
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
|
## Sockets
|
||||||
|
|
||||||
### `OpenSocket(domain, type, protocol)`
|
### `OpenSocket(domain, type, protocol)`
|
||||||
|
Reference in New Issue
Block a user