Added comments

This commit is contained in:
Armando Rivera 2021-07-29 21:31:42 -04:00
parent ad42f9f3e6
commit ffa7d27690

View File

@ -2,4 +2,19 @@
import NSFunctions
proc newButton*(parent: ID; caption: cstring; left: cint; top: cint; width: cint; height: cint; `func`: ACTION): ID {.cdecl, importc: "createButton".}
proc newButton*(parent: ID; caption: cstring; left: cint; top: cint; width: cint; height: cint; `func`: ACTION): ID {.cdecl, importc: "createButton".}
## Creates new Button object
##
## Example:
##
## .. code-block::nim
## btn1 = newButton(mainWindow, "Open", width-100, 20, 90, 24, btnClicked)
##
##
## Callback must be in the form:
##
## .. code-block::nim
## proc buttonCB(sender: ID) {.cdecl.} =
## <..code...>
##