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.
 

31 lines
790 B

// Code generated DO NOT EDIT
// imagebitmap.go
package dom
import "syscall/js"
type ImageBitmapIFace interface {
Close(args ...interface{})
GetHeight() int
GetWidth() int
}
type ImageBitmap struct {
Value
}
func JSValueToImageBitmap(val js.Value) ImageBitmap { return ImageBitmap{Value: JSValueToValue(val)} }
func (v Value) AsImageBitmap() ImageBitmap { return ImageBitmap{Value: v} }
func NewImageBitmap(args ...interface{}) ImageBitmap {
return ImageBitmap{Value: JSValueToValue(js.Global().Get("ImageBitmap").New(args...))}
}
func (i ImageBitmap) Close(args ...interface{}) {
i.Call("close", args...)
}
func (i ImageBitmap) GetHeight() int {
val := i.Get("height")
return val.Int()
}
func (i ImageBitmap) GetWidth() int {
val := i.Get("width")
return val.Int()
}