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()`