Web API package for use when compling Go to WASM
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

56 lines
1.6 KiB

// Code generated DO NOT EDIT
// nodeiterator.go
package dom
import "syscall/js"
type NodeIteratorIFace interface {
Detach(args ...interface{})
GetFilter() NodeFilter
NextNode(args ...interface{}) Node
GetPointerBeforeReferenceNode() bool
PreviousNode(args ...interface{}) Node
GetReferenceNode() Node
GetRoot() Node
GetWhatToShow() int
}
type NodeIterator struct {
Value
}
func JSValueToNodeIterator(val js.Value) NodeIterator { return NodeIterator{Value: JSValueToValue(val)} }
func (v Value) AsNodeIterator() NodeIterator { return NodeIterator{Value: v} }
func NewNodeIterator(args ...interface{}) NodeIterator {
return NodeIterator{Value: JSValueToValue(js.Global().Get("NodeIterator").New(args...))}
}
func (n NodeIterator) Detach(args ...interface{}) {
n.Call("detach", args...)
}
func (n NodeIterator) GetFilter() NodeFilter {
val := n.Get("filter")
return JSValueToNodeFilter(val.JSValue())
}
func (n NodeIterator) NextNode(args ...interface{}) Node {
val := n.Call("nextNode", args...)
return JSValueToNode(val.JSValue())
}
func (n NodeIterator) GetPointerBeforeReferenceNode() bool {
val := n.Get("pointerBeforeReferenceNode")
return val.Bool()
}
func (n NodeIterator) PreviousNode(args ...interface{}) Node {
val := n.Call("previousNode", args...)
return JSValueToNode(val.JSValue())
}
func (n NodeIterator) GetReferenceNode() Node {
val := n.Get("referenceNode")
return JSValueToNode(val.JSValue())
}
func (n NodeIterator) GetRoot() Node {
val := n.Get("root")
return JSValueToNode(val.JSValue())
}
func (n NodeIterator) GetWhatToShow() int {
val := n.Get("whatToShow")
return val.Int()
}