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.
 

28 lines
643 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: Value{Value: val}} }
func (v Value) AsImageBitmap() ImageBitmap { return ImageBitmap{Value: v} }
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()
}