From ac932b3a438d99ecfd8c18c756e2a67b170ab40d 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:59:49 +0200 Subject: [PATCH] update manual --- doc/manual.md | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/doc/manual.md b/doc/manual.md index 97df9fb..ed49911 100644 --- a/doc/manual.md +++ b/doc/manual.md @@ -78,7 +78,7 @@ textSize, textLen, backgroundColor, encoding are optional. ### `DrawLine(x1, y1, x2, y2)` -### `DrawRectangle(x, y, w, h color)` +### `DrawRectangle(x, y, widht, height, color)` ### `ReadPoint(x, y)` @@ -86,10 +86,17 @@ return color ## Buttons +### `DefineButton(x, y, widht, height, id, color)` + +### `DeleteButton(id)` + ### `GetButton()` return pressed button or nil +### `SetButtonStyle(style)` + + ### buttons button's ids that defined default by window with skin @@ -101,11 +108,48 @@ syscalls.buttons. + `close` + `minimize` +### ButtonStyles + +```lua +syscalls.buttonStyle. +``` + ## SystemColors ### SystemColors type +userdata +#### Fields + ++ frameArea ++ grabBar ++ grabBarButton ++ grabButtonText ++ grabText ++ workArea ++ workButton ++ workButton ++ workButtonText + workGraph ++ workText + +#### Constructor + +```lua +syscalls.SystemColors.new( + frameArea, + grabBar, + grabBarButton, + grabButtonText, + grabText, + workArea, + workButton, + workButton, + workButtonText, + workGraph, + workText +) +``` ### `GetSystemColors()`