layout

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: 6 Imported by: 0

Documentation

Overview

Package layout allowing web developers to define their own layout modes with code.

Index

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

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

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

const (
	NoneBreakType BreakType = iota
	LineBreakType
	ColumnBreakType
	PageBreakType
	RegionBreakType
)

func BreakTypeFromJS

func BreakTypeFromJS(value js.Value) BreakType

BreakTypeFromJS is converting a javascript value into a BreakType enum value.

func (*BreakType) JSValue

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

JSValue is converting this enum into a javascript object

func (BreakType) Value

func (this BreakType) Value() string

Value is converting this into javascript defined string 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

type IntrinsicSizesResultOptions struct {
	MaxContentSize float64
	MinContentSize float64
}

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

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

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

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

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 (*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

type PromiseIntrinsicSizesOnFulfilled

type PromiseIntrinsicSizesOnFulfilled js.Func

PromiseIntrinsicSizesOnFulfilled is a javascript function type.

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

type PromiseIntrinsicSizesOnFulfilledFunc

type PromiseIntrinsicSizesOnFulfilledFunc func(value *IntrinsicSizes)

callback: PromiseTemplateOnFulfilled

func PromiseIntrinsicSizesOnFulfilledFromJS

func PromiseIntrinsicSizesOnFulfilledFromJS(_value js.Value) PromiseIntrinsicSizesOnFulfilledFunc

type PromiseIntrinsicSizesOnRejected

type PromiseIntrinsicSizesOnRejected js.Func

PromiseIntrinsicSizesOnRejected is a javascript function type.

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

type PromiseIntrinsicSizesOnRejectedFunc

type PromiseIntrinsicSizesOnRejectedFunc func(reason js.Value)

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 (*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

type PromiseLayoutFragmentOnFulfilled

type PromiseLayoutFragmentOnFulfilled js.Func

PromiseLayoutFragmentOnFulfilled is a javascript function type.

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

type PromiseLayoutFragmentOnFulfilledFunc

type PromiseLayoutFragmentOnFulfilledFunc func(value *LayoutFragment)

callback: PromiseTemplateOnFulfilled

func PromiseLayoutFragmentOnFulfilledFromJS

func PromiseLayoutFragmentOnFulfilledFromJS(_value js.Value) PromiseLayoutFragmentOnFulfilledFunc

type PromiseLayoutFragmentOnRejected

type PromiseLayoutFragmentOnRejected js.Func

PromiseLayoutFragmentOnRejected is a javascript function type.

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

type PromiseLayoutFragmentOnRejectedFunc

type PromiseLayoutFragmentOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseLayoutFragmentOnRejectedFromJS

func PromiseLayoutFragmentOnRejectedFromJS(_value js.Value) PromiseLayoutFragmentOnRejectedFunc

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