DOM module: add more missing stuff
This commit is contained in:
parent
b8f4ff8b9f
commit
3dc270eee5
1 changed files with 3 additions and 0 deletions
|
|
@ -1075,6 +1075,7 @@ proc setTimeout*(w: Window, function: proc (), pause: int): ref Interval
|
||||||
proc stop*(w: Window)
|
proc stop*(w: Window)
|
||||||
proc requestAnimationFrame*(w: Window, function: proc (time: float)): int
|
proc requestAnimationFrame*(w: Window, function: proc (time: float)): int
|
||||||
proc cancelAnimationFrame*(w: Window, id: int)
|
proc cancelAnimationFrame*(w: Window, id: int)
|
||||||
|
proc onpopstate*(w: Window, ev: Event)
|
||||||
|
|
||||||
# Node "methods"
|
# Node "methods"
|
||||||
proc appendData*(n: Node, data: cstring)
|
proc appendData*(n: Node, data: cstring)
|
||||||
|
|
@ -1207,6 +1208,8 @@ proc encodeURIComponent*(uri: cstring): cstring {.importc, nodecl.}
|
||||||
proc isFinite*(x: BiggestFloat): bool {.importc, nodecl.}
|
proc isFinite*(x: BiggestFloat): bool {.importc, nodecl.}
|
||||||
proc isNaN*(x: BiggestFloat): bool {.importc, nodecl.}
|
proc isNaN*(x: BiggestFloat): bool {.importc, nodecl.}
|
||||||
|
|
||||||
|
proc newEvent*(name: cstring): Event {.importcpp: "new Event(@)", constructor.}
|
||||||
|
|
||||||
proc getElementsByClass*(n: Node; name: cstring): seq[Node] {.
|
proc getElementsByClass*(n: Node; name: cstring): seq[Node] {.
|
||||||
importcpp: "#.getElementsByClassName(#)", nodecl.}
|
importcpp: "#.getElementsByClassName(#)", nodecl.}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue