docgen: search feature

This commit is contained in:
Andreas Rumpf 2016-09-09 16:23:54 +02:00
commit 7621bb05c9
3 changed files with 73 additions and 0 deletions

View file

@ -17,6 +17,11 @@ proc `value=`*(e: Element; v: cstring) {.importcpp: "#.value = #", nodecl.}
proc getElementsByClass*(e: Element; name: cstring): seq[Element] {.importcpp: "#.getElementsByClassName(#)", nodecl.}
proc toLower*(x: cstring): cstring {.
importcpp: "#.toLowerCase()", nodecl.}
proc replace*(x: cstring; search, by: cstring): cstring {.
importcpp: "#.replace(#, #)", nodecl.}
type
EventHandler* = proc(ev: Event)
EventHandlerId* = proc(ev: Event; id: int)