Implement requestAnimationFrame and cancelAnimationFrame in dom module.
This commit is contained in:
parent
d221e6a35c
commit
f2ca6021dc
1 changed files with 2 additions and 0 deletions
|
|
@ -406,6 +406,8 @@ proc setInterval*(w: Window, function: proc (), pause: int): ref TInterval
|
|||
proc setTimeout*(w: Window, code: cstring, pause: int): ref TTimeOut
|
||||
proc setTimeout*(w: Window, function: proc (), pause: int): ref TInterval
|
||||
proc stop*(w: Window)
|
||||
proc requestAnimationFrame*(w: Window, function: proc (time: float)): int
|
||||
proc cancelAnimationFrame*(w: Window, id: int)
|
||||
|
||||
# Node "methods"
|
||||
proc appendChild*(n, child: Node)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue