some dom proc correction and complement (#10684)
This commit is contained in:
parent
bb9fe2046e
commit
2610b16f6e
1 changed files with 9 additions and 4 deletions
|
|
@ -192,7 +192,7 @@ type
|
||||||
|
|
||||||
Element* = ref ElementObj
|
Element* = ref ElementObj
|
||||||
ElementObj {.importc.} = object of NodeObj
|
ElementObj {.importc.} = object of NodeObj
|
||||||
classList*: Classlist
|
classList*: ClassList
|
||||||
checked*: bool
|
checked*: bool
|
||||||
defaultChecked*: bool
|
defaultChecked*: bool
|
||||||
defaultValue*: cstring
|
defaultValue*: cstring
|
||||||
|
|
@ -1183,9 +1183,10 @@ proc contains*(c: ClassList, class: cstring): bool
|
||||||
proc toggle*(c: ClassList, class: cstring)
|
proc toggle*(c: ClassList, class: cstring)
|
||||||
|
|
||||||
# Style "methods"
|
# Style "methods"
|
||||||
proc getAttribute*(s: Style, attr: cstring, caseSensitive=false): cstring
|
proc getPropertyValue*(s: Style, property: cstring): cstring
|
||||||
proc removeAttribute*(s: Style, attr: cstring, caseSensitive=false)
|
proc removeProperty*(s: Style, property: cstring)
|
||||||
proc setAttribute*(s: Style, attr, value: cstring, caseSensitive=false)
|
proc setProperty*(s: Style, property, value: cstring, priority = "")
|
||||||
|
proc getPropertyPriority*(s: Style, property: cstring): cstring
|
||||||
|
|
||||||
# Event "methods"
|
# Event "methods"
|
||||||
proc preventDefault*(ev: Event)
|
proc preventDefault*(ev: Event)
|
||||||
|
|
@ -1267,6 +1268,10 @@ proc inViewport*(el: Node): bool =
|
||||||
rect.right <= clientWidth().float
|
rect.right <= clientWidth().float
|
||||||
|
|
||||||
proc scrollTop*(e: Node): int {.importcpp: "#.scrollTop", nodecl.}
|
proc scrollTop*(e: Node): int {.importcpp: "#.scrollTop", nodecl.}
|
||||||
|
proc scrollLeft*(e: Node): int {.importcpp: "#.scrollLeft", nodecl.}
|
||||||
|
proc scrollHeight*(e: Node): int {.importcpp: "#.scrollHeight", nodecl.}
|
||||||
|
proc scrollWidth*(e: Node): int {.importcpp: "#.scrollWidth", nodecl.}
|
||||||
proc offsetHeight*(e: Node): int {.importcpp: "#.offsetHeight", nodecl.}
|
proc offsetHeight*(e: Node): int {.importcpp: "#.offsetHeight", nodecl.}
|
||||||
|
proc offsetWidth*(e: Node): int {.importcpp: "#.offsetWidth", nodecl.}
|
||||||
proc offsetTop*(e: Node): int {.importcpp: "#.offsetTop", nodecl.}
|
proc offsetTop*(e: Node): int {.importcpp: "#.offsetTop", nodecl.}
|
||||||
proc offsetLeft*(e: Node): int {.importcpp: "#.offsetLeft", nodecl.}
|
proc offsetLeft*(e: Node): int {.importcpp: "#.offsetLeft", nodecl.}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue