From e75ef3eb9e860f0b05f873368e62dd6f1d69a964 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B3=D0=BE=D1=80?= Date: Wed, 16 Apr 2025 08:41:11 +0200 Subject: [PATCH] Update manual Add more funcs --- doc/manual.md | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/doc/manual.md b/doc/manual.md index 3ee2a47..97df9fb 100644 --- a/doc/manual.md +++ b/doc/manual.md @@ -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. ``` @@ -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. +``` + ++ `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)`