kit

package
v0.0.0-...-ba575e6 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

type Console struct {
	Object
}

Console -

func NewConsole

func NewConsole(v js.Value) (c *Console)

NewConsole -

func (*Console) Log

func (c *Console) Log(msg string)

Log -

type Context2d

type Context2d struct {
	Object
}

Context2d -

func NewContext2d

func NewContext2d(v js.Value) (c *Context2d)

NewContext2d -

func (*Context2d) ClearRect

func (c *Context2d) ClearRect(x, y, w, h int)

ClearRect -

func (*Context2d) FillRect

func (c *Context2d) FillRect(x, y, w, h int)

FillRect -

func (*Context2d) Scale

func (c *Context2d) Scale(sw float64, sh float64)

Scale -

func (*Context2d) StrokeRect

func (c *Context2d) StrokeRect(x, y, w, h int)

StrokeRect -

type Document

type Document struct {
	Object
}

Document -

func NewDocument

func NewDocument(v js.Value) (d *Document)

NewDocument -

func (*Document) Body

func (d *Document) Body() (e *Element)

Body -

func (*Document) CreateElement

func (d *Document) CreateElement(tag string) (e *Element)

CreateElement -

func (*Document) GetElementByID

func (d *Document) GetElementByID(id string) (e *Element)

GetElementByID -

type Element

type Element struct {
	Object
}

Element -

func NewElement

func NewElement(v js.Value) (e *Element)

NewElement -

func (*Element) AppendChild

func (e *Element) AppendChild(c *Element)

AppendChild -

func (*Element) ClientHeight

func (e *Element) ClientHeight() (h int)

ClientHeight -

func (*Element) ClientWidth

func (e *Element) ClientWidth() (w int)

ClientWidth -

func (*Element) GetContext

func (e *Element) GetContext(t string) (c *Context2d)

GetContext -

func (*Element) SetInnerHTML

func (e *Element) SetInnerHTML(v string)

SetInnerHTML -

func (*Element) Style

func (e *Element) Style() (s *Style)

Style -

type Environment

type Environment struct {
	G *Global
}

Environment -

var Env *Environment

Env -

type Global

type Global struct {
	Object
}

Global -

func NewGlobal

func NewGlobal(v js.Value) (g *Global)

NewGlobal -

func (*Global) AddEventListener

func (g *Global) AddEventListener(eventType string, handler interface{})

AddEventListener -

func (*Global) Console

func (g *Global) Console() (c *Console)

Console -

func (*Global) Document

func (g *Global) Document() (d *Document)

Document -

type Object

type Object struct {
	Wrapper
	// contains filtered or unexported fields
}

Object -

func (*Object) Get

func (o *Object) Get(name string) (v js.Value)

Get -

func (*Object) Set

func (o *Object) Set(name string, v interface{})

Set -

func (*Object) Value

func (o *Object) Value() (v js.Value)

Value -

type Style

type Style struct {
	Object
}

Style -

func NewStyle

func NewStyle(v js.Value) (s *Style)

NewStyle -

type Wrapper

type Wrapper interface {
	Value() js.Value
}

Wrapper -

Jump to

Keyboard shortcuts

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