selection

package
v0.0.0-...-41cedfc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Overview

Package selection is upcoming selection related functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Selection

type Selection struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Selection

func SelectionFromJS

func SelectionFromJS(value js.Value) *Selection

SelectionFromJS is casting a js.Value into Selection.

func SelectionFromWrapper

func SelectionFromWrapper(input core.Wrapper) *Selection

SelectionFromJS is casting from something that holds a js.Value into Selection.

func (*Selection) AddRange

func (_this *Selection) AddRange(_range *dom.Range)

func (*Selection) AnchorNode

func (_this *Selection) AnchorNode() *dom.Node

AnchorNode returning attribute 'anchorNode' with type dom.Node (idl: Node).

func (*Selection) AnchorOffset

func (_this *Selection) AnchorOffset() uint

AnchorOffset returning attribute 'anchorOffset' with type uint (idl: unsigned long).

func (*Selection) Collapse

func (_this *Selection) Collapse(node *dom.Node, offset *uint)

func (*Selection) CollapseToEnd

func (_this *Selection) CollapseToEnd()

func (*Selection) CollapseToStart

func (_this *Selection) CollapseToStart()

func (*Selection) ContainsNode

func (_this *Selection) ContainsNode(node *dom.Node, allowPartialContainment *bool) (_result bool)

func (*Selection) DeleteFromDocument

func (_this *Selection) DeleteFromDocument()

func (*Selection) Empty

func (_this *Selection) Empty()

func (*Selection) Extend

func (_this *Selection) Extend(node *dom.Node, offset *uint)

func (*Selection) FocusNode

func (_this *Selection) FocusNode() *dom.Node

FocusNode returning attribute 'focusNode' with type dom.Node (idl: Node).

func (*Selection) FocusOffset

func (_this *Selection) FocusOffset() uint

FocusOffset returning attribute 'focusOffset' with type uint (idl: unsigned long).

func (*Selection) GetRangeAt

func (_this *Selection) GetRangeAt(index uint) (_result *dom.Range)

func (*Selection) IsCollapsed

func (_this *Selection) IsCollapsed() bool

IsCollapsed returning attribute 'isCollapsed' with type bool (idl: boolean).

func (*Selection) JSValue

func (_this *Selection) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*Selection) RangeCount

func (_this *Selection) RangeCount() uint

RangeCount returning attribute 'rangeCount' with type uint (idl: unsigned long).

func (*Selection) RemoveAllRanges

func (_this *Selection) RemoveAllRanges()

func (*Selection) RemoveRange

func (_this *Selection) RemoveRange(_range *dom.Range)

func (*Selection) SelectAllChildren

func (_this *Selection) SelectAllChildren(node *dom.Node)

func (*Selection) SetBaseAndExtent

func (_this *Selection) SetBaseAndExtent(anchorNode *dom.Node, anchorOffset uint, focusNode *dom.Node, focusOffset uint)

func (*Selection) SetPosition

func (_this *Selection) SetPosition(node *dom.Node, offset *uint)

func (*Selection) ToString

func (_this *Selection) ToString() (_result string)

func (*Selection) Type

func (_this *Selection) Type() string

Type returning attribute 'type' with type string (idl: DOMString).

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL