webapi: github.com/gowebapi/webapi/graphics/fontmetrics Index | Files

package fontmetrics

import "github.com/gowebapi/webapi/graphics/fontmetrics"

Package fontmetrics provide basic font metrics for both in-document and out-of-document content.

Index

Package Files

doc.go fontmetrics.go

type Baseline Uses

type Baseline struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Baseline

func BaselineFromJS Uses

func BaselineFromJS(value js.Wrapper) *Baseline

BaselineFromJS is casting a js.Wrapper into Baseline.

func (*Baseline) JSValue Uses

func (_this *Baseline) JSValue() js.Value

func (*Baseline) Name Uses

func (_this *Baseline) Name() string

Name returning attribute 'name' with type string (idl: DOMString).

func (*Baseline) Value Uses

func (_this *Baseline) Value() float64

Value returning attribute 'value' with type float64 (idl: double).

type Font Uses

type Font struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Font

func FontFromJS Uses

func FontFromJS(value js.Wrapper) *Font

FontFromJS is casting a js.Wrapper into Font.

func (*Font) GlyphsRendered Uses

func (_this *Font) GlyphsRendered() uint

GlyphsRendered returning attribute 'glyphsRendered' with type uint (idl: unsigned long).

func (*Font) JSValue Uses

func (_this *Font) JSValue() js.Value

func (*Font) Name Uses

func (_this *Font) Name() string

Name returning attribute 'name' with type string (idl: DOMString).

type FontMetrics Uses

type FontMetrics struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: FontMetrics

func FontMetricsFromJS Uses

func FontMetricsFromJS(value js.Wrapper) *FontMetrics

FontMetricsFromJS is casting a js.Wrapper into FontMetrics.

func (*FontMetrics) Advances Uses

func (_this *FontMetrics) Advances() *javascript.FrozenArray

Advances returning attribute 'advances' with type javascript.FrozenArray (idl: FrozenArray).

func (*FontMetrics) Baselines Uses

func (_this *FontMetrics) Baselines() *javascript.FrozenArray

Baselines returning attribute 'baselines' with type javascript.FrozenArray (idl: FrozenArray).

func (*FontMetrics) BoundingBoxAscent Uses

func (_this *FontMetrics) BoundingBoxAscent() float64

BoundingBoxAscent returning attribute 'boundingBoxAscent' with type float64 (idl: double).

func (*FontMetrics) BoundingBoxDescent Uses

func (_this *FontMetrics) BoundingBoxDescent() float64

BoundingBoxDescent returning attribute 'boundingBoxDescent' with type float64 (idl: double).

func (*FontMetrics) BoundingBoxLeft Uses

func (_this *FontMetrics) BoundingBoxLeft() float64

BoundingBoxLeft returning attribute 'boundingBoxLeft' with type float64 (idl: double).

func (*FontMetrics) BoundingBoxRight Uses

func (_this *FontMetrics) BoundingBoxRight() float64

BoundingBoxRight returning attribute 'boundingBoxRight' with type float64 (idl: double).

func (*FontMetrics) DominantBaseline Uses

func (_this *FontMetrics) DominantBaseline() *Baseline

DominantBaseline returning attribute 'dominantBaseline' with type Baseline (idl: Baseline).

func (*FontMetrics) EmHeightAscent Uses

func (_this *FontMetrics) EmHeightAscent() float64

EmHeightAscent returning attribute 'emHeightAscent' with type float64 (idl: double).

func (*FontMetrics) EmHeightDescent Uses

func (_this *FontMetrics) EmHeightDescent() float64

EmHeightDescent returning attribute 'emHeightDescent' with type float64 (idl: double).

func (*FontMetrics) FontBoundingBoxAscent Uses

func (_this *FontMetrics) FontBoundingBoxAscent() float64

FontBoundingBoxAscent returning attribute 'fontBoundingBoxAscent' with type float64 (idl: double).

func (*FontMetrics) FontBoundingBoxDescent Uses

func (_this *FontMetrics) FontBoundingBoxDescent() float64

FontBoundingBoxDescent returning attribute 'fontBoundingBoxDescent' with type float64 (idl: double).

func (*FontMetrics) Fonts Uses

func (_this *FontMetrics) Fonts() *javascript.FrozenArray

Fonts returning attribute 'fonts' with type javascript.FrozenArray (idl: FrozenArray).

func (*FontMetrics) Height Uses

func (_this *FontMetrics) Height() float64

Height returning attribute 'height' with type float64 (idl: double).

func (*FontMetrics) JSValue Uses

func (_this *FontMetrics) JSValue() js.Value

func (*FontMetrics) Width Uses

func (_this *FontMetrics) Width() float64

Width returning attribute 'width' with type float64 (idl: double).

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Package fontmetrics imports 2 packages (graph) and is imported by 1 packages. Updated 2019-09-17. Refresh now. Tools for package owners.