Adds onpopstate and proc related to Events to dom module.
This commit is contained in:
parent
6ca8478548
commit
5fcfc43a20
1 changed files with 3 additions and 0 deletions
|
|
@ -62,6 +62,7 @@ type
|
|||
frames*: seq[TFrame]
|
||||
screen*: Screen
|
||||
performance*: Performance
|
||||
onpopstate*: proc (event: Event)
|
||||
|
||||
Frame* = ref FrameObj
|
||||
FrameObj {.importc.} = object of WindowObj
|
||||
|
|
@ -446,6 +447,7 @@ type
|
|||
proc addEventListener*(et: EventTarget, ev: cstring, cb: proc(ev: Event), useCapture: bool = false)
|
||||
proc addEventListener*(et: EventTarget, ev: cstring, cb: proc(ev: Event), options: AddEventListenerOptions)
|
||||
proc removeEventListener*(et: EventTarget, ev: cstring, cb: proc(ev: Event), useCapture: bool = false)
|
||||
proc dispatchEvent*(et: EventTarget, ev: Event)
|
||||
|
||||
# Window "methods"
|
||||
proc alert*(w: Window, msg: cstring)
|
||||
|
|
@ -596,6 +598,7 @@ proc parseFloat*(s: cstring): BiggestFloat {.importc, nodecl.}
|
|||
proc parseInt*(s: cstring): int {.importc, nodecl.}
|
||||
proc parseInt*(s: cstring, radix: int):int {.importc, nodecl.}
|
||||
|
||||
proc newEvent*(name: cstring): Event {.importcpp: "new Event(@)", constructor.}
|
||||
|
||||
type
|
||||
TEventHandlers* {.deprecated.} = EventTargetObj
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue