Documentation ¶
Index ¶
- Constants
- Variables
- func AnyArrayOf[T any](input []T) (output []any)
- func CreateAnimator(function AnimatorFunction)
- func JSArrayOf[T any](input []T) js.Value
- func ProcessTemplate(node *Node, context any, funcmap template.FuncMap)
- type AnimatorFunction
- type CanvasContext
- type Clipboard
- type DOMTokenList
- func (l *DOMTokenList) Add(value string)
- func (l *DOMTokenList) Contains(value string) bool
- func (l *DOMTokenList) Entries() (entries []string)
- func (l *DOMTokenList) Item(index int) string
- func (l *DOMTokenList) Remove(value string)
- func (l *DOMTokenList) Replace(old, new string)
- func (l *DOMTokenList) Toggle(value string)
- type DocumentObject
- func (d *DocumentObject) Body() *HTMLElement
- func (d *DocumentObject) CreateElement(name string) *Element
- func (d *DocumentObject) CreateElementNS(namespace string, name string) *Element
- func (d *DocumentObject) GetElementByID(id string) *Element
- func (e *DocumentObject) GetElementsByTagName(name string) (elements []*Element)
- type Element
- func (e *Element) After(other ...*Element)
- func (e *Element) Append(other ...*Element)
- func (e *Element) AsHTMLElement() *HTMLElement
- func (e *Element) AsHTMLInputElement() *HTMLInputElement
- func (e *Element) Before(other ...*Element)
- func (e *Element) ClassList() *DOMTokenList
- func (e *Element) ClientHeight() float64
- func (e *Element) ClientLeft() float64
- func (e *Element) ClientTop() float64
- func (e *Element) ClientWidth() float64
- func (e *Element) GetAttribute(name string) string
- func (e *Element) InnerHTML() string
- func (e *Element) InnerText() string
- func (e *Element) Prepend(other ...*Element)
- func (e *Element) QuerySelector(query string) *Element
- func (e *Element) QuerySelectorAll(query string) (elements []*Element)
- func (e *Element) ReadAttributes(source any)
- func (e *Element) Remove()
- func (e *Element) RemoveAttribute(name string)
- func (e *Element) ReplaceChildren(newChildren ...[]Element)
- func (e *Element) SetAttribute(name string, value any)
- func (e *Element) SetInnerHTML(value string)
- func (e *Element) SetInnerText(value string)
- func (e *Element) SetStyle(style string)
- func (e *Element) WriteAttributes(target any)
- type Event
- type EventListener
- type EventTarget
- type HTMLButtonElement
- type HTMLCanvasElement
- type HTMLElement
- type HTMLInputElement
- type JSFunction
- type KeyboardEvent
- type LocationObject
- func (o *LocationObject) HRef() string
- func (o *LocationObject) Hash() string
- func (o *LocationObject) Host() string
- func (o *LocationObject) Hostname() string
- func (o *LocationObject) MustQuery() url.Values
- func (o *LocationObject) Origin() string
- func (o *LocationObject) Pathname() string
- func (o *LocationObject) Port() string
- func (o *LocationObject) Query() (values url.Values, err error)
- func (o *LocationObject) Search() string
- func (o *LocationObject) SetHRef(value string)
- func (o *LocationObject) SetHash(value string)
- func (o *LocationObject) SetHost(value string)
- func (o *LocationObject) SetHostname(value string)
- func (o *LocationObject) SetPathname(value string)
- func (o *LocationObject) SetPort(value string)
- func (o *LocationObject) SetSearch(value string)
- type NavigatorObject
- type Node
- func (n *Node) AppendChild(child *Node)
- func (n *Node) BaseURI() string
- func (n *Node) ChildNodes() *NodeList
- func (n *Node) CloneNode(deep bool) *Node
- func (n *Node) CompareDocumentPosition(other *Node) int
- func (n *Node) Contains(other *Node) bool
- func (n *Node) FirstChild() *Node
- func (n *Node) GetRootNode() *Node
- func (n *Node) HasChildNodes() bool
- func (n *Node) InsertBefore(node *Node, reference *Node)
- func (n *Node) IsConnected() bool
- func (n *Node) IsDefaultNamespace(namespace string) bool
- func (n *Node) IsEqualNode(other *Node) bool
- func (n *Node) IsSameNode(other *Node) bool
- func (n *Node) LastChild() *Node
- func (n *Node) NextSibling() *Node
- func (n *Node) NodeName() string
- func (n *Node) NodeType() int
- func (n *Node) NodeValue() string
- func (n *Node) OwnerDocument() *DocumentObject
- func (n *Node) ParentElement() *Element
- func (n *Node) ParentNode() *Node
- func (n *Node) PreviousSibling() *Node
- func (n *Node) RemoveChild(child *Node)
- func (n *Node) ReplaceChild(newChild *Node, oldChild *Node)
- func (n *Node) SetNodeValue(value string)
- func (n *Node) SetTextContent(value string)
- func (n *Node) TextContent() string
- type NodeList
- type Object
- type Storage
- type UIEvent
- type WebGL2RenderingContext
- type WebGLBuffer
- type WebGLProgram
- type WebGLRenderingContext
- func (c *WebGLRenderingContext) ActiveTexture(unit uint32)
- func (c *WebGLRenderingContext) AttachShader(program *WebGLProgram, shader *WebGLShader)
- func (c *WebGLRenderingContext) BindBuffer(target uint32, buffer *WebGLBuffer)
- func (c *WebGLRenderingContext) BindTexture(target uint32, texture *WebGLTexture)
- func (c *WebGLRenderingContext) BindVertexArray(vao *WebGLVertexArrayObject)
- func (c *WebGLRenderingContext) BufferData(target uint32, size int, data js.Value, usage uint32)
- func (c *WebGLRenderingContext) BufferSubData(target uint32, offset int, size int, data js.Value)
- func (c *WebGLRenderingContext) Clear(target uint32)
- func (c *WebGLRenderingContext) ClearColor(r, g, b, a float32)
- func (c *WebGLRenderingContext) ClearDepth(depth float64)
- func (c *WebGLRenderingContext) CompileShader(shader *WebGLShader)
- func (c *WebGLRenderingContext) CreateBuffer() *WebGLBuffer
- func (c *WebGLRenderingContext) CreateProgram() *WebGLProgram
- func (c *WebGLRenderingContext) CreateShader(kind uint32) *WebGLShader
- func (c *WebGLRenderingContext) CreateTexture() *WebGLTexture
- func (c *WebGLRenderingContext) CullFace(mode uint32)
- func (c *WebGLRenderingContext) DepthFunc(xfnc uint32)
- func (c *WebGLRenderingContext) DisableVertexAttribArray(index int)
- func (c *WebGLRenderingContext) DrawElements(mode uint32, count int32, xtype uint32, offset int)
- func (c *WebGLRenderingContext) Enable(cap uint32)
- func (c *WebGLRenderingContext) EnableVertexAttribArray(index int)
- func (c *WebGLRenderingContext) FrontFace(mode uint32)
- func (c *WebGLRenderingContext) GetCanvasElement() *HTMLCanvasElement
- func (c *WebGLRenderingContext) GetProgramInfoLog(program *WebGLProgram) string
- func (c *WebGLRenderingContext) GetShaderInfoLog(shader *WebGLShader) string
- func (c *WebGLRenderingContext) GetShaderParameter(shader *WebGLShader, pname uint32) js.Value
- func (c *WebGLRenderingContext) GetUniformLocation(program *WebGLProgram, name string) js.Value
- func (c *WebGLRenderingContext) LinkProgram(program *WebGLProgram)
- func (c *WebGLRenderingContext) ShaderSource(shader *WebGLShader, source string)
- func (c *WebGLRenderingContext) TexImage2D(target uint32, level int32, internalformat int32, width int32, height int32, ...)
- func (c *WebGLRenderingContext) TexParameteri(target uint32, pname uint32, param int32)
- func (c *WebGLRenderingContext) Uniform1f(location js.Value, value float32)
- func (c *WebGLRenderingContext) Uniform1fv(location js.Value, value []float32)
- func (c *WebGLRenderingContext) Uniform1i(location js.Value, value int32)
- func (c *WebGLRenderingContext) Uniform2f(location js.Value, v1, v2 float32)
- func (c *WebGLRenderingContext) Uniform3f(location js.Value, v1, v2, v3 float32)
- func (c *WebGLRenderingContext) Uniform3fv(location js.Value, value []float32)
- func (c *WebGLRenderingContext) Uniform4f(location js.Value, v1, v2, v3, v4 float32)
- func (c *WebGLRenderingContext) UniformMatrix4fv(location js.Value, transpose bool, value []float32)
- func (c *WebGLRenderingContext) UseProgram(program *WebGLProgram)
- func (c *WebGLRenderingContext) VertexAttribPointer(index int, size int, xtype uint32, normalized bool, stride int32, offset int)
- type WebGLShader
- type WebGLTexture
- type WebGLVertexArrayObject
- type WindowObject
- func (w *WindowObject) ClearInterval(id int)
- func (w *WindowObject) ClearTimeout(id int)
- func (w *WindowObject) LocalStorage() *Storage
- func (w *WindowObject) Location() *LocationObject
- func (w *WindowObject) Open(url, target string)
- func (w *WindowObject) RequestAnimationFrame(callback JSFunction)
- func (w *WindowObject) SetInterval(callback JSFunction, millis int) int
- func (w *WindowObject) SetTimeout(callback JSFunction, millis int) int
Constants ¶
View Source
const ( ELEMENT_NODE = 1 ATTRIBUTE_NODE = 2 TEXT_NODE = 3 CDATA_SECTION_NODE = 4 PROCESSING_INSTRUCTION_NODE = 7 COMMENT_NODE = 8 DOCUMENT_NODE = 9 DOCUMENT_TYPE_NODE = 10 DOCUMENT_FRAGMENT_NODE = 11 )
Variables ¶
View Source
var Document = &DocumentObject{EventTarget: NewEventTarget(&Object{js.Global().Get("document")})}
View Source
var Window = &WindowObject{ EventTarget: NewEventTarget(&Object{js.Global().Get("window")}), localStorage: NewStorage(&Object{js.Global().Get("window").Get("localStorage")}), }
Functions ¶
func AnyArrayOf ¶
func CreateAnimator ¶
func CreateAnimator(function AnimatorFunction)
Types ¶
type AnimatorFunction ¶
type CanvasContext ¶
type CanvasContext interface {
GetCanvasElement() *HTMLCanvasElement
}
type DOMTokenList ¶
type DOMTokenList struct {
*Object
}
func NewDOMTokenList ¶
func NewDOMTokenList(object *Object) *DOMTokenList
func (*DOMTokenList) Add ¶
func (l *DOMTokenList) Add(value string)
func (*DOMTokenList) Contains ¶
func (l *DOMTokenList) Contains(value string) bool
func (*DOMTokenList) Entries ¶
func (l *DOMTokenList) Entries() (entries []string)
func (*DOMTokenList) Item ¶
func (l *DOMTokenList) Item(index int) string
func (*DOMTokenList) Remove ¶
func (l *DOMTokenList) Remove(value string)
func (*DOMTokenList) Replace ¶
func (l *DOMTokenList) Replace(old, new string)
func (*DOMTokenList) Toggle ¶
func (l *DOMTokenList) Toggle(value string)
type DocumentObject ¶
type DocumentObject struct {
*EventTarget
}
func (*DocumentObject) Body ¶
func (d *DocumentObject) Body() *HTMLElement
func (*DocumentObject) CreateElement ¶
func (d *DocumentObject) CreateElement(name string) *Element
func (*DocumentObject) CreateElementNS ¶
func (d *DocumentObject) CreateElementNS(namespace string, name string) *Element
func (*DocumentObject) GetElementByID ¶
func (d *DocumentObject) GetElementByID(id string) *Element
func (*DocumentObject) GetElementsByTagName ¶
func (e *DocumentObject) GetElementsByTagName(name string) (elements []*Element)
type Element ¶
type Element struct {
*Node
}
func CloneTemplate ¶
func ElementFromNode ¶
func GetTemplate ¶
func NewElement ¶
func (*Element) AsHTMLElement ¶
func (e *Element) AsHTMLElement() *HTMLElement
func (*Element) AsHTMLInputElement ¶
func (e *Element) AsHTMLInputElement() *HTMLInputElement
func (*Element) ClassList ¶
func (e *Element) ClassList() *DOMTokenList
func (*Element) ClientHeight ¶
func (*Element) ClientLeft ¶
func (*Element) ClientWidth ¶
func (*Element) GetAttribute ¶
func (*Element) QuerySelector ¶
func (*Element) QuerySelectorAll ¶
func (*Element) ReadAttributes ¶
func (*Element) RemoveAttribute ¶
func (*Element) ReplaceChildren ¶
func (*Element) SetAttribute ¶
func (*Element) SetInnerHTML ¶
func (*Element) SetInnerText ¶
func (*Element) WriteAttributes ¶
type Event ¶
type Event struct {
*Object
}
func (*Event) PreventDefault ¶
func (e *Event) PreventDefault()
func (*Event) Target ¶
func (e *Event) Target() *EventTarget
type EventListener ¶
type EventListener struct {
// contains filtered or unexported fields
}
func (*EventListener) Remove ¶
func (l *EventListener) Remove()
type EventTarget ¶
type EventTarget struct {
*Object
}
func NewEventTarget ¶
func NewEventTarget(object *Object) *EventTarget
func (*EventTarget) AddEventListener ¶
func (o *EventTarget) AddEventListener(event string, callback JSFunction) (listener *EventListener)
func (*EventTarget) RemoveEventListener ¶
func (o *EventTarget) RemoveEventListener(event string, listener *EventListener)
type HTMLButtonElement ¶
type HTMLButtonElement struct {
*HTMLElement
}
func NewHTMLButtonElement ¶
func NewHTMLButtonElement(object *Object) *HTMLButtonElement
func (*HTMLButtonElement) Disabled ¶
func (e *HTMLButtonElement) Disabled() bool
func (*HTMLButtonElement) SetDisabled ¶
func (e *HTMLButtonElement) SetDisabled(value bool)
type HTMLCanvasElement ¶
type HTMLCanvasElement struct {
*HTMLElement
}
func NewHTMLCanvasElement ¶
func NewHTMLCanvasElement(object *Object) *HTMLCanvasElement
func (*HTMLCanvasElement) GetWebGL2Context ¶
func (e *HTMLCanvasElement) GetWebGL2Context() *WebGL2RenderingContext
func (*HTMLCanvasElement) GetWebGLContext ¶
func (e *HTMLCanvasElement) GetWebGLContext() *WebGLRenderingContext
func (*HTMLCanvasElement) Height ¶
func (e *HTMLCanvasElement) Height() int
func (*HTMLCanvasElement) Width ¶
func (e *HTMLCanvasElement) Width() int
type HTMLElement ¶
type HTMLElement struct {
*Element
}
func GetHTMLTemplate ¶
func GetHTMLTemplate(id string) *HTMLElement
func NewHTMLElement ¶
func NewHTMLElement(object *Object) *HTMLElement
type HTMLInputElement ¶
type HTMLInputElement struct {
*HTMLElement
}
func NewHTMLInputElement ¶
func NewHTMLInputElement(object *Object) *HTMLInputElement
func (*HTMLInputElement) Disabled ¶
func (e *HTMLInputElement) Disabled() bool
func (*HTMLInputElement) SetDisabled ¶
func (e *HTMLInputElement) SetDisabled(value bool)
func (*HTMLInputElement) SetValue ¶
func (e *HTMLInputElement) SetValue(value any)
func (*HTMLInputElement) Value ¶
func (e *HTMLInputElement) Value() string
type KeyboardEvent ¶
type KeyboardEvent struct {
*UIEvent
}
func NewKeyboardEvent ¶
func NewKeyboardEvent(object *Object) *KeyboardEvent
type LocationObject ¶
type LocationObject struct {
*Object
}
func (*LocationObject) HRef ¶
func (o *LocationObject) HRef() string
func (*LocationObject) Hash ¶
func (o *LocationObject) Hash() string
func (*LocationObject) Host ¶
func (o *LocationObject) Host() string
func (*LocationObject) Hostname ¶
func (o *LocationObject) Hostname() string
func (*LocationObject) MustQuery ¶
func (o *LocationObject) MustQuery() url.Values
func (*LocationObject) Origin ¶
func (o *LocationObject) Origin() string
func (*LocationObject) Pathname ¶
func (o *LocationObject) Pathname() string
func (*LocationObject) Port ¶
func (o *LocationObject) Port() string
func (*LocationObject) Search ¶
func (o *LocationObject) Search() string
func (*LocationObject) SetHRef ¶
func (o *LocationObject) SetHRef(value string)
func (*LocationObject) SetHash ¶
func (o *LocationObject) SetHash(value string)
func (*LocationObject) SetHost ¶
func (o *LocationObject) SetHost(value string)
func (*LocationObject) SetHostname ¶
func (o *LocationObject) SetHostname(value string)
func (*LocationObject) SetPathname ¶
func (o *LocationObject) SetPathname(value string)
func (*LocationObject) SetPort ¶
func (o *LocationObject) SetPort(value string)
func (*LocationObject) SetSearch ¶
func (o *LocationObject) SetSearch(value string)
type NavigatorObject ¶
type NavigatorObject struct {
}func NewNavigatorObject ¶
func NewNavigatorObject(object *Object) *NavigatorObject
func (*NavigatorObject) Clipboard ¶
func (s *NavigatorObject) Clipboard() *Clipboard
type Node ¶
type Node struct {
*EventTarget
}
func ConvertNodeList ¶
func (*Node) ChildNodes ¶
func (*Node) CompareDocumentPosition ¶
func (*Node) FirstChild ¶
func (*Node) GetRootNode ¶
func (*Node) HasChildNodes ¶
func (*Node) InsertBefore ¶
func (*Node) IsConnected ¶
func (*Node) IsDefaultNamespace ¶
func (*Node) IsEqualNode ¶
func (*Node) IsSameNode ¶
func (*Node) NextSibling ¶
func (*Node) OwnerDocument ¶
func (n *Node) OwnerDocument() *DocumentObject
func (*Node) ParentElement ¶
func (*Node) ParentNode ¶
func (*Node) PreviousSibling ¶
func (*Node) RemoveChild ¶
func (*Node) ReplaceChild ¶
func (*Node) SetNodeValue ¶
func (*Node) SetTextContent ¶
func (*Node) TextContent ¶
type WebGL2RenderingContext ¶
type WebGL2RenderingContext struct {
*WebGLRenderingContext
}
func (*WebGL2RenderingContext) CreateVertexArray ¶
func (c *WebGL2RenderingContext) CreateVertexArray() *WebGLVertexArrayObject
type WebGLBuffer ¶
type WebGLBuffer struct {
*Object
}
func NewWebGLBuffer ¶
func NewWebGLBuffer(value js.Value) *WebGLBuffer
type WebGLProgram ¶
type WebGLProgram struct {
*Object
}
func NewWebGLProgram ¶
func NewWebGLProgram(value js.Value) *WebGLProgram
type WebGLRenderingContext ¶
type WebGLRenderingContext struct { *Object // contains filtered or unexported fields }
func (*WebGLRenderingContext) ActiveTexture ¶
func (c *WebGLRenderingContext) ActiveTexture(unit uint32)
func (*WebGLRenderingContext) AttachShader ¶
func (c *WebGLRenderingContext) AttachShader(program *WebGLProgram, shader *WebGLShader)
func (*WebGLRenderingContext) BindBuffer ¶
func (c *WebGLRenderingContext) BindBuffer(target uint32, buffer *WebGLBuffer)
func (*WebGLRenderingContext) BindTexture ¶
func (c *WebGLRenderingContext) BindTexture(target uint32, texture *WebGLTexture)
func (*WebGLRenderingContext) BindVertexArray ¶
func (c *WebGLRenderingContext) BindVertexArray(vao *WebGLVertexArrayObject)
func (*WebGLRenderingContext) BufferData ¶
func (*WebGLRenderingContext) BufferSubData ¶
func (*WebGLRenderingContext) Clear ¶
func (c *WebGLRenderingContext) Clear(target uint32)
func (*WebGLRenderingContext) ClearColor ¶
func (c *WebGLRenderingContext) ClearColor(r, g, b, a float32)
func (*WebGLRenderingContext) ClearDepth ¶
func (c *WebGLRenderingContext) ClearDepth(depth float64)
func (*WebGLRenderingContext) CompileShader ¶
func (c *WebGLRenderingContext) CompileShader(shader *WebGLShader)
func (*WebGLRenderingContext) CreateBuffer ¶
func (c *WebGLRenderingContext) CreateBuffer() *WebGLBuffer
func (*WebGLRenderingContext) CreateProgram ¶
func (c *WebGLRenderingContext) CreateProgram() *WebGLProgram
func (*WebGLRenderingContext) CreateShader ¶
func (c *WebGLRenderingContext) CreateShader(kind uint32) *WebGLShader
func (*WebGLRenderingContext) CreateTexture ¶
func (c *WebGLRenderingContext) CreateTexture() *WebGLTexture
func (*WebGLRenderingContext) CullFace ¶
func (c *WebGLRenderingContext) CullFace(mode uint32)
func (*WebGLRenderingContext) DepthFunc ¶
func (c *WebGLRenderingContext) DepthFunc(xfnc uint32)
func (*WebGLRenderingContext) DisableVertexAttribArray ¶
func (c *WebGLRenderingContext) DisableVertexAttribArray(index int)
func (*WebGLRenderingContext) DrawElements ¶
func (c *WebGLRenderingContext) DrawElements(mode uint32, count int32, xtype uint32, offset int)
func (*WebGLRenderingContext) Enable ¶
func (c *WebGLRenderingContext) Enable(cap uint32)
func (*WebGLRenderingContext) EnableVertexAttribArray ¶
func (c *WebGLRenderingContext) EnableVertexAttribArray(index int)
func (*WebGLRenderingContext) FrontFace ¶
func (c *WebGLRenderingContext) FrontFace(mode uint32)
func (*WebGLRenderingContext) GetCanvasElement ¶
func (c *WebGLRenderingContext) GetCanvasElement() *HTMLCanvasElement
func (*WebGLRenderingContext) GetProgramInfoLog ¶
func (c *WebGLRenderingContext) GetProgramInfoLog(program *WebGLProgram) string
func (*WebGLRenderingContext) GetShaderInfoLog ¶
func (c *WebGLRenderingContext) GetShaderInfoLog(shader *WebGLShader) string
func (*WebGLRenderingContext) GetShaderParameter ¶
func (c *WebGLRenderingContext) GetShaderParameter(shader *WebGLShader, pname uint32) js.Value
func (*WebGLRenderingContext) GetUniformLocation ¶
func (c *WebGLRenderingContext) GetUniformLocation(program *WebGLProgram, name string) js.Value
func (*WebGLRenderingContext) LinkProgram ¶
func (c *WebGLRenderingContext) LinkProgram(program *WebGLProgram)
func (*WebGLRenderingContext) ShaderSource ¶
func (c *WebGLRenderingContext) ShaderSource(shader *WebGLShader, source string)
func (*WebGLRenderingContext) TexImage2D ¶
func (*WebGLRenderingContext) TexParameteri ¶
func (c *WebGLRenderingContext) TexParameteri(target uint32, pname uint32, param int32)
func (*WebGLRenderingContext) Uniform1f ¶
func (c *WebGLRenderingContext) Uniform1f(location js.Value, value float32)
func (*WebGLRenderingContext) Uniform1fv ¶
func (c *WebGLRenderingContext) Uniform1fv(location js.Value, value []float32)
func (*WebGLRenderingContext) Uniform1i ¶
func (c *WebGLRenderingContext) Uniform1i(location js.Value, value int32)
func (*WebGLRenderingContext) Uniform2f ¶
func (c *WebGLRenderingContext) Uniform2f(location js.Value, v1, v2 float32)
func (*WebGLRenderingContext) Uniform3f ¶
func (c *WebGLRenderingContext) Uniform3f(location js.Value, v1, v2, v3 float32)
func (*WebGLRenderingContext) Uniform3fv ¶
func (c *WebGLRenderingContext) Uniform3fv(location js.Value, value []float32)
func (*WebGLRenderingContext) Uniform4f ¶
func (c *WebGLRenderingContext) Uniform4f(location js.Value, v1, v2, v3, v4 float32)
func (*WebGLRenderingContext) UniformMatrix4fv ¶
func (c *WebGLRenderingContext) UniformMatrix4fv(location js.Value, transpose bool, value []float32)
func (*WebGLRenderingContext) UseProgram ¶
func (c *WebGLRenderingContext) UseProgram(program *WebGLProgram)
func (*WebGLRenderingContext) VertexAttribPointer ¶
type WebGLShader ¶
type WebGLShader struct {
*Object
}
func NewWebGLShader ¶
func NewWebGLShader(value js.Value) *WebGLShader
type WebGLTexture ¶
type WebGLTexture struct {
*Object
}
func NewWebGLTexture ¶
func NewWebGLTexture(value js.Value) *WebGLTexture
type WebGLVertexArrayObject ¶
type WebGLVertexArrayObject struct {
*Object
}
func NewWebGLVertexArrayObject ¶
func NewWebGLVertexArrayObject(value js.Value) *WebGLVertexArrayObject
type WindowObject ¶
type WindowObject struct { *EventTarget // contains filtered or unexported fields }
func (*WindowObject) ClearInterval ¶
func (w *WindowObject) ClearInterval(id int)
func (*WindowObject) ClearTimeout ¶
func (w *WindowObject) ClearTimeout(id int)
func (*WindowObject) LocalStorage ¶
func (w *WindowObject) LocalStorage() *Storage
func (*WindowObject) Location ¶
func (w *WindowObject) Location() *LocationObject
func (*WindowObject) Open ¶
func (w *WindowObject) Open(url, target string)
func (*WindowObject) RequestAnimationFrame ¶
func (w *WindowObject) RequestAnimationFrame(callback JSFunction)
func (*WindowObject) SetInterval ¶
func (w *WindowObject) SetInterval(callback JSFunction, millis int) int
func (*WindowObject) SetTimeout ¶
func (w *WindowObject) SetTimeout(callback JSFunction, millis int) int
Source Files ¶
Click to show internal directories.
Click to hide internal directories.