domrect

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotImplemented = errors.New("Browser not implemented DOMRect")
	ErrNotAnDOMRect   = errors.New("The given value must be an DOMRect")
)

Functions

func GetInterface

func GetInterface() js.Value

GetJSInterface get the JS interface

Types

type DOMRect

type DOMRect struct {
	domrectreadonly.DOMRectReadOnly
}

DOMRectReadOnly struct

func New

func New() (DOMRect, error)

func NewFromJSObject

func NewFromJSObject(obj js.Value) (DOMRect, error)

func (DOMRect) DOMRect_

func (d DOMRect) DOMRect_() DOMRect

func (DOMRect) RectReadOnly

func (d DOMRect) RectReadOnly() (domrectreadonly.DOMRectReadOnly, error)

func (DOMRect) SetHeight

func (d DOMRect) SetHeight(value float64) error

func (DOMRect) SetLeft

func (d DOMRect) SetLeft(value float64) error

func (DOMRect) SetRight

func (d DOMRect) SetRight(value float64) error

func (DOMRect) SetTop

func (d DOMRect) SetTop(value float64) error

func (DOMRect) SetWidth

func (d DOMRect) SetWidth(value float64) error

func (DOMRect) SetX

func (d DOMRect) SetX(value float64) error

func (DOMRect) SetY

func (d DOMRect) SetY(value float64) error

type DOMRectFrom

type DOMRectFrom interface {
	DOMRect_() DOMRect
}

Jump to

Keyboard shortcuts

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