Documentation ¶
Overview ¶
Package layout allowing web developers to define their own layout modes with code.
Index ¶
- type BlockFragmentationType
- type BreakToken
- type BreakTokenOptions
- type BreakType
- type ChildBreakToken
- type ChildDisplayType
- type FragmentResult
- type FragmentResultOptions
- type IntrinsicSizes
- type IntrinsicSizesResultOptions
- type LayoutChild
- func (_this *LayoutChild) IntrinsicSizes() (_result *PromiseIntrinsicSizes)
- func (_this *LayoutChild) JSValue() js.Value
- func (_this *LayoutChild) LayoutNextFragment(constraints *LayoutConstraintsOptions, breakToken *ChildBreakToken) (_result *PromiseLayoutFragment)
- func (_this *LayoutChild) StyleMap() *typedom.StylePropertyMapReadOnly
- type LayoutConstraints
- func (_this *LayoutConstraints) AvailableBlockSize() float64
- func (_this *LayoutConstraints) AvailableInlineSize() float64
- func (_this *LayoutConstraints) BlockFragmentationOffset() *float64
- func (_this *LayoutConstraints) BlockFragmentationType() BlockFragmentationType
- func (_this *LayoutConstraints) Data() js.Value
- func (_this *LayoutConstraints) FixedBlockSize() *float64
- func (_this *LayoutConstraints) FixedInlineSize() *float64
- func (_this *LayoutConstraints) JSValue() js.Value
- func (_this *LayoutConstraints) PercentageBlockSize() float64
- func (_this *LayoutConstraints) PercentageInlineSize() float64
- type LayoutConstraintsOptions
- type LayoutEdges
- func (_this *LayoutEdges) Block() float64
- func (_this *LayoutEdges) BlockEnd() float64
- func (_this *LayoutEdges) BlockStart() float64
- func (_this *LayoutEdges) Inline() float64
- func (_this *LayoutEdges) InlineEnd() float64
- func (_this *LayoutEdges) InlineStart() float64
- func (_this *LayoutEdges) JSValue() js.Value
- type LayoutFragment
- func (_this *LayoutFragment) BlockOffset() float64
- func (_this *LayoutFragment) BlockSize() float64
- func (_this *LayoutFragment) BreakToken() *ChildBreakToken
- func (_this *LayoutFragment) Data() js.Value
- func (_this *LayoutFragment) InlineOffset() float64
- func (_this *LayoutFragment) InlineSize() float64
- func (_this *LayoutFragment) JSValue() js.Value
- func (_this *LayoutFragment) SetBlockOffset(value float64)
- func (_this *LayoutFragment) SetInlineOffset(value float64)
- type LayoutOptions
- type LayoutSizingMode
- type LayoutWorkletGlobalScope
- type PromiseIntrinsicSizes
- func (_this *PromiseIntrinsicSizes) Catch(onRejected *PromiseIntrinsicSizesOnRejected) (_result *PromiseIntrinsicSizes)
- func (_this *PromiseIntrinsicSizes) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseIntrinsicSizes)
- func (_this *PromiseIntrinsicSizes) JSValue() js.Value
- func (_this *PromiseIntrinsicSizes) Then(onFulfilled *PromiseIntrinsicSizesOnFulfilled, ...) (_result *PromiseIntrinsicSizes)
- type PromiseIntrinsicSizesOnFulfilled
- type PromiseIntrinsicSizesOnFulfilledFunc
- type PromiseIntrinsicSizesOnRejected
- type PromiseIntrinsicSizesOnRejectedFunc
- type PromiseLayoutFragment
- func (_this *PromiseLayoutFragment) Catch(onRejected *PromiseLayoutFragmentOnRejected) (_result *PromiseLayoutFragment)
- func (_this *PromiseLayoutFragment) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseLayoutFragment)
- func (_this *PromiseLayoutFragment) JSValue() js.Value
- func (_this *PromiseLayoutFragment) Then(onFulfilled *PromiseLayoutFragmentOnFulfilled, ...) (_result *PromiseLayoutFragment)
- type PromiseLayoutFragmentOnFulfilled
- type PromiseLayoutFragmentOnFulfilledFunc
- type PromiseLayoutFragmentOnRejected
- type PromiseLayoutFragmentOnRejectedFunc
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockFragmentationType ¶
type BlockFragmentationType int
enum: BlockFragmentationType
const ( NoneBlockFragmentationType BlockFragmentationType = iota PageBlockFragmentationType ColumnBlockFragmentationType RegionBlockFragmentationType )
func BlockFragmentationTypeFromJS ¶
func BlockFragmentationTypeFromJS(value js.Value) BlockFragmentationType
BlockFragmentationTypeFromJS is converting a javascript value into a BlockFragmentationType enum value.
func (*BlockFragmentationType) JSValue ¶
func (this *BlockFragmentationType) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (BlockFragmentationType) Value ¶
func (this BlockFragmentationType) Value() string
Value is converting this into javascript defined string value
type BreakToken ¶
class: BreakToken
func BreakTokenFromJS ¶
func BreakTokenFromJS(value js.Value) *BreakToken
BreakTokenFromJS is casting a js.Value into BreakToken.
func BreakTokenFromWrapper ¶
func BreakTokenFromWrapper(input core.Wrapper) *BreakToken
BreakTokenFromJS is casting from something that holds a js.Value into BreakToken.
func (*BreakToken) ChildBreakTokens ¶
func (_this *BreakToken) ChildBreakTokens() *javascript.FrozenArray
ChildBreakTokens returning attribute 'childBreakTokens' with type javascript.FrozenArray (idl: FrozenArray).
func (*BreakToken) Data ¶
func (_this *BreakToken) Data() js.Value
Data returning attribute 'data' with type Any (idl: any).
func (*BreakToken) JSValue ¶
func (_this *BreakToken) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
type BreakTokenOptions ¶
type BreakTokenOptions struct { ChildBreakTokens []*ChildBreakToken Data js.Value }
dictionary: BreakTokenOptions
func BreakTokenOptionsFromJS ¶
func BreakTokenOptionsFromJS(value js.Value) *BreakTokenOptions
BreakTokenOptionsFromJS is allocating a new BreakTokenOptions object and copy all values in the value javascript object.
func (*BreakTokenOptions) JSValue ¶
func (_this *BreakTokenOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type BreakType ¶
type BreakType int
enum: BreakType
func BreakTypeFromJS ¶
BreakTypeFromJS is converting a javascript value into a BreakType enum value.
type ChildBreakToken ¶
type ChildBreakToken struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: ChildBreakToken
func ChildBreakTokenFromJS ¶
func ChildBreakTokenFromJS(value js.Value) *ChildBreakToken
ChildBreakTokenFromJS is casting a js.Value into ChildBreakToken.
func ChildBreakTokenFromWrapper ¶
func ChildBreakTokenFromWrapper(input core.Wrapper) *ChildBreakToken
ChildBreakTokenFromJS is casting from something that holds a js.Value into ChildBreakToken.
func (*ChildBreakToken) BreakType ¶
func (_this *ChildBreakToken) BreakType() BreakType
BreakType returning attribute 'breakType' with type BreakType (idl: BreakType).
func (*ChildBreakToken) Child ¶
func (_this *ChildBreakToken) Child() *LayoutChild
Child returning attribute 'child' with type LayoutChild (idl: LayoutChild).
func (*ChildBreakToken) JSValue ¶
func (_this *ChildBreakToken) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
type ChildDisplayType ¶
type ChildDisplayType int
enum: ChildDisplayType
const ( BlockChildDisplayType ChildDisplayType = iota NormalChildDisplayType )
func ChildDisplayTypeFromJS ¶
func ChildDisplayTypeFromJS(value js.Value) ChildDisplayType
ChildDisplayTypeFromJS is converting a javascript value into a ChildDisplayType enum value.
func (*ChildDisplayType) JSValue ¶
func (this *ChildDisplayType) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (ChildDisplayType) Value ¶
func (this ChildDisplayType) Value() string
Value is converting this into javascript defined string value
type FragmentResult ¶
type FragmentResult struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: FragmentResult
func FragmentResultFromJS ¶
func FragmentResultFromJS(value js.Value) *FragmentResult
FragmentResultFromJS is casting a js.Value into FragmentResult.
func FragmentResultFromWrapper ¶
func FragmentResultFromWrapper(input core.Wrapper) *FragmentResult
FragmentResultFromJS is casting from something that holds a js.Value into FragmentResult.
func NewFragmentResult ¶
func NewFragmentResult(options *FragmentResultOptions) (_result *FragmentResult)
func (*FragmentResult) BlockSize ¶
func (_this *FragmentResult) BlockSize() float64
BlockSize returning attribute 'blockSize' with type float64 (idl: double).
func (*FragmentResult) InlineSize ¶
func (_this *FragmentResult) InlineSize() float64
InlineSize returning attribute 'inlineSize' with type float64 (idl: double).
func (*FragmentResult) JSValue ¶
func (_this *FragmentResult) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
type FragmentResultOptions ¶
type FragmentResultOptions struct { InlineSize float64 BlockSize float64 AutoBlockSize float64 ChildFragments []*LayoutFragment Data js.Value BreakToken *BreakTokenOptions }
dictionary: FragmentResultOptions
func FragmentResultOptionsFromJS ¶
func FragmentResultOptionsFromJS(value js.Value) *FragmentResultOptions
FragmentResultOptionsFromJS is allocating a new FragmentResultOptions object and copy all values in the value javascript object.
func (*FragmentResultOptions) JSValue ¶
func (_this *FragmentResultOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type IntrinsicSizes ¶
type IntrinsicSizes struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: IntrinsicSizes
func IntrinsicSizesFromJS ¶
func IntrinsicSizesFromJS(value js.Value) *IntrinsicSizes
IntrinsicSizesFromJS is casting a js.Value into IntrinsicSizes.
func IntrinsicSizesFromWrapper ¶
func IntrinsicSizesFromWrapper(input core.Wrapper) *IntrinsicSizes
IntrinsicSizesFromJS is casting from something that holds a js.Value into IntrinsicSizes.
func (*IntrinsicSizes) JSValue ¶
func (_this *IntrinsicSizes) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*IntrinsicSizes) MaxContentSize ¶
func (_this *IntrinsicSizes) MaxContentSize() float64
MaxContentSize returning attribute 'maxContentSize' with type float64 (idl: double).
func (*IntrinsicSizes) MinContentSize ¶
func (_this *IntrinsicSizes) MinContentSize() float64
MinContentSize returning attribute 'minContentSize' with type float64 (idl: double).
type IntrinsicSizesResultOptions ¶
dictionary: IntrinsicSizesResultOptions
func IntrinsicSizesResultOptionsFromJS ¶
func IntrinsicSizesResultOptionsFromJS(value js.Value) *IntrinsicSizesResultOptions
IntrinsicSizesResultOptionsFromJS is allocating a new IntrinsicSizesResultOptions object and copy all values in the value javascript object.
func (*IntrinsicSizesResultOptions) JSValue ¶
func (_this *IntrinsicSizesResultOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type LayoutChild ¶
class: LayoutChild
func LayoutChildFromJS ¶
func LayoutChildFromJS(value js.Value) *LayoutChild
LayoutChildFromJS is casting a js.Value into LayoutChild.
func LayoutChildFromWrapper ¶
func LayoutChildFromWrapper(input core.Wrapper) *LayoutChild
LayoutChildFromJS is casting from something that holds a js.Value into LayoutChild.
func (*LayoutChild) IntrinsicSizes ¶
func (_this *LayoutChild) IntrinsicSizes() (_result *PromiseIntrinsicSizes)
func (*LayoutChild) JSValue ¶
func (_this *LayoutChild) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*LayoutChild) LayoutNextFragment ¶
func (_this *LayoutChild) LayoutNextFragment(constraints *LayoutConstraintsOptions, breakToken *ChildBreakToken) (_result *PromiseLayoutFragment)
func (*LayoutChild) StyleMap ¶
func (_this *LayoutChild) StyleMap() *typedom.StylePropertyMapReadOnly
StyleMap returning attribute 'styleMap' with type typedom.StylePropertyMapReadOnly (idl: StylePropertyMapReadOnly).
type LayoutConstraints ¶
type LayoutConstraints struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: LayoutConstraints
func LayoutConstraintsFromJS ¶
func LayoutConstraintsFromJS(value js.Value) *LayoutConstraints
LayoutConstraintsFromJS is casting a js.Value into LayoutConstraints.
func LayoutConstraintsFromWrapper ¶
func LayoutConstraintsFromWrapper(input core.Wrapper) *LayoutConstraints
LayoutConstraintsFromJS is casting from something that holds a js.Value into LayoutConstraints.
func (*LayoutConstraints) AvailableBlockSize ¶
func (_this *LayoutConstraints) AvailableBlockSize() float64
AvailableBlockSize returning attribute 'availableBlockSize' with type float64 (idl: double).
func (*LayoutConstraints) AvailableInlineSize ¶
func (_this *LayoutConstraints) AvailableInlineSize() float64
AvailableInlineSize returning attribute 'availableInlineSize' with type float64 (idl: double).
func (*LayoutConstraints) BlockFragmentationOffset ¶
func (_this *LayoutConstraints) BlockFragmentationOffset() *float64
BlockFragmentationOffset returning attribute 'blockFragmentationOffset' with type float64 (idl: double).
func (*LayoutConstraints) BlockFragmentationType ¶
func (_this *LayoutConstraints) BlockFragmentationType() BlockFragmentationType
BlockFragmentationType returning attribute 'blockFragmentationType' with type BlockFragmentationType (idl: BlockFragmentationType).
func (*LayoutConstraints) Data ¶
func (_this *LayoutConstraints) Data() js.Value
Data returning attribute 'data' with type Any (idl: any).
func (*LayoutConstraints) FixedBlockSize ¶
func (_this *LayoutConstraints) FixedBlockSize() *float64
FixedBlockSize returning attribute 'fixedBlockSize' with type float64 (idl: double).
func (*LayoutConstraints) FixedInlineSize ¶
func (_this *LayoutConstraints) FixedInlineSize() *float64
FixedInlineSize returning attribute 'fixedInlineSize' with type float64 (idl: double).
func (*LayoutConstraints) JSValue ¶
func (_this *LayoutConstraints) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*LayoutConstraints) PercentageBlockSize ¶
func (_this *LayoutConstraints) PercentageBlockSize() float64
PercentageBlockSize returning attribute 'percentageBlockSize' with type float64 (idl: double).
func (*LayoutConstraints) PercentageInlineSize ¶
func (_this *LayoutConstraints) PercentageInlineSize() float64
PercentageInlineSize returning attribute 'percentageInlineSize' with type float64 (idl: double).
type LayoutConstraintsOptions ¶
type LayoutConstraintsOptions struct { AvailableInlineSize float64 AvailableBlockSize float64 FixedInlineSize float64 FixedBlockSize float64 PercentageInlineSize float64 PercentageBlockSize float64 BlockFragmentationOffset float64 BlockFragmentationType BlockFragmentationType Data js.Value }
dictionary: LayoutConstraintsOptions
func LayoutConstraintsOptionsFromJS ¶
func LayoutConstraintsOptionsFromJS(value js.Value) *LayoutConstraintsOptions
LayoutConstraintsOptionsFromJS is allocating a new LayoutConstraintsOptions object and copy all values in the value javascript object.
func (*LayoutConstraintsOptions) JSValue ¶
func (_this *LayoutConstraintsOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type LayoutEdges ¶
class: LayoutEdges
func LayoutEdgesFromJS ¶
func LayoutEdgesFromJS(value js.Value) *LayoutEdges
LayoutEdgesFromJS is casting a js.Value into LayoutEdges.
func LayoutEdgesFromWrapper ¶
func LayoutEdgesFromWrapper(input core.Wrapper) *LayoutEdges
LayoutEdgesFromJS is casting from something that holds a js.Value into LayoutEdges.
func (*LayoutEdges) Block ¶
func (_this *LayoutEdges) Block() float64
Block returning attribute 'block' with type float64 (idl: double).
func (*LayoutEdges) BlockEnd ¶
func (_this *LayoutEdges) BlockEnd() float64
BlockEnd returning attribute 'blockEnd' with type float64 (idl: double).
func (*LayoutEdges) BlockStart ¶
func (_this *LayoutEdges) BlockStart() float64
BlockStart returning attribute 'blockStart' with type float64 (idl: double).
func (*LayoutEdges) Inline ¶
func (_this *LayoutEdges) Inline() float64
Inline returning attribute 'inline' with type float64 (idl: double).
func (*LayoutEdges) InlineEnd ¶
func (_this *LayoutEdges) InlineEnd() float64
InlineEnd returning attribute 'inlineEnd' with type float64 (idl: double).
func (*LayoutEdges) InlineStart ¶
func (_this *LayoutEdges) InlineStart() float64
InlineStart returning attribute 'inlineStart' with type float64 (idl: double).
func (*LayoutEdges) JSValue ¶
func (_this *LayoutEdges) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
type LayoutFragment ¶
type LayoutFragment struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: LayoutFragment
func LayoutFragmentFromJS ¶
func LayoutFragmentFromJS(value js.Value) *LayoutFragment
LayoutFragmentFromJS is casting a js.Value into LayoutFragment.
func LayoutFragmentFromWrapper ¶
func LayoutFragmentFromWrapper(input core.Wrapper) *LayoutFragment
LayoutFragmentFromJS is casting from something that holds a js.Value into LayoutFragment.
func (*LayoutFragment) BlockOffset ¶
func (_this *LayoutFragment) BlockOffset() float64
BlockOffset returning attribute 'blockOffset' with type float64 (idl: double).
func (*LayoutFragment) BlockSize ¶
func (_this *LayoutFragment) BlockSize() float64
BlockSize returning attribute 'blockSize' with type float64 (idl: double).
func (*LayoutFragment) BreakToken ¶
func (_this *LayoutFragment) BreakToken() *ChildBreakToken
BreakToken returning attribute 'breakToken' with type ChildBreakToken (idl: ChildBreakToken).
func (*LayoutFragment) Data ¶
func (_this *LayoutFragment) Data() js.Value
Data returning attribute 'data' with type Any (idl: any).
func (*LayoutFragment) InlineOffset ¶
func (_this *LayoutFragment) InlineOffset() float64
InlineOffset returning attribute 'inlineOffset' with type float64 (idl: double).
func (*LayoutFragment) InlineSize ¶
func (_this *LayoutFragment) InlineSize() float64
InlineSize returning attribute 'inlineSize' with type float64 (idl: double).
func (*LayoutFragment) JSValue ¶
func (_this *LayoutFragment) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*LayoutFragment) SetBlockOffset ¶
func (_this *LayoutFragment) SetBlockOffset(value float64)
SetBlockOffset setting attribute 'blockOffset' with type float64 (idl: double).
func (*LayoutFragment) SetInlineOffset ¶
func (_this *LayoutFragment) SetInlineOffset(value float64)
SetInlineOffset setting attribute 'inlineOffset' with type float64 (idl: double).
type LayoutOptions ¶
type LayoutOptions struct { ChildDisplay ChildDisplayType Sizing LayoutSizingMode }
dictionary: LayoutOptions
func LayoutOptionsFromJS ¶
func LayoutOptionsFromJS(value js.Value) *LayoutOptions
LayoutOptionsFromJS is allocating a new LayoutOptions object and copy all values in the value javascript object.
func (*LayoutOptions) JSValue ¶
func (_this *LayoutOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type LayoutSizingMode ¶
type LayoutSizingMode int
enum: LayoutSizingMode
const ( BlockLikeLayoutSizingMode LayoutSizingMode = iota ManualLayoutSizingMode )
func LayoutSizingModeFromJS ¶
func LayoutSizingModeFromJS(value js.Value) LayoutSizingMode
LayoutSizingModeFromJS is converting a javascript value into a LayoutSizingMode enum value.
func (*LayoutSizingMode) JSValue ¶
func (this *LayoutSizingMode) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (LayoutSizingMode) Value ¶
func (this LayoutSizingMode) Value() string
Value is converting this into javascript defined string value
type LayoutWorkletGlobalScope ¶
type LayoutWorkletGlobalScope struct {
worklets.WorkletGlobalScope
}
class: LayoutWorkletGlobalScope
func LayoutWorkletGlobalScopeFromJS ¶
func LayoutWorkletGlobalScopeFromJS(value js.Value) *LayoutWorkletGlobalScope
LayoutWorkletGlobalScopeFromJS is casting a js.Value into LayoutWorkletGlobalScope.
func LayoutWorkletGlobalScopeFromWrapper ¶
func LayoutWorkletGlobalScopeFromWrapper(input core.Wrapper) *LayoutWorkletGlobalScope
LayoutWorkletGlobalScopeFromJS is casting from something that holds a js.Value into LayoutWorkletGlobalScope.
func (*LayoutWorkletGlobalScope) RegisterLayout ¶
func (_this *LayoutWorkletGlobalScope) RegisterLayout(name string, layoutCtor *webidl.VoidFunction)
type PromiseIntrinsicSizes ¶
type PromiseIntrinsicSizes struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseIntrinsicSizesFromJS ¶
func PromiseIntrinsicSizesFromJS(value js.Value) *PromiseIntrinsicSizes
PromiseIntrinsicSizesFromJS is casting a js.Value into PromiseIntrinsicSizes.
func PromiseIntrinsicSizesFromWrapper ¶
func PromiseIntrinsicSizesFromWrapper(input core.Wrapper) *PromiseIntrinsicSizes
PromiseIntrinsicSizesFromJS is casting from something that holds a js.Value into PromiseIntrinsicSizes.
func (*PromiseIntrinsicSizes) Catch ¶
func (_this *PromiseIntrinsicSizes) Catch(onRejected *PromiseIntrinsicSizesOnRejected) (_result *PromiseIntrinsicSizes)
func (*PromiseIntrinsicSizes) Finally ¶
func (_this *PromiseIntrinsicSizes) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseIntrinsicSizes)
func (*PromiseIntrinsicSizes) JSValue ¶
func (_this *PromiseIntrinsicSizes) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PromiseIntrinsicSizes) Then ¶
func (_this *PromiseIntrinsicSizes) Then(onFulfilled *PromiseIntrinsicSizesOnFulfilled, onRejected *PromiseIntrinsicSizesOnRejected) (_result *PromiseIntrinsicSizes)
type PromiseIntrinsicSizesOnFulfilled ¶
PromiseIntrinsicSizesOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseIntrinsicSizesOnFulfilledToJS ¶
func PromiseIntrinsicSizesOnFulfilledToJS(callback PromiseIntrinsicSizesOnFulfilledFunc) *PromiseIntrinsicSizesOnFulfilled
type PromiseIntrinsicSizesOnFulfilledFunc ¶
type PromiseIntrinsicSizesOnFulfilledFunc func(value *IntrinsicSizes)
callback: PromiseTemplateOnFulfilled
func PromiseIntrinsicSizesOnFulfilledFromJS ¶
func PromiseIntrinsicSizesOnFulfilledFromJS(_value js.Value) PromiseIntrinsicSizesOnFulfilledFunc
type PromiseIntrinsicSizesOnRejected ¶
PromiseIntrinsicSizesOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseIntrinsicSizesOnRejectedToJS ¶
func PromiseIntrinsicSizesOnRejectedToJS(callback PromiseIntrinsicSizesOnRejectedFunc) *PromiseIntrinsicSizesOnRejected
type PromiseIntrinsicSizesOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseIntrinsicSizesOnRejectedFromJS ¶
func PromiseIntrinsicSizesOnRejectedFromJS(_value js.Value) PromiseIntrinsicSizesOnRejectedFunc
type PromiseLayoutFragment ¶
type PromiseLayoutFragment struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseLayoutFragmentFromJS ¶
func PromiseLayoutFragmentFromJS(value js.Value) *PromiseLayoutFragment
PromiseLayoutFragmentFromJS is casting a js.Value into PromiseLayoutFragment.
func PromiseLayoutFragmentFromWrapper ¶
func PromiseLayoutFragmentFromWrapper(input core.Wrapper) *PromiseLayoutFragment
PromiseLayoutFragmentFromJS is casting from something that holds a js.Value into PromiseLayoutFragment.
func (*PromiseLayoutFragment) Catch ¶
func (_this *PromiseLayoutFragment) Catch(onRejected *PromiseLayoutFragmentOnRejected) (_result *PromiseLayoutFragment)
func (*PromiseLayoutFragment) Finally ¶
func (_this *PromiseLayoutFragment) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseLayoutFragment)
func (*PromiseLayoutFragment) JSValue ¶
func (_this *PromiseLayoutFragment) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PromiseLayoutFragment) Then ¶
func (_this *PromiseLayoutFragment) Then(onFulfilled *PromiseLayoutFragmentOnFulfilled, onRejected *PromiseLayoutFragmentOnRejected) (_result *PromiseLayoutFragment)
type PromiseLayoutFragmentOnFulfilled ¶
PromiseLayoutFragmentOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseLayoutFragmentOnFulfilledToJS ¶
func PromiseLayoutFragmentOnFulfilledToJS(callback PromiseLayoutFragmentOnFulfilledFunc) *PromiseLayoutFragmentOnFulfilled
type PromiseLayoutFragmentOnFulfilledFunc ¶
type PromiseLayoutFragmentOnFulfilledFunc func(value *LayoutFragment)
callback: PromiseTemplateOnFulfilled
func PromiseLayoutFragmentOnFulfilledFromJS ¶
func PromiseLayoutFragmentOnFulfilledFromJS(_value js.Value) PromiseLayoutFragmentOnFulfilledFunc
type PromiseLayoutFragmentOnRejected ¶
PromiseLayoutFragmentOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseLayoutFragmentOnRejectedToJS ¶
func PromiseLayoutFragmentOnRejectedToJS(callback PromiseLayoutFragmentOnRejectedFunc) *PromiseLayoutFragmentOnRejected
type PromiseLayoutFragmentOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseLayoutFragmentOnRejectedFromJS ¶
func PromiseLayoutFragmentOnRejectedFromJS(_value js.Value) PromiseLayoutFragmentOnRejectedFunc