Documentation ¶
Overview ¶
Package loading is used for dynamically loading font resources.
Index ¶
- type FontFace
- func (_this *FontFace) Display() string
- func (_this *FontFace) Family() string
- func (_this *FontFace) FeatureSettings() string
- func (_this *FontFace) JSValue() js.Value
- func (_this *FontFace) Load() (_result *PromiseFontFace)
- func (_this *FontFace) Loaded() *javascript.Promise
- func (_this *FontFace) SetDisplay(value string)
- func (_this *FontFace) SetFamily(value string)
- func (_this *FontFace) SetFeatureSettings(value string)
- func (_this *FontFace) SetStretch(value string)
- func (_this *FontFace) SetStyle(value string)
- func (_this *FontFace) SetUnicodeRange(value string)
- func (_this *FontFace) SetVariant(value string)
- func (_this *FontFace) SetVariationSettings(value string)
- func (_this *FontFace) SetWeight(value string)
- func (_this *FontFace) Status() FontFaceLoadStatus
- func (_this *FontFace) Stretch() string
- func (_this *FontFace) Style() string
- func (_this *FontFace) UnicodeRange() string
- func (_this *FontFace) Variant() string
- func (_this *FontFace) VariationSettings() string
- func (_this *FontFace) Weight() string
- type FontFaceDescriptors
- type FontFaceLoadStatus
- type FontFaceSet
- func (_this *FontFaceSet) Add(font *FontFace) (_result *FontFaceSet)
- func (_this *FontFaceSet) AddEventLoading(listener func(event *FontFaceSetLoadEvent, currentTarget *FontFaceSet)) js.Func
- func (_this *FontFaceSet) AddEventLoadingDone(listener func(event *FontFaceSetLoadEvent, currentTarget *FontFaceSet)) js.Func
- func (_this *FontFaceSet) AddEventLoadingError(listener func(event *FontFaceSetLoadEvent, currentTarget *FontFaceSet)) js.Func
- func (_this *FontFaceSet) Check(font string, text *string) (_result bool)
- func (_this *FontFaceSet) Clear()
- func (_this *FontFaceSet) Delete(font *FontFace) (_result bool)
- func (_this *FontFaceSet) Entries() (_result *FontFaceSetEntryIterator)
- func (_this *FontFaceSet) ForEach(callback *FontFaceSetForEach, optionalThisForCallbackArgument interface{})
- func (_this *FontFaceSet) Get(key *FontFace) (_result *FontFace)
- func (_this *FontFaceSet) Has(key *FontFace) (_result bool)
- func (_this *FontFaceSet) Keys() (_result *FontFaceSetKeyIterator)
- func (_this *FontFaceSet) Load(font string, text *string) (_result *PromiseSequenceFontFace)
- func (_this *FontFaceSet) OnLoading() domcore.EventHandlerFunc
- func (_this *FontFaceSet) OnLoadingDone() domcore.EventHandlerFunc
- func (_this *FontFaceSet) OnLoadingError() domcore.EventHandlerFunc
- func (_this *FontFaceSet) Ready() *javascript.Promise
- func (_this *FontFaceSet) SetOnLoading(listener func(event *FontFaceSetLoadEvent, currentTarget *FontFaceSet)) js.Func
- func (_this *FontFaceSet) SetOnLoadingDone(listener func(event *FontFaceSetLoadEvent, currentTarget *FontFaceSet)) js.Func
- func (_this *FontFaceSet) SetOnLoadingError(listener func(event *FontFaceSetLoadEvent, currentTarget *FontFaceSet)) js.Func
- func (_this *FontFaceSet) Size() int
- func (_this *FontFaceSet) Status() FontFaceSetLoadStatus
- func (_this *FontFaceSet) Values() (_result *FontFaceSetValueIterator)
- type FontFaceSetEntryIterator
- type FontFaceSetEntryIteratorValue
- type FontFaceSetForEach
- type FontFaceSetForEachFunc
- type FontFaceSetKeyIterator
- type FontFaceSetKeyIteratorValue
- type FontFaceSetLoadEvent
- type FontFaceSetLoadEventInit
- type FontFaceSetLoadStatus
- type FontFaceSetValueIterator
- type FontFaceSetValueIteratorValue
- type FontFaceSource
- type PromiseFontFace
- func (_this *PromiseFontFace) Catch(onRejected *PromiseFontFaceOnRejected) (_result *PromiseFontFace)
- func (_this *PromiseFontFace) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseFontFace)
- func (_this *PromiseFontFace) JSValue() js.Value
- func (_this *PromiseFontFace) Then(onFulfilled *PromiseFontFaceOnFulfilled, onRejected *PromiseFontFaceOnRejected) (_result *PromiseFontFace)
- type PromiseFontFaceOnFulfilled
- type PromiseFontFaceOnFulfilledFunc
- type PromiseFontFaceOnRejected
- type PromiseFontFaceOnRejectedFunc
- type PromiseSequenceFontFace
- func (_this *PromiseSequenceFontFace) Catch(onRejected *PromiseSequenceFontFaceOnRejected) (_result *PromiseSequenceFontFace)
- func (_this *PromiseSequenceFontFace) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseSequenceFontFace)
- func (_this *PromiseSequenceFontFace) JSValue() js.Value
- func (_this *PromiseSequenceFontFace) Then(onFulfilled *PromiseSequenceFontFaceOnFulfilled, ...) (_result *PromiseSequenceFontFace)
- type PromiseSequenceFontFaceOnFulfilled
- type PromiseSequenceFontFaceOnFulfilledFunc
- type PromiseSequenceFontFaceOnRejected
- type PromiseSequenceFontFaceOnRejectedFunc
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FontFace ¶
class: FontFace
func FontFaceFromJS ¶
FontFaceFromJS is casting a js.Value into FontFace.
func FontFaceFromWrapper ¶
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) FeatureSettings ¶
FeatureSettings returning attribute 'featureSettings' with type string (idl: DOMString).
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 ¶
SetDisplay setting attribute 'display' with type string (idl: DOMString).
func (*FontFace) SetFamily ¶
SetFamily setting attribute 'family' with type string (idl: DOMString).
func (*FontFace) SetFeatureSettings ¶
SetFeatureSettings setting attribute 'featureSettings' with type string (idl: DOMString).
func (*FontFace) SetStretch ¶
SetStretch setting attribute 'stretch' with type string (idl: DOMString).
func (*FontFace) SetUnicodeRange ¶
SetUnicodeRange setting attribute 'unicodeRange' with type string (idl: DOMString).
func (*FontFace) SetVariant ¶
SetVariant setting attribute 'variant' with type string (idl: DOMString).
func (*FontFace) SetVariationSettings ¶
SetVariationSettings setting attribute 'variationSettings' with type string (idl: DOMString).
func (*FontFace) SetWeight ¶
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) UnicodeRange ¶
UnicodeRange returning attribute 'unicodeRange' with type string (idl: DOMString).
func (*FontFace) VariationSettings ¶
VariationSettings returning attribute 'variationSettings' 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 ¶
func (_this *FontFaceSetEntryIterator) Next() (_result *FontFaceSetEntryIteratorValue)
type FontFaceSetEntryIteratorValue ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (_this *FontFaceSetValueIterator) Next() (_result *FontFaceSetValueIteratorValue)
type FontFaceSetValueIteratorValue ¶
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 ¶
PromiseFontFaceOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseFontFaceOnFulfilledToJS ¶
func PromiseFontFaceOnFulfilledToJS(callback PromiseFontFaceOnFulfilledFunc) *PromiseFontFaceOnFulfilled
type PromiseFontFaceOnFulfilledFunc ¶
type PromiseFontFaceOnFulfilledFunc func(value *FontFace)
callback: PromiseTemplateOnFulfilled
func PromiseFontFaceOnFulfilledFromJS ¶
func PromiseFontFaceOnFulfilledFromJS(_value js.Value) PromiseFontFaceOnFulfilledFunc
type PromiseFontFaceOnRejected ¶
PromiseFontFaceOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseFontFaceOnRejectedToJS ¶
func PromiseFontFaceOnRejectedToJS(callback PromiseFontFaceOnRejectedFunc) *PromiseFontFaceOnRejected
type PromiseFontFaceOnRejectedFunc ¶
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 (_this *PromiseSequenceFontFace) Catch(onRejected *PromiseSequenceFontFaceOnRejected) (_result *PromiseSequenceFontFace)
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 ¶
func (_this *PromiseSequenceFontFace) Then(onFulfilled *PromiseSequenceFontFaceOnFulfilled, onRejected *PromiseSequenceFontFaceOnRejected) (_result *PromiseSequenceFontFace)
type PromiseSequenceFontFaceOnFulfilled ¶
PromiseSequenceFontFaceOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseSequenceFontFaceOnFulfilledToJS ¶
func PromiseSequenceFontFaceOnFulfilledToJS(callback PromiseSequenceFontFaceOnFulfilledFunc) *PromiseSequenceFontFaceOnFulfilled
type PromiseSequenceFontFaceOnFulfilledFunc ¶
type PromiseSequenceFontFaceOnFulfilledFunc func(value []*FontFace)
callback: PromiseTemplateOnFulfilled
func PromiseSequenceFontFaceOnFulfilledFromJS ¶
func PromiseSequenceFontFaceOnFulfilledFromJS(_value js.Value) PromiseSequenceFontFaceOnFulfilledFunc
type PromiseSequenceFontFaceOnRejected ¶
PromiseSequenceFontFaceOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseSequenceFontFaceOnRejectedToJS ¶
func PromiseSequenceFontFaceOnRejectedToJS(callback PromiseSequenceFontFaceOnRejectedFunc) *PromiseSequenceFontFaceOnRejected
type PromiseSequenceFontFaceOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseSequenceFontFaceOnRejectedFromJS ¶
func PromiseSequenceFontFaceOnRejectedFromJS(_value js.Value) PromiseSequenceFontFaceOnRejectedFunc