update manual

This commit is contained in:
2025-04-16 08:59:49 +02:00
parent 186fbe426e
commit 9ca0d8d658

View File

@@ -78,7 +78,7 @@ textSize, textLen, backgroundColor, encoding are optional.
### `DrawLine(x1, y1, x2, y2)` ### `DrawLine(x1, y1, x2, y2)`
### `DrawRectangle(x, y, w, h color)` ### `DrawRectangle(x, y, widht, height, color)`
### `ReadPoint(x, y)` ### `ReadPoint(x, y)`
@@ -86,10 +86,17 @@ return color
## Buttons ## Buttons
### `DefineButton(x, y, widht, height, id, color)`
### `DeleteButton(id)`
### `GetButton()` ### `GetButton()`
return pressed button or nil return pressed button or nil
### `SetButtonStyle(style)`
### buttons ### buttons
button's ids that defined default by window with skin button's ids that defined default by window with skin
@@ -101,11 +108,48 @@ syscalls.buttons.<Value>
+ `close` + `close`
+ `minimize` + `minimize`
### ButtonStyles
```lua
syscalls.buttonStyle.<Value>
```
## SystemColors ## SystemColors
### SystemColors type ### 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()` ### `GetSystemColors()`