webapi: github.com/gowebapi/webapi/css/fonts/loading Index | Files

package loading

import "github.com/gowebapi/webapi/css/fonts/loading"

Package loading is used for dynamically loading font resources.

Index

Package Files

doc.go loading.go

type FontFace Uses

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

class: FontFace

func FontFaceFromJS Uses

func FontFaceFromJS(value js.Wrapper) *FontFace

FontFaceFromJS is casting a js.Wrapper into FontFace.

func NewFontFace Uses

func NewFontFace(family string, source *Union, descriptors *FontFaceDescriptors) (_result *FontFace)

func (*FontFace) Display Uses

func (_this *FontFace) Display() string

Display returning attribute 'display' with type string (idl: DOMString).

func (*FontFace) Family Uses

func (_this *FontFace) Family() string

Family returning attribute 'family' with type string (idl: DOMString).

func (*FontFace) FeatureSettings Uses

func (_this *FontFace) FeatureSettings() string

FeatureSettings returning attribute 'featureSettings' with type string (idl: DOMString).

func (*FontFace) JSValue Uses

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

func (*FontFace) Load Uses

func (_this *FontFace) Load() (_result *PromiseFontFace)

func (*FontFace) Loaded Uses

func (_this *FontFace) Loaded() *javascript.Promise

Loaded returning attribute 'loaded' with type javascript.Promise (idl: Promise).

func (*FontFace) SetDisplay Uses

func (_this *FontFace) SetDisplay(value string)

SetDisplay setting attribute 'display' with type string (idl: DOMString).

func (*FontFace) SetFamily Uses

func (_this *FontFace) SetFamily(value string)

SetFamily setting attribute 'family' with type string (idl: DOMString).

func (*FontFace) SetFeatureSettings Uses

func (_this *FontFace) SetFeatureSettings(value string)

SetFeatureSettings setting attribute 'featureSettings' with type string (idl: DOMString).

func (*FontFace) SetStretch Uses

func (_this *FontFace) SetStretch(value string)

SetStretch setting attribute 'stretch' with type string (idl: DOMString).

func (*FontFace) SetStyle Uses

func (_this *FontFace) SetStyle(value string)

SetStyle setting attribute 'style' with type string (idl: DOMString).

func (*FontFace) SetUnicodeRange Uses

func (_this *FontFace) SetUnicodeRange(value string)

SetUnicodeRange setting attribute 'unicodeRange' with type string (idl: DOMString).

func (*FontFace) SetVariant Uses

func (_this *FontFace) SetVariant(value string)

SetVariant setting attribute 'variant' with type string (idl: DOMString).

func (*FontFace) SetVariationSettings Uses

func (_this *FontFace) SetVariationSettings(value string)

SetVariationSettings setting attribute 'variationSettings' with type string (idl: DOMString).

func (*FontFace) SetWeight Uses

func (_this *FontFace) SetWeight(value string)

SetWeight setting attribute 'weight' with type string (idl: DOMString).

func (*FontFace) Status Uses

func (_this *FontFace) Status() FontFaceLoadStatus

Status returning attribute 'status' with type FontFaceLoadStatus (idl: FontFaceLoadStatus).

func (*FontFace) Stretch Uses

func (_this *FontFace) Stretch() string

Stretch returning attribute 'stretch' with type string (idl: DOMString).

func (*FontFace) Style Uses

func (_this *FontFace) Style() string

Style returning attribute 'style' with type string (idl: DOMString).

func (*FontFace) UnicodeRange Uses

func (_this *FontFace) UnicodeRange() string

UnicodeRange returning attribute 'unicodeRange' with type string (idl: DOMString).

func (*FontFace) Variant Uses

func (_this *FontFace) Variant() string

Variant returning attribute 'variant' with type string (idl: DOMString).

func (*FontFace) VariationSettings Uses

func (_this *FontFace) VariationSettings() string

VariationSettings returning attribute 'variationSettings' with type string (idl: DOMString).

func (*FontFace) Weight Uses

func (_this *FontFace) Weight() string

Weight returning attribute 'weight' with type string (idl: DOMString).

type FontFaceDescriptors Uses

type FontFaceDescriptors struct {
    Style             string
    Weight            string
    Stretch           string
    UnicodeRange      string
    Variant           string
    FeatureSettings   string
    VariationSettings string
    Display           string
}

dictionary: FontFaceDescriptors

func FontFaceDescriptorsFromJS Uses

func FontFaceDescriptorsFromJS(value js.Wrapper) *FontFaceDescriptors

FontFaceDescriptorsFromJS is allocating a new FontFaceDescriptors object and copy all values from input javascript object

func (*FontFaceDescriptors) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type FontFaceLoadStatus Uses

type FontFaceLoadStatus int

enum: FontFaceLoadStatus

const (
    UnloadedFontFaceLoadStatus FontFaceLoadStatus = iota
    LoadingFontFaceLoadStatus
    LoadedFontFaceLoadStatus
    ErrorFontFaceLoadStatus
)

func FontFaceLoadStatusFromJS Uses

func FontFaceLoadStatusFromJS(value js.Value) FontFaceLoadStatus

FontFaceLoadStatusFromJS is converting a javascript value into a FontFaceLoadStatus enum value.

func (*FontFaceLoadStatus) JSValue Uses

func (this *FontFaceLoadStatus) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (FontFaceLoadStatus) Value Uses

func (this FontFaceLoadStatus) Value() string

Value is converting this into javascript defined string value

type FontFaceSet Uses

type FontFaceSet struct {
    domcore.EventTarget
}

class: FontFaceSet

func FontFaceSetFromJS Uses

func FontFaceSetFromJS(value js.Wrapper) *FontFaceSet

FontFaceSetFromJS is casting a js.Wrapper into FontFaceSet.

func NewFontFaceSet Uses

func NewFontFaceSet(initialFaces []*FontFace) (_result *FontFaceSet)

func (*FontFaceSet) Add Uses

func (_this *FontFaceSet) Add(font *FontFace) (_result *FontFaceSet)

func (*FontFaceSet) AddEventLoading Uses

func (_this *FontFaceSet) AddEventLoading(listener func(event *FontFaceSetLoadEvent, currentTarget *FontFaceSet)) js.Func

AddLoading is adding doing AddEventListener for 'Loading' on target. This method is returning allocated javascript function that need to be released.

func (*FontFaceSet) AddEventLoadingDone Uses

func (_this *FontFaceSet) AddEventLoadingDone(listener func(event *FontFaceSetLoadEvent, currentTarget *FontFaceSet)) js.Func

AddLoadingDone is adding doing AddEventListener for 'LoadingDone' on target. This method is returning allocated javascript function that need to be released.

func (*FontFaceSet) AddEventLoadingError Uses

func (_this *FontFaceSet) AddEventLoadingError(listener func(event *FontFaceSetLoadEvent, currentTarget *FontFaceSet)) js.Func

AddLoadingError is adding doing AddEventListener for 'LoadingError' on target. This method is returning allocated javascript function that need to be released.

func (*FontFaceSet) Check Uses

func (_this *FontFaceSet) Check(font string, text *string) (_result bool)

func (*FontFaceSet) Clear Uses

func (_this *FontFaceSet) Clear()

func (*FontFaceSet) Delete Uses

func (_this *FontFaceSet) Delete(font *FontFace) (_result bool)

func (*FontFaceSet) Entries Uses

func (_this *FontFaceSet) Entries() (_result *FontFaceSetEntryIterator)

func (*FontFaceSet) ForEach Uses

func (_this *FontFaceSet) ForEach(callback *FontFaceSetForEach, optionalThisForCallbackArgument interface{})

func (*FontFaceSet) Get Uses

func (_this *FontFaceSet) Get(key *FontFace) (_result *FontFace)

func (*FontFaceSet) Has Uses

func (_this *FontFaceSet) Has(key *FontFace) (_result bool)

func (*FontFaceSet) Keys Uses

func (_this *FontFaceSet) Keys() (_result *FontFaceSetKeyIterator)

func (*FontFaceSet) Load Uses

func (_this *FontFaceSet) Load(font string, text *string) (_result *PromiseSequenceFontFace)

func (*FontFaceSet) OnLoading Uses

func (_this *FontFaceSet) OnLoading() domcore.EventHandlerFunc

OnLoading returning attribute 'onloading' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*FontFaceSet) OnLoadingDone Uses

func (_this *FontFaceSet) OnLoadingDone() domcore.EventHandlerFunc

OnLoadingDone returning attribute 'onloadingdone' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*FontFaceSet) OnLoadingError Uses

func (_this *FontFaceSet) OnLoadingError() domcore.EventHandlerFunc

OnLoadingError returning attribute 'onloadingerror' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*FontFaceSet) Ready Uses

func (_this *FontFaceSet) Ready() *javascript.Promise

Ready returning attribute 'ready' with type javascript.Promise (idl: Promise).

func (*FontFaceSet) SetOnLoading Uses

func (_this *FontFaceSet) SetOnLoading(listener func(event *FontFaceSetLoadEvent, currentTarget *FontFaceSet)) js.Func

SetOnLoading is assigning a function to 'onloading'. This This method is returning allocated javascript function that need to be released.

func (*FontFaceSet) SetOnLoadingDone Uses

func (_this *FontFaceSet) SetOnLoadingDone(listener func(event *FontFaceSetLoadEvent, currentTarget *FontFaceSet)) js.Func

SetOnLoadingDone is assigning a function to 'onloadingdone'. This This method is returning allocated javascript function that need to be released.

func (*FontFaceSet) SetOnLoadingError Uses

func (_this *FontFaceSet) SetOnLoadingError(listener func(event *FontFaceSetLoadEvent, currentTarget *FontFaceSet)) js.Func

SetOnLoadingError is assigning a function to 'onloadingerror'. This This method is returning allocated javascript function that need to be released.

func (*FontFaceSet) Size Uses

func (_this *FontFaceSet) Size() int

Size returning attribute 'size' with type int (idl: long).

func (*FontFaceSet) Status Uses

func (_this *FontFaceSet) Status() FontFaceSetLoadStatus

Status returning attribute 'status' with type FontFaceSetLoadStatus (idl: FontFaceSetLoadStatus).

func (*FontFaceSet) Values Uses

func (_this *FontFaceSet) Values() (_result *FontFaceSetValueIterator)

type FontFaceSetEntryIterator Uses

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

class: FontFaceSetEntryIterator

func FontFaceSetEntryIteratorFromJS Uses

func FontFaceSetEntryIteratorFromJS(value js.Wrapper) *FontFaceSetEntryIterator

FontFaceSetEntryIteratorFromJS is casting a js.Wrapper into FontFaceSetEntryIterator.

func (*FontFaceSetEntryIterator) JSValue Uses

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

func (*FontFaceSetEntryIterator) Next Uses

func (_this *FontFaceSetEntryIterator) Next() (_result *FontFaceSetEntryIteratorValue)

type FontFaceSetEntryIteratorValue Uses

type FontFaceSetEntryIteratorValue struct {
    Value []*FontFace
    Done  bool
}

dictionary: FontFaceSetEntryIteratorValue

func FontFaceSetEntryIteratorValueFromJS Uses

func FontFaceSetEntryIteratorValueFromJS(value js.Wrapper) *FontFaceSetEntryIteratorValue

FontFaceSetEntryIteratorValueFromJS is allocating a new FontFaceSetEntryIteratorValue object and copy all values from input javascript object

func (*FontFaceSetEntryIteratorValue) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type FontFaceSetForEach Uses

type FontFaceSetForEach js.Func

FontFaceSetForEach is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func FontFaceSetForEachToJS Uses

func FontFaceSetForEachToJS(callback FontFaceSetForEachFunc) *FontFaceSetForEach

type FontFaceSetForEachFunc Uses

type FontFaceSetForEachFunc func(currentValue *FontFace, currentValueAgain *FontFace, listObj *FontFaceSet)

callback: FontFaceSetForEach

func FontFaceSetForEachFromJS Uses

func FontFaceSetForEachFromJS(_value js.Value) FontFaceSetForEachFunc

type FontFaceSetKeyIterator Uses

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

class: FontFaceSetKeyIterator

func FontFaceSetKeyIteratorFromJS Uses

func FontFaceSetKeyIteratorFromJS(value js.Wrapper) *FontFaceSetKeyIterator

FontFaceSetKeyIteratorFromJS is casting a js.Wrapper into FontFaceSetKeyIterator.

func (*FontFaceSetKeyIterator) JSValue Uses

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

func (*FontFaceSetKeyIterator) Next Uses

func (_this *FontFaceSetKeyIterator) Next() (_result *FontFaceSetKeyIteratorValue)

type FontFaceSetKeyIteratorValue Uses

type FontFaceSetKeyIteratorValue struct {
    Value *FontFace
    Done  bool
}

dictionary: FontFaceSetKeyIteratorValue

func FontFaceSetKeyIteratorValueFromJS Uses

func FontFaceSetKeyIteratorValueFromJS(value js.Wrapper) *FontFaceSetKeyIteratorValue

FontFaceSetKeyIteratorValueFromJS is allocating a new FontFaceSetKeyIteratorValue object and copy all values from input javascript object

func (*FontFaceSetKeyIteratorValue) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type FontFaceSetLoadEvent Uses

type FontFaceSetLoadEvent struct {
    domcore.Event
}

class: FontFaceSetLoadEvent

func FontFaceSetLoadEventFromJS Uses

func FontFaceSetLoadEventFromJS(value js.Wrapper) *FontFaceSetLoadEvent

FontFaceSetLoadEventFromJS is casting a js.Wrapper into FontFaceSetLoadEvent.

func NewFontFaceSetLoadEvent Uses

func NewFontFaceSetLoadEvent(_type string, eventInitDict *FontFaceSetLoadEventInit) (_result *FontFaceSetLoadEvent)

func (*FontFaceSetLoadEvent) Fontfaces Uses

func (_this *FontFaceSetLoadEvent) Fontfaces() *javascript.FrozenArray

Fontfaces returning attribute 'fontfaces' with type javascript.FrozenArray (idl: FrozenArray).

type FontFaceSetLoadEventInit Uses

type FontFaceSetLoadEventInit struct {
    Bubbles    bool
    Cancelable bool
    Composed   bool
    Fontfaces  []*FontFace
}

dictionary: FontFaceSetLoadEventInit

func FontFaceSetLoadEventInitFromJS Uses

func FontFaceSetLoadEventInitFromJS(value js.Wrapper) *FontFaceSetLoadEventInit

FontFaceSetLoadEventInitFromJS is allocating a new FontFaceSetLoadEventInit object and copy all values from input javascript object

func (*FontFaceSetLoadEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type FontFaceSetLoadStatus Uses

type FontFaceSetLoadStatus int

enum: FontFaceSetLoadStatus

const (
    LoadingFontFaceSetLoadStatus FontFaceSetLoadStatus = iota
    LoadedFontFaceSetLoadStatus
)

func FontFaceSetLoadStatusFromJS Uses

func FontFaceSetLoadStatusFromJS(value js.Value) FontFaceSetLoadStatus

FontFaceSetLoadStatusFromJS is converting a javascript value into a FontFaceSetLoadStatus enum value.

func (*FontFaceSetLoadStatus) JSValue Uses

func (this *FontFaceSetLoadStatus) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (FontFaceSetLoadStatus) Value Uses

func (this FontFaceSetLoadStatus) Value() string

Value is converting this into javascript defined string value

type FontFaceSetValueIterator Uses

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

class: FontFaceSetValueIterator

func FontFaceSetValueIteratorFromJS Uses

func FontFaceSetValueIteratorFromJS(value js.Wrapper) *FontFaceSetValueIterator

FontFaceSetValueIteratorFromJS is casting a js.Wrapper into FontFaceSetValueIterator.

func (*FontFaceSetValueIterator) JSValue Uses

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

func (*FontFaceSetValueIterator) Next Uses

func (_this *FontFaceSetValueIterator) Next() (_result *FontFaceSetValueIteratorValue)

type FontFaceSetValueIteratorValue Uses

type FontFaceSetValueIteratorValue struct {
    Value *FontFace
    Done  bool
}

dictionary: FontFaceSetValueIteratorValue

func FontFaceSetValueIteratorValueFromJS Uses

func FontFaceSetValueIteratorValueFromJS(value js.Wrapper) *FontFaceSetValueIteratorValue

FontFaceSetValueIteratorValueFromJS is allocating a new FontFaceSetValueIteratorValue object and copy all values from input javascript object

func (*FontFaceSetValueIteratorValue) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type FontFaceSource Uses

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

class: FontFaceSource

func FontFaceSourceFromJS Uses

func FontFaceSourceFromJS(value js.Wrapper) *FontFaceSource

FontFaceSourceFromJS is casting a js.Wrapper into FontFaceSource.

func (*FontFaceSource) Fonts Uses

func (_this *FontFaceSource) Fonts() *FontFaceSet

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

func (*FontFaceSource) JSValue Uses

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

type PromiseFontFace Uses

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

class: Promise

func PromiseFontFaceFromJS Uses

func PromiseFontFaceFromJS(value js.Wrapper) *PromiseFontFace

PromiseFontFaceFromJS is casting a js.Wrapper into PromiseFontFace.

func (*PromiseFontFace) Catch Uses

func (_this *PromiseFontFace) Catch(onRejected *PromiseFontFaceOnRejected) (_result *PromiseFontFace)

func (*PromiseFontFace) Finally Uses

func (_this *PromiseFontFace) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseFontFace)

func (*PromiseFontFace) JSValue Uses

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

func (*PromiseFontFace) Then Uses

func (_this *PromiseFontFace) Then(onFulfilled *PromiseFontFaceOnFulfilled, onRejected *PromiseFontFaceOnRejected) (_result *PromiseFontFace)

type PromiseFontFaceOnFulfilled Uses

type PromiseFontFaceOnFulfilled js.Func

PromiseFontFaceOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseFontFaceOnFulfilledToJS Uses

func PromiseFontFaceOnFulfilledToJS(callback PromiseFontFaceOnFulfilledFunc) *PromiseFontFaceOnFulfilled

type PromiseFontFaceOnFulfilledFunc Uses

type PromiseFontFaceOnFulfilledFunc func(value *FontFace)

callback: PromiseTemplateOnFulfilled

func PromiseFontFaceOnFulfilledFromJS Uses

func PromiseFontFaceOnFulfilledFromJS(_value js.Value) PromiseFontFaceOnFulfilledFunc

type PromiseFontFaceOnRejected Uses

type PromiseFontFaceOnRejected js.Func

PromiseFontFaceOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseFontFaceOnRejectedToJS Uses

func PromiseFontFaceOnRejectedToJS(callback PromiseFontFaceOnRejectedFunc) *PromiseFontFaceOnRejected

type PromiseFontFaceOnRejectedFunc Uses

type PromiseFontFaceOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseFontFaceOnRejectedFromJS Uses

func PromiseFontFaceOnRejectedFromJS(_value js.Value) PromiseFontFaceOnRejectedFunc

type PromiseSequenceFontFace Uses

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

class: Promise

func PromiseSequenceFontFaceFromJS Uses

func PromiseSequenceFontFaceFromJS(value js.Wrapper) *PromiseSequenceFontFace

PromiseSequenceFontFaceFromJS is casting a js.Wrapper into PromiseSequenceFontFace.

func (*PromiseSequenceFontFace) Catch Uses

func (_this *PromiseSequenceFontFace) Catch(onRejected *PromiseSequenceFontFaceOnRejected) (_result *PromiseSequenceFontFace)

func (*PromiseSequenceFontFace) Finally Uses

func (_this *PromiseSequenceFontFace) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseSequenceFontFace)

func (*PromiseSequenceFontFace) JSValue Uses

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

func (*PromiseSequenceFontFace) Then Uses

func (_this *PromiseSequenceFontFace) Then(onFulfilled *PromiseSequenceFontFaceOnFulfilled, onRejected *PromiseSequenceFontFaceOnRejected) (_result *PromiseSequenceFontFace)

type PromiseSequenceFontFaceOnFulfilled Uses

type PromiseSequenceFontFaceOnFulfilled js.Func

PromiseSequenceFontFaceOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseSequenceFontFaceOnFulfilledToJS Uses

func PromiseSequenceFontFaceOnFulfilledToJS(callback PromiseSequenceFontFaceOnFulfilledFunc) *PromiseSequenceFontFaceOnFulfilled

type PromiseSequenceFontFaceOnFulfilledFunc Uses

type PromiseSequenceFontFaceOnFulfilledFunc func(value []*FontFace)

callback: PromiseTemplateOnFulfilled

func PromiseSequenceFontFaceOnFulfilledFromJS Uses

func PromiseSequenceFontFaceOnFulfilledFromJS(_value js.Value) PromiseSequenceFontFaceOnFulfilledFunc

type PromiseSequenceFontFaceOnRejected Uses

type PromiseSequenceFontFaceOnRejected js.Func

PromiseSequenceFontFaceOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseSequenceFontFaceOnRejectedToJS Uses

func PromiseSequenceFontFaceOnRejectedToJS(callback PromiseSequenceFontFaceOnRejectedFunc) *PromiseSequenceFontFaceOnRejected

type PromiseSequenceFontFaceOnRejectedFunc Uses

type PromiseSequenceFontFaceOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseSequenceFontFaceOnRejectedFromJS Uses

func PromiseSequenceFontFaceOnRejectedFromJS(_value js.Value) PromiseSequenceFontFaceOnRejectedFunc

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 loading imports 3 packages (graph). Updated 2019-09-18. Refresh now. Tools for package owners.