mirror of
https://github.com/Airr/nim-cocoa.git
synced 2024-11-24 09:45:30 +00:00
Added tooltips support
This commit is contained in:
parent
14c086d814
commit
c945a6cb86
@ -78,3 +78,5 @@ proc Notify*(title: cstring; subtitle: cstring; text: cstring) {.cdecl, importc:
|
||||
proc newSeparator*(parent: ID; x: cint; y: cint; width: cint): ID {.cdecl, importc: "createLine".}
|
||||
|
||||
proc link*( widget: ID, widgetIvar: cstring, target: ID, targetIvar: cstring) {.cdecl, importc:"bind".}
|
||||
|
||||
proc `tooltip=`*(widget: ID, tip: cstring) {.cdecl, importc: "setToolTip".}
|
@ -165,3 +165,6 @@ void addToParent(id parent, id child) {
|
||||
}
|
||||
}
|
||||
|
||||
void setToolTip(id widget, const char *tooltip) {
|
||||
[widget setToolTip: [NSString stringWithUTF8String: tooltip]];
|
||||
}
|
Loading…
Reference in New Issue
Block a user