mirror of
https://github.com/Airr/nim-cocoa.git
synced 2024-11-24 09:45:30 +00:00
Added comments
This commit is contained in:
parent
ad42f9f3e6
commit
ffa7d27690
@ -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...>
|
||||
##
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user