loading

package
v0.0.0-...-41cedfc Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package loading is used for dynamically loading font resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FontFace

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

class: FontFace

func FontFaceFromJS

func FontFaceFromJS(value js.Value) *FontFace

FontFaceFromJS is casting a js.Value into FontFace.

func FontFaceFromWrapper

func FontFaceFromWrapper(input core.Wrapper) *FontFace

FontFaceFromJS is casting from something that holds a js.Value into FontFace.

func NewFontFace

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

func (*FontFace) Display

func (_this *FontFace) Display() string

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

func (*FontFace) Family

func (_this *FontFace) Family() string

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

func (*FontFace) FeatureSettings

func (_this *FontFace) FeatureSettings() string

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

func (*FontFace) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*FontFace) Load

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

func (*FontFace) Loaded

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

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

func (*FontFace) SetDisplay

func (_this *FontFace) SetDisplay(value string)

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

func (*FontFace) SetFamily

func (_this *FontFace) SetFamily(value string)

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

func (*FontFace) SetFeatureSettings

func (_this *FontFace) SetFeatureSettings(value string)

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

func (*FontFace) SetStretch

func (_this *FontFace) SetStretch(value string)

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

func (*FontFace) SetStyle

func (_this *FontFace) SetStyle(value string)

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

func (*FontFace) SetUnicodeRange

func (_this *FontFace) SetUnicodeRange(value string)

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

func (*FontFace) SetVariant

func (_this *FontFace) SetVariant(value string)

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

func (*FontFace) SetVariationSettings

func (_this *FontFace) SetVariationSettings(value string)

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

func (*FontFace) SetWeight

func (_this *FontFace) SetWeight(value string)

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

func (*FontFace) Status

func (_this *FontFace) Status() FontFaceLoadStatus

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

func (*FontFace) Stretch

func (_this *FontFace) Stretch() string

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

func (*FontFace) Style

func (_this *FontFace) Style() string

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

func (*FontFace) UnicodeRange

func (_this *FontFace) UnicodeRange() string

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

func (*FontFace) Variant

func (_this *FontFace) Variant() string

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

func (*FontFace) VariationSettings

func (_this *FontFace) VariationSettings() string

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

func (*FontFace) Weight

func (_this *FontFace) Weight() string

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

type FontFaceDescriptors

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

dictionary: FontFaceDescriptors

func FontFaceDescriptorsFromJS

func FontFaceDescriptorsFromJS(value js.Value) *FontFaceDescriptors

FontFaceDescriptorsFromJS is allocating a new FontFaceDescriptors object and copy all values in the value javascript object.

func (*FontFaceDescriptors) JSValue

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

JSValue is allocating a new javascript object and copy all values

type FontFaceLoadStatus

type FontFaceLoadStatus int

enum: FontFaceLoadStatus

const (
	UnloadedFontFaceLoadStatus FontFaceLoadStatus = iota
	LoadingFontFaceLoadStatus
	LoadedFontFaceLoadStatus
	ErrorFontFaceLoadStatus
)

func FontFaceLoadStatusFromJS

func FontFaceLoadStatusFromJS(value js.Value) FontFaceLoadStatus

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

func (*FontFaceLoadStatus) JSValue

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

JSValue is converting this enum into a javascript object

func (FontFaceLoadStatus) Value

func (this FontFaceLoadStatus) Value() string

Value is converting this into javascript defined string value

type FontFaceSet

type FontFaceSet struct {
	domcore.EventTarget
}

class: FontFaceSet

func FontFaceSetFromJS

func FontFaceSetFromJS(value js.Value) *FontFaceSet

FontFaceSetFromJS is casting a js.Value into FontFaceSet.

func FontFaceSetFromWrapper

func FontFaceSetFromWrapper(input core.Wrapper) *FontFaceSet

FontFaceSetFromJS is casting from something that holds a js.Value into FontFaceSet.

func NewFontFaceSet

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

func (*FontFaceSet) Add

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

func (*FontFaceSet) AddEventLoading

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

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

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

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

func (*FontFaceSet) Clear

func (_this *FontFaceSet) Clear()

func (*FontFaceSet) Delete

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

func (*FontFaceSet) Entries

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

func (*FontFaceSet) ForEach

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

func (*FontFaceSet) Get

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

func (*FontFaceSet) Has

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

func (*FontFaceSet) Keys

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

func (*FontFaceSet) Load

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

func (*FontFaceSet) OnLoading

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

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

func (*FontFaceSet) OnLoadingDone

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

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

func (*FontFaceSet) OnLoadingError

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

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

func (*FontFaceSet) Ready

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

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

func (*FontFaceSet) SetOnLoading

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

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

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

func (_this *FontFaceSet) Size() int

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

func (*FontFaceSet) Status

func (_this *FontFaceSet) Status() FontFaceSetLoadStatus

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

func (*FontFaceSet) Values

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

type FontFaceSetEntryIterator

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

class: FontFaceSetEntryIterator

func FontFaceSetEntryIteratorFromJS

func FontFaceSetEntryIteratorFromJS(value js.Value) *FontFaceSetEntryIterator

FontFaceSetEntryIteratorFromJS is casting a js.Value into FontFaceSetEntryIterator.

func FontFaceSetEntryIteratorFromWrapper

func FontFaceSetEntryIteratorFromWrapper(input core.Wrapper) *FontFaceSetEntryIterator

FontFaceSetEntryIteratorFromJS is casting from something that holds a js.Value into FontFaceSetEntryIterator.

func (*FontFaceSetEntryIterator) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*FontFaceSetEntryIterator) Next

type FontFaceSetEntryIteratorValue

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

dictionary: FontFaceSetEntryIteratorValue

func FontFaceSetEntryIteratorValueFromJS

func FontFaceSetEntryIteratorValueFromJS(value js.Value) *FontFaceSetEntryIteratorValue

FontFaceSetEntryIteratorValueFromJS is allocating a new FontFaceSetEntryIteratorValue object and copy all values in the value javascript object.

func (*FontFaceSetEntryIteratorValue) JSValue

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

JSValue is allocating a new javascript object and copy all values

type FontFaceSetForEach

type FontFaceSetForEach js.Func

FontFaceSetForEach is a javascript function type.

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

func FontFaceSetForEachToJS

func FontFaceSetForEachToJS(callback FontFaceSetForEachFunc) *FontFaceSetForEach

type FontFaceSetForEachFunc

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

callback: FontFaceSetForEach

func FontFaceSetForEachFromJS

func FontFaceSetForEachFromJS(_value js.Value) FontFaceSetForEachFunc

type FontFaceSetKeyIterator

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

class: FontFaceSetKeyIterator

func FontFaceSetKeyIteratorFromJS

func FontFaceSetKeyIteratorFromJS(value js.Value) *FontFaceSetKeyIterator

FontFaceSetKeyIteratorFromJS is casting a js.Value into FontFaceSetKeyIterator.

func FontFaceSetKeyIteratorFromWrapper

func FontFaceSetKeyIteratorFromWrapper(input core.Wrapper) *FontFaceSetKeyIterator

FontFaceSetKeyIteratorFromJS is casting from something that holds a js.Value into FontFaceSetKeyIterator.

func (*FontFaceSetKeyIterator) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*FontFaceSetKeyIterator) Next

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

type FontFaceSetKeyIteratorValue

type FontFaceSetKeyIteratorValue struct {
	Value *FontFace
	Done  bool
}

dictionary: FontFaceSetKeyIteratorValue

func FontFaceSetKeyIteratorValueFromJS

func FontFaceSetKeyIteratorValueFromJS(value js.Value) *FontFaceSetKeyIteratorValue

FontFaceSetKeyIteratorValueFromJS is allocating a new FontFaceSetKeyIteratorValue object and copy all values in the value javascript object.

func (*FontFaceSetKeyIteratorValue) JSValue

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

JSValue is allocating a new javascript object and copy all values

type FontFaceSetLoadEvent

type FontFaceSetLoadEvent struct {
	domcore.Event
}

class: FontFaceSetLoadEvent

func FontFaceSetLoadEventFromJS

func FontFaceSetLoadEventFromJS(value js.Value) *FontFaceSetLoadEvent

FontFaceSetLoadEventFromJS is casting a js.Value into FontFaceSetLoadEvent.

func FontFaceSetLoadEventFromWrapper

func FontFaceSetLoadEventFromWrapper(input core.Wrapper) *FontFaceSetLoadEvent

FontFaceSetLoadEventFromJS is casting from something that holds a js.Value into FontFaceSetLoadEvent.

func NewFontFaceSetLoadEvent

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

func (*FontFaceSetLoadEvent) Fontfaces

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

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

type FontFaceSetLoadEventInit

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

dictionary: FontFaceSetLoadEventInit

func FontFaceSetLoadEventInitFromJS

func FontFaceSetLoadEventInitFromJS(value js.Value) *FontFaceSetLoadEventInit

FontFaceSetLoadEventInitFromJS is allocating a new FontFaceSetLoadEventInit object and copy all values in the value javascript object.

func (*FontFaceSetLoadEventInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type FontFaceSetLoadStatus

type FontFaceSetLoadStatus int

enum: FontFaceSetLoadStatus

const (
	LoadingFontFaceSetLoadStatus FontFaceSetLoadStatus = iota
	LoadedFontFaceSetLoadStatus
)

func FontFaceSetLoadStatusFromJS

func FontFaceSetLoadStatusFromJS(value js.Value) FontFaceSetLoadStatus

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

func (*FontFaceSetLoadStatus) JSValue

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

JSValue is converting this enum into a javascript object

func (FontFaceSetLoadStatus) Value

func (this FontFaceSetLoadStatus) Value() string

Value is converting this into javascript defined string value

type FontFaceSetValueIterator

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

class: FontFaceSetValueIterator

func FontFaceSetValueIteratorFromJS

func FontFaceSetValueIteratorFromJS(value js.Value) *FontFaceSetValueIterator

FontFaceSetValueIteratorFromJS is casting a js.Value into FontFaceSetValueIterator.

func FontFaceSetValueIteratorFromWrapper

func FontFaceSetValueIteratorFromWrapper(input core.Wrapper) *FontFaceSetValueIterator

FontFaceSetValueIteratorFromJS is casting from something that holds a js.Value into FontFaceSetValueIterator.

func (*FontFaceSetValueIterator) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*FontFaceSetValueIterator) Next

type FontFaceSetValueIteratorValue

type FontFaceSetValueIteratorValue struct {
	Value *FontFace
	Done  bool
}

dictionary: FontFaceSetValueIteratorValue

func FontFaceSetValueIteratorValueFromJS

func FontFaceSetValueIteratorValueFromJS(value js.Value) *FontFaceSetValueIteratorValue

FontFaceSetValueIteratorValueFromJS is allocating a new FontFaceSetValueIteratorValue object and copy all values in the value javascript object.

func (*FontFaceSetValueIteratorValue) JSValue

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

JSValue is allocating a new javascript object and copy all values

type FontFaceSource

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

class: FontFaceSource

func FontFaceSourceFromJS

func FontFaceSourceFromJS(value js.Value) *FontFaceSource

FontFaceSourceFromJS is casting a js.Value into FontFaceSource.

func FontFaceSourceFromWrapper

func FontFaceSourceFromWrapper(input core.Wrapper) *FontFaceSource

FontFaceSourceFromJS is casting from something that holds a js.Value into FontFaceSource.

func (*FontFaceSource) Fonts

func (_this *FontFaceSource) Fonts() *FontFaceSet

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

func (*FontFaceSource) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

type PromiseFontFace

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

class: Promise

func PromiseFontFaceFromJS

func PromiseFontFaceFromJS(value js.Value) *PromiseFontFace

PromiseFontFaceFromJS is casting a js.Value into PromiseFontFace.

func PromiseFontFaceFromWrapper

func PromiseFontFaceFromWrapper(input core.Wrapper) *PromiseFontFace

PromiseFontFaceFromJS is casting from something that holds a js.Value into PromiseFontFace.

func (*PromiseFontFace) Catch

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

func (*PromiseFontFace) Finally

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

func (*PromiseFontFace) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseFontFace) Then

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

type PromiseFontFaceOnFulfilled

type PromiseFontFaceOnFulfilled js.Func

PromiseFontFaceOnFulfilled is a javascript function type.

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

type PromiseFontFaceOnFulfilledFunc

type PromiseFontFaceOnFulfilledFunc func(value *FontFace)

callback: PromiseTemplateOnFulfilled

func PromiseFontFaceOnFulfilledFromJS

func PromiseFontFaceOnFulfilledFromJS(_value js.Value) PromiseFontFaceOnFulfilledFunc

type PromiseFontFaceOnRejected

type PromiseFontFaceOnRejected js.Func

PromiseFontFaceOnRejected is a javascript function type.

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

type PromiseFontFaceOnRejectedFunc

type PromiseFontFaceOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseFontFaceOnRejectedFromJS

func PromiseFontFaceOnRejectedFromJS(_value js.Value) PromiseFontFaceOnRejectedFunc

type PromiseSequenceFontFace

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

class: Promise

func PromiseSequenceFontFaceFromJS

func PromiseSequenceFontFaceFromJS(value js.Value) *PromiseSequenceFontFace

PromiseSequenceFontFaceFromJS is casting a js.Value into PromiseSequenceFontFace.

func PromiseSequenceFontFaceFromWrapper

func PromiseSequenceFontFaceFromWrapper(input core.Wrapper) *PromiseSequenceFontFace

PromiseSequenceFontFaceFromJS is casting from something that holds a js.Value into PromiseSequenceFontFace.

func (*PromiseSequenceFontFace) Catch

func (*PromiseSequenceFontFace) Finally

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

func (*PromiseSequenceFontFace) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseSequenceFontFace) Then

type PromiseSequenceFontFaceOnFulfilled

type PromiseSequenceFontFaceOnFulfilled js.Func

PromiseSequenceFontFaceOnFulfilled is a javascript function type.

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

type PromiseSequenceFontFaceOnFulfilledFunc

type PromiseSequenceFontFaceOnFulfilledFunc func(value []*FontFace)

callback: PromiseTemplateOnFulfilled

func PromiseSequenceFontFaceOnFulfilledFromJS

func PromiseSequenceFontFaceOnFulfilledFromJS(_value js.Value) PromiseSequenceFontFaceOnFulfilledFunc

type PromiseSequenceFontFaceOnRejected

type PromiseSequenceFontFaceOnRejected js.Func

PromiseSequenceFontFaceOnRejected is a javascript function type.

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

type PromiseSequenceFontFaceOnRejectedFunc

type PromiseSequenceFontFaceOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseSequenceFontFaceOnRejectedFromJS

func PromiseSequenceFontFaceOnRejectedFromJS(_value js.Value) PromiseSequenceFontFaceOnRejectedFunc

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

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

Jump to

Keyboard shortcuts

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