webapi: github.com/gowebapi/webapi/css/layout Index | Files

package layout

import "github.com/gowebapi/webapi/css/layout"

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

Index

Package Files

doc.go layout.go

type BlockFragmentationType Uses

type BlockFragmentationType int

enum: BlockFragmentationType

const (
    NoneBlockFragmentationType BlockFragmentationType = iota
    PageBlockFragmentationType
    ColumnBlockFragmentationType
    RegionBlockFragmentationType
)

func BlockFragmentationTypeFromJS Uses

func BlockFragmentationTypeFromJS(value js.Value) BlockFragmentationType

BlockFragmentationTypeFromJS is converting a javascript value into a BlockFragmentationType enum value.

func (*BlockFragmentationType) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (BlockFragmentationType) Value Uses

func (this BlockFragmentationType) Value() string

Value is converting this into javascript defined string value

type BreakToken Uses

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

class: BreakToken

func BreakTokenFromJS Uses

func BreakTokenFromJS(value js.Wrapper) *BreakToken

BreakTokenFromJS is casting a js.Wrapper into BreakToken.

func (*BreakToken) ChildBreakTokens Uses

func (_this *BreakToken) ChildBreakTokens() *javascript.FrozenArray

ChildBreakTokens returning attribute 'childBreakTokens' with type javascript.FrozenArray (idl: FrozenArray).

func (*BreakToken) Data Uses

func (_this *BreakToken) Data() js.Value

Data returning attribute 'data' with type Any (idl: any).

func (*BreakToken) JSValue Uses

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

type BreakTokenOptions Uses

type BreakTokenOptions struct {
    ChildBreakTokens []*ChildBreakToken
    Data             js.Value
}

dictionary: BreakTokenOptions

func BreakTokenOptionsFromJS Uses

func BreakTokenOptionsFromJS(value js.Wrapper) *BreakTokenOptions

BreakTokenOptionsFromJS is allocating a new BreakTokenOptions object and copy all values from input javascript object

func (*BreakTokenOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type BreakType Uses

type BreakType int

enum: BreakType

const (
    NoneBreakType BreakType = iota
    LineBreakType
    ColumnBreakType
    PageBreakType
    RegionBreakType
)

func BreakTypeFromJS Uses

func BreakTypeFromJS(value js.Value) BreakType

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

func (*BreakType) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (BreakType) Value Uses

func (this BreakType) Value() string

Value is converting this into javascript defined string value

type ChildBreakToken Uses

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

class: ChildBreakToken

func ChildBreakTokenFromJS Uses

func ChildBreakTokenFromJS(value js.Wrapper) *ChildBreakToken

ChildBreakTokenFromJS is casting a js.Wrapper into ChildBreakToken.

func (*ChildBreakToken) BreakType Uses

func (_this *ChildBreakToken) BreakType() BreakType

BreakType returning attribute 'breakType' with type BreakType (idl: BreakType).

func (*ChildBreakToken) Child Uses

func (_this *ChildBreakToken) Child() *LayoutChild

Child returning attribute 'child' with type LayoutChild (idl: LayoutChild).

func (*ChildBreakToken) JSValue Uses

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

type ChildDisplayType Uses

type ChildDisplayType int

enum: ChildDisplayType

const (
    BlockChildDisplayType ChildDisplayType = iota
    NormalChildDisplayType
)

func ChildDisplayTypeFromJS Uses

func ChildDisplayTypeFromJS(value js.Value) ChildDisplayType

ChildDisplayTypeFromJS is converting a javascript value into a ChildDisplayType enum value.

func (*ChildDisplayType) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (ChildDisplayType) Value Uses

func (this ChildDisplayType) Value() string

Value is converting this into javascript defined string value

type FragmentResult Uses

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

class: FragmentResult

func FragmentResultFromJS Uses

func FragmentResultFromJS(value js.Wrapper) *FragmentResult

FragmentResultFromJS is casting a js.Wrapper into FragmentResult.

func NewFragmentResult Uses

func NewFragmentResult(options *FragmentResultOptions) (_result *FragmentResult)

func (*FragmentResult) BlockSize Uses

func (_this *FragmentResult) BlockSize() float64

BlockSize returning attribute 'blockSize' with type float64 (idl: double).

func (*FragmentResult) InlineSize Uses

func (_this *FragmentResult) InlineSize() float64

InlineSize returning attribute 'inlineSize' with type float64 (idl: double).

func (*FragmentResult) JSValue Uses

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

type FragmentResultOptions Uses

type FragmentResultOptions struct {
    InlineSize     float64
    BlockSize      float64
    AutoBlockSize  float64
    ChildFragments []*LayoutFragment
    Data           js.Value
    BreakToken     *BreakTokenOptions
}

dictionary: FragmentResultOptions

func FragmentResultOptionsFromJS Uses

func FragmentResultOptionsFromJS(value js.Wrapper) *FragmentResultOptions

FragmentResultOptionsFromJS is allocating a new FragmentResultOptions object and copy all values from input javascript object

func (*FragmentResultOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type IntrinsicSizes Uses

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

class: IntrinsicSizes

func IntrinsicSizesFromJS Uses

func IntrinsicSizesFromJS(value js.Wrapper) *IntrinsicSizes

IntrinsicSizesFromJS is casting a js.Wrapper into IntrinsicSizes.

func (*IntrinsicSizes) JSValue Uses

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

func (*IntrinsicSizes) MaxContentSize Uses

func (_this *IntrinsicSizes) MaxContentSize() float64

MaxContentSize returning attribute 'maxContentSize' with type float64 (idl: double).

func (*IntrinsicSizes) MinContentSize Uses

func (_this *IntrinsicSizes) MinContentSize() float64

MinContentSize returning attribute 'minContentSize' with type float64 (idl: double).

type IntrinsicSizesResultOptions Uses

type IntrinsicSizesResultOptions struct {
    MaxContentSize float64
    MinContentSize float64
}

dictionary: IntrinsicSizesResultOptions

func IntrinsicSizesResultOptionsFromJS Uses

func IntrinsicSizesResultOptionsFromJS(value js.Wrapper) *IntrinsicSizesResultOptions

IntrinsicSizesResultOptionsFromJS is allocating a new IntrinsicSizesResultOptions object and copy all values from input javascript object

func (*IntrinsicSizesResultOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type LayoutChild Uses

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

class: LayoutChild

func LayoutChildFromJS Uses

func LayoutChildFromJS(value js.Wrapper) *LayoutChild

LayoutChildFromJS is casting a js.Wrapper into LayoutChild.

func (*LayoutChild) IntrinsicSizes Uses

func (_this *LayoutChild) IntrinsicSizes() (_result *PromiseIntrinsicSizes)

func (*LayoutChild) JSValue Uses

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

func (*LayoutChild) LayoutNextFragment Uses

func (_this *LayoutChild) LayoutNextFragment(constraints *LayoutConstraintsOptions, breakToken *ChildBreakToken) (_result *PromiseLayoutFragment)

func (*LayoutChild) StyleMap Uses

func (_this *LayoutChild) StyleMap() *typedom.StylePropertyMapReadOnly

StyleMap returning attribute 'styleMap' with type typedom.StylePropertyMapReadOnly (idl: StylePropertyMapReadOnly).

type LayoutConstraints Uses

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

class: LayoutConstraints

func LayoutConstraintsFromJS Uses

func LayoutConstraintsFromJS(value js.Wrapper) *LayoutConstraints

LayoutConstraintsFromJS is casting a js.Wrapper into LayoutConstraints.

func (*LayoutConstraints) AvailableBlockSize Uses

func (_this *LayoutConstraints) AvailableBlockSize() float64

AvailableBlockSize returning attribute 'availableBlockSize' with type float64 (idl: double).

func (*LayoutConstraints) AvailableInlineSize Uses

func (_this *LayoutConstraints) AvailableInlineSize() float64

AvailableInlineSize returning attribute 'availableInlineSize' with type float64 (idl: double).

func (*LayoutConstraints) BlockFragmentationOffset Uses

func (_this *LayoutConstraints) BlockFragmentationOffset() *float64

BlockFragmentationOffset returning attribute 'blockFragmentationOffset' with type float64 (idl: double).

func (*LayoutConstraints) BlockFragmentationType Uses

func (_this *LayoutConstraints) BlockFragmentationType() BlockFragmentationType

BlockFragmentationType returning attribute 'blockFragmentationType' with type BlockFragmentationType (idl: BlockFragmentationType).

func (*LayoutConstraints) Data Uses

func (_this *LayoutConstraints) Data() js.Value

Data returning attribute 'data' with type Any (idl: any).

func (*LayoutConstraints) FixedBlockSize Uses

func (_this *LayoutConstraints) FixedBlockSize() *float64

FixedBlockSize returning attribute 'fixedBlockSize' with type float64 (idl: double).

func (*LayoutConstraints) FixedInlineSize Uses

func (_this *LayoutConstraints) FixedInlineSize() *float64

FixedInlineSize returning attribute 'fixedInlineSize' with type float64 (idl: double).

func (*LayoutConstraints) JSValue Uses

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

func (*LayoutConstraints) PercentageBlockSize Uses

func (_this *LayoutConstraints) PercentageBlockSize() float64

PercentageBlockSize returning attribute 'percentageBlockSize' with type float64 (idl: double).

func (*LayoutConstraints) PercentageInlineSize Uses

func (_this *LayoutConstraints) PercentageInlineSize() float64

PercentageInlineSize returning attribute 'percentageInlineSize' with type float64 (idl: double).

type LayoutConstraintsOptions Uses

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 Uses

func LayoutConstraintsOptionsFromJS(value js.Wrapper) *LayoutConstraintsOptions

LayoutConstraintsOptionsFromJS is allocating a new LayoutConstraintsOptions object and copy all values from input javascript object

func (*LayoutConstraintsOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type LayoutEdges Uses

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

class: LayoutEdges

func LayoutEdgesFromJS Uses

func LayoutEdgesFromJS(value js.Wrapper) *LayoutEdges

LayoutEdgesFromJS is casting a js.Wrapper into LayoutEdges.

func (*LayoutEdges) Block Uses

func (_this *LayoutEdges) Block() float64

Block returning attribute 'block' with type float64 (idl: double).

func (*LayoutEdges) BlockEnd Uses

func (_this *LayoutEdges) BlockEnd() float64

BlockEnd returning attribute 'blockEnd' with type float64 (idl: double).

func (*LayoutEdges) BlockStart Uses

func (_this *LayoutEdges) BlockStart() float64

BlockStart returning attribute 'blockStart' with type float64 (idl: double).

func (*LayoutEdges) Inline Uses

func (_this *LayoutEdges) Inline() float64

Inline returning attribute 'inline' with type float64 (idl: double).

func (*LayoutEdges) InlineEnd Uses

func (_this *LayoutEdges) InlineEnd() float64

InlineEnd returning attribute 'inlineEnd' with type float64 (idl: double).

func (*LayoutEdges) InlineStart Uses

func (_this *LayoutEdges) InlineStart() float64

InlineStart returning attribute 'inlineStart' with type float64 (idl: double).

func (*LayoutEdges) JSValue Uses

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

type LayoutFragment Uses

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

class: LayoutFragment

func LayoutFragmentFromJS Uses

func LayoutFragmentFromJS(value js.Wrapper) *LayoutFragment

LayoutFragmentFromJS is casting a js.Wrapper into LayoutFragment.

func (*LayoutFragment) BlockOffset Uses

func (_this *LayoutFragment) BlockOffset() float64

BlockOffset returning attribute 'blockOffset' with type float64 (idl: double).

func (*LayoutFragment) BlockSize Uses

func (_this *LayoutFragment) BlockSize() float64

BlockSize returning attribute 'blockSize' with type float64 (idl: double).

func (*LayoutFragment) BreakToken Uses

func (_this *LayoutFragment) BreakToken() *ChildBreakToken

BreakToken returning attribute 'breakToken' with type ChildBreakToken (idl: ChildBreakToken).

func (*LayoutFragment) Data Uses

func (_this *LayoutFragment) Data() js.Value

Data returning attribute 'data' with type Any (idl: any).

func (*LayoutFragment) InlineOffset Uses

func (_this *LayoutFragment) InlineOffset() float64

InlineOffset returning attribute 'inlineOffset' with type float64 (idl: double).

func (*LayoutFragment) InlineSize Uses

func (_this *LayoutFragment) InlineSize() float64

InlineSize returning attribute 'inlineSize' with type float64 (idl: double).

func (*LayoutFragment) JSValue Uses

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

func (*LayoutFragment) SetBlockOffset Uses

func (_this *LayoutFragment) SetBlockOffset(value float64)

SetBlockOffset setting attribute 'blockOffset' with type float64 (idl: double).

func (*LayoutFragment) SetInlineOffset Uses

func (_this *LayoutFragment) SetInlineOffset(value float64)

SetInlineOffset setting attribute 'inlineOffset' with type float64 (idl: double).

type LayoutOptions Uses

type LayoutOptions struct {
    ChildDisplay ChildDisplayType
    Sizing       LayoutSizingMode
}

dictionary: LayoutOptions

func LayoutOptionsFromJS Uses

func LayoutOptionsFromJS(value js.Wrapper) *LayoutOptions

LayoutOptionsFromJS is allocating a new LayoutOptions object and copy all values from input javascript object

func (*LayoutOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type LayoutSizingMode Uses

type LayoutSizingMode int

enum: LayoutSizingMode

const (
    BlockLikeLayoutSizingMode LayoutSizingMode = iota
    ManualLayoutSizingMode
)

func LayoutSizingModeFromJS Uses

func LayoutSizingModeFromJS(value js.Value) LayoutSizingMode

LayoutSizingModeFromJS is converting a javascript value into a LayoutSizingMode enum value.

func (*LayoutSizingMode) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (LayoutSizingMode) Value Uses

func (this LayoutSizingMode) Value() string

Value is converting this into javascript defined string value

type LayoutWorkletGlobalScope Uses

type LayoutWorkletGlobalScope struct {
    worklets.WorkletGlobalScope
}

class: LayoutWorkletGlobalScope

func LayoutWorkletGlobalScopeFromJS Uses

func LayoutWorkletGlobalScopeFromJS(value js.Wrapper) *LayoutWorkletGlobalScope

LayoutWorkletGlobalScopeFromJS is casting a js.Wrapper into LayoutWorkletGlobalScope.

func (*LayoutWorkletGlobalScope) RegisterLayout Uses

func (_this *LayoutWorkletGlobalScope) RegisterLayout(name string, layoutCtor *webidl.VoidFunction)

type PromiseIntrinsicSizes Uses

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

class: Promise

func PromiseIntrinsicSizesFromJS Uses

func PromiseIntrinsicSizesFromJS(value js.Wrapper) *PromiseIntrinsicSizes

PromiseIntrinsicSizesFromJS is casting a js.Wrapper into PromiseIntrinsicSizes.

func (*PromiseIntrinsicSizes) Catch Uses

func (_this *PromiseIntrinsicSizes) Catch(onRejected *PromiseIntrinsicSizesOnRejected) (_result *PromiseIntrinsicSizes)

func (*PromiseIntrinsicSizes) Finally Uses

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

func (*PromiseIntrinsicSizes) JSValue Uses

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

func (*PromiseIntrinsicSizes) Then Uses

func (_this *PromiseIntrinsicSizes) Then(onFulfilled *PromiseIntrinsicSizesOnFulfilled, onRejected *PromiseIntrinsicSizesOnRejected) (_result *PromiseIntrinsicSizes)

type PromiseIntrinsicSizesOnFulfilled Uses

type PromiseIntrinsicSizesOnFulfilled js.Func

PromiseIntrinsicSizesOnFulfilled is a javascript function type.

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

func PromiseIntrinsicSizesOnFulfilledToJS Uses

func PromiseIntrinsicSizesOnFulfilledToJS(callback PromiseIntrinsicSizesOnFulfilledFunc) *PromiseIntrinsicSizesOnFulfilled

type PromiseIntrinsicSizesOnFulfilledFunc Uses

type PromiseIntrinsicSizesOnFulfilledFunc func(value *IntrinsicSizes)

callback: PromiseTemplateOnFulfilled

func PromiseIntrinsicSizesOnFulfilledFromJS Uses

func PromiseIntrinsicSizesOnFulfilledFromJS(_value js.Value) PromiseIntrinsicSizesOnFulfilledFunc

type PromiseIntrinsicSizesOnRejected Uses

type PromiseIntrinsicSizesOnRejected js.Func

PromiseIntrinsicSizesOnRejected is a javascript function type.

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

func PromiseIntrinsicSizesOnRejectedToJS Uses

func PromiseIntrinsicSizesOnRejectedToJS(callback PromiseIntrinsicSizesOnRejectedFunc) *PromiseIntrinsicSizesOnRejected

type PromiseIntrinsicSizesOnRejectedFunc Uses

type PromiseIntrinsicSizesOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseIntrinsicSizesOnRejectedFromJS Uses

func PromiseIntrinsicSizesOnRejectedFromJS(_value js.Value) PromiseIntrinsicSizesOnRejectedFunc

type PromiseLayoutFragment Uses

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

class: Promise

func PromiseLayoutFragmentFromJS Uses

func PromiseLayoutFragmentFromJS(value js.Wrapper) *PromiseLayoutFragment

PromiseLayoutFragmentFromJS is casting a js.Wrapper into PromiseLayoutFragment.

func (*PromiseLayoutFragment) Catch Uses

func (_this *PromiseLayoutFragment) Catch(onRejected *PromiseLayoutFragmentOnRejected) (_result *PromiseLayoutFragment)

func (*PromiseLayoutFragment) Finally Uses

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

func (*PromiseLayoutFragment) JSValue Uses

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

func (*PromiseLayoutFragment) Then Uses

func (_this *PromiseLayoutFragment) Then(onFulfilled *PromiseLayoutFragmentOnFulfilled, onRejected *PromiseLayoutFragmentOnRejected) (_result *PromiseLayoutFragment)

type PromiseLayoutFragmentOnFulfilled Uses

type PromiseLayoutFragmentOnFulfilled js.Func

PromiseLayoutFragmentOnFulfilled is a javascript function type.

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

func PromiseLayoutFragmentOnFulfilledToJS Uses

func PromiseLayoutFragmentOnFulfilledToJS(callback PromiseLayoutFragmentOnFulfilledFunc) *PromiseLayoutFragmentOnFulfilled

type PromiseLayoutFragmentOnFulfilledFunc Uses

type PromiseLayoutFragmentOnFulfilledFunc func(value *LayoutFragment)

callback: PromiseTemplateOnFulfilled

func PromiseLayoutFragmentOnFulfilledFromJS Uses

func PromiseLayoutFragmentOnFulfilledFromJS(_value js.Value) PromiseLayoutFragmentOnFulfilledFunc

type PromiseLayoutFragmentOnRejected Uses

type PromiseLayoutFragmentOnRejected js.Func

PromiseLayoutFragmentOnRejected is a javascript function type.

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

func PromiseLayoutFragmentOnRejectedToJS Uses

func PromiseLayoutFragmentOnRejectedToJS(callback PromiseLayoutFragmentOnRejectedFunc) *PromiseLayoutFragmentOnRejected

type PromiseLayoutFragmentOnRejectedFunc Uses

type PromiseLayoutFragmentOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseLayoutFragmentOnRejectedFromJS Uses

func PromiseLayoutFragmentOnRejectedFromJS(_value js.Value) PromiseLayoutFragmentOnRejectedFunc

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

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

Package layout imports 5 packages (graph). Updated 2019-09-21. Refresh now. Tools for package owners.