Documentation ¶
Index ¶
- Constants
- func RGB(r, g, b float32) color.T
- func RGBA(r, g, b, a float32) color.T
- type Absolute
- type Align
- type AlignContentProp
- type AlignItemsProp
- type Auto
- type BasisProp
- type Border
- type BorderProp
- type BorderWidget
- type ColorProp
- type Colorizable
- type Column
- type FlexDirectionProp
- type FlexGrowProp
- type FlexShrinkProp
- type FlexWidget
- type Font
- type FontColorProp
- type FontProp
- type FontWidget
- type Grow
- type HeightProp
- type Justify
- type JustifyContentProp
- type LineHeightProp
- type MarginProp
- type MaxHeightProp
- type MaxWidthProp
- type MinHeightProp
- type MinWidthProp
- type None
- func (n None) ApplyBasis(fw FlexWidget)
- func (n None) ApplyHeight(fw FlexWidget)
- func (n None) ApplyMargin(fw FlexWidget)
- func (n None) ApplyMaxHeight(fw FlexWidget)
- func (n None) ApplyMaxWidth(fw FlexWidget)
- func (n None) ApplyPadding(fw FlexWidget)
- func (n None) ApplyPosition(fw FlexWidget, edge flex.Edge)
- func (n None) ApplyWidth(fw FlexWidget)
- type PaddingProp
- type Pct
- func (p Pct) ApplyBasis(fw FlexWidget)
- func (p Pct) ApplyHeight(fw FlexWidget)
- func (p Pct) ApplyLineHeight(fw FontWidget)
- func (p Pct) ApplyMargin(fw FlexWidget)
- func (p Pct) ApplyMaxHeight(fw FlexWidget)
- func (p Pct) ApplyMaxWidth(fw FlexWidget)
- func (p Pct) ApplyMinHeight(fw FlexWidget)
- func (p Pct) ApplyMinWidth(fw FlexWidget)
- func (p Pct) ApplyPadding(fw FlexWidget)
- func (p Pct) ApplyPosition(fw FlexWidget, edge flex.Edge)
- func (p Pct) ApplyWidth(fw FlexWidget)
- type PositionProp
- type PositionValueProp
- type Px
- func (p Px) ApplyBasis(fw FlexWidget)
- func (p Px) ApplyHeight(fw FlexWidget)
- func (p Px) ApplyMargin(fw FlexWidget)
- func (p Px) ApplyMaxHeight(fw FlexWidget)
- func (p Px) ApplyMaxWidth(fw FlexWidget)
- func (p Px) ApplyMinHeight(fw FlexWidget)
- func (p Px) ApplyMinWidth(fw FlexWidget)
- func (p Px) ApplyPadding(fw FlexWidget)
- func (p Px) ApplyPosition(fw FlexWidget, edge flex.Edge)
- func (p Px) ApplyRadius(w RadiusWidget)
- func (p Px) ApplyWidth(fw FlexWidget)
- type RadiusProp
- type RadiusWidget
- type Rect
- type Relative
- type Row
- type Shrink
- type State
- type WidthProp
Constants ¶
View Source
const ( AlignStart = Align(flex.AlignFlexStart) AlignCenter = Align(flex.AlignCenter) AlignEnd = Align(flex.AlignFlexEnd) AlignStretch = Align(flex.AlignStretch) AlignSpaceAround = Align(flex.AlignSpaceAround) AlignSpaceBetween = Align(flex.AlignSpaceBetween) )
View Source
const ( JustifyStart = Justify(flex.JustifyFlexStart) JustifyCenter = Justify(flex.JustifyCenter) JustifyEnd = Justify(flex.JustifyFlexEnd) JustifySpaceAround = Justify(flex.JustifySpaceAround) JustifySpaceBetween = Justify(flex.JustifySpaceBetween) )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Absolute ¶
type Absolute struct {
Left, Right PositionValueProp
Top, Bottom PositionValueProp
}
func (Absolute) ApplyPosition ¶
func (a Absolute) ApplyPosition(fw FlexWidget)
type Align ¶
func (Align) ApplyAlignContent ¶
func (a Align) ApplyAlignContent(fw FlexWidget)
func (Align) ApplyAlignItems ¶
func (a Align) ApplyAlignItems(fw FlexWidget)
type AlignContentProp ¶
type AlignContentProp interface{ ApplyAlignContent(fw FlexWidget) }
type AlignItemsProp ¶
type AlignItemsProp interface{ ApplyAlignItems(fw FlexWidget) }
type Auto ¶
type Auto struct{}
func (Auto) ApplyHeight ¶
func (a Auto) ApplyHeight(fw FlexWidget)
func (Auto) ApplyWidth ¶
func (a Auto) ApplyWidth(fw FlexWidget)
type BasisProp ¶
type BasisProp interface{ ApplyBasis(fw FlexWidget) }
type Border ¶
func (Border) ApplyBorder ¶
func (b Border) ApplyBorder(w BorderWidget)
type BorderProp ¶
type BorderProp interface {
ApplyBorder(BorderWidget)
}
type BorderWidget ¶
type BorderWidget interface { FlexWidget SetBorderColor(color.T) }
type Colorizable ¶
type Column ¶
type Column struct{}
func (Column) ApplyFlexDirection ¶
func (c Column) ApplyFlexDirection(fw FlexWidget)
type FlexDirectionProp ¶
type FlexDirectionProp interface{ ApplyFlexDirection(fw FlexWidget) }
type FlexGrowProp ¶
type FlexGrowProp interface{ ApplyFlexGrow(fw FlexWidget) }
type FlexShrinkProp ¶
type FlexShrinkProp interface{ ApplyFlexShrink(fw FlexWidget) }
type FlexWidget ¶
type FontColorProp ¶
type FontColorProp interface{ ApplyFontColor(fw FontWidget) }
type FontProp ¶
type FontProp interface{ ApplyFont(fw FontWidget) }
type FontWidget ¶
type Grow ¶
type Grow float32
func (Grow) ApplyFlexGrow ¶
func (g Grow) ApplyFlexGrow(fw FlexWidget)
type HeightProp ¶
type HeightProp interface{ ApplyHeight(fw FlexWidget) }
type Justify ¶
func (Justify) ApplyJustifyContent ¶
func (j Justify) ApplyJustifyContent(fw FlexWidget)
type JustifyContentProp ¶
type JustifyContentProp interface{ ApplyJustifyContent(fw FlexWidget) }
type LineHeightProp ¶
type LineHeightProp interface{ ApplyLineHeight(fw FontWidget) }
type MarginProp ¶
type MarginProp interface{ ApplyMargin(fw FlexWidget) }
type MaxHeightProp ¶
type MaxHeightProp interface{ ApplyMaxHeight(fw FlexWidget) }
type MaxWidthProp ¶
type MaxWidthProp interface{ ApplyMaxWidth(fw FlexWidget) }
type MinHeightProp ¶
type MinHeightProp interface{ ApplyMinHeight(fw FlexWidget) }
type MinWidthProp ¶
type MinWidthProp interface{ ApplyMinWidth(fw FlexWidget) }
type None ¶
type None struct{}
None implements all Prop interfaces but does nothing It's a cool idea but is it worth setting it everywhere?
func (None) ApplyBasis ¶
func (n None) ApplyBasis(fw FlexWidget)
func (None) ApplyHeight ¶
func (n None) ApplyHeight(fw FlexWidget)
func (None) ApplyMargin ¶
func (n None) ApplyMargin(fw FlexWidget)
func (None) ApplyMaxHeight ¶
func (n None) ApplyMaxHeight(fw FlexWidget)
func (None) ApplyMaxWidth ¶
func (n None) ApplyMaxWidth(fw FlexWidget)
func (None) ApplyPadding ¶
func (n None) ApplyPadding(fw FlexWidget)
func (None) ApplyPosition ¶
func (n None) ApplyPosition(fw FlexWidget, edge flex.Edge)
func (None) ApplyWidth ¶
func (n None) ApplyWidth(fw FlexWidget)
type PaddingProp ¶
type PaddingProp interface{ ApplyPadding(fw FlexWidget) }
type Pct ¶
type Pct float32
Pct is a percentage value
func (Pct) ApplyBasis ¶
func (p Pct) ApplyBasis(fw FlexWidget)
func (Pct) ApplyHeight ¶
func (p Pct) ApplyHeight(fw FlexWidget)
func (Pct) ApplyLineHeight ¶
func (p Pct) ApplyLineHeight(fw FontWidget)
func (Pct) ApplyMargin ¶
func (p Pct) ApplyMargin(fw FlexWidget)
func (Pct) ApplyMaxHeight ¶
func (p Pct) ApplyMaxHeight(fw FlexWidget)
func (Pct) ApplyMaxWidth ¶
func (p Pct) ApplyMaxWidth(fw FlexWidget)
func (Pct) ApplyMinHeight ¶
func (p Pct) ApplyMinHeight(fw FlexWidget)
func (Pct) ApplyMinWidth ¶
func (p Pct) ApplyMinWidth(fw FlexWidget)
func (Pct) ApplyPadding ¶
func (p Pct) ApplyPadding(fw FlexWidget)
func (Pct) ApplyPosition ¶
func (p Pct) ApplyPosition(fw FlexWidget, edge flex.Edge)
func (Pct) ApplyWidth ¶
func (p Pct) ApplyWidth(fw FlexWidget)
type PositionProp ¶
type PositionProp interface{ ApplyPosition(fw FlexWidget) }
type PositionValueProp ¶
type PositionValueProp interface {
ApplyPosition(fw FlexWidget, edge flex.Edge)
}
type Px ¶
type Px float32
Px is a pixel value
func (Px) ApplyBasis ¶
func (p Px) ApplyBasis(fw FlexWidget)
func (Px) ApplyHeight ¶
func (p Px) ApplyHeight(fw FlexWidget)
func (Px) ApplyMargin ¶
func (p Px) ApplyMargin(fw FlexWidget)
func (Px) ApplyMaxHeight ¶
func (p Px) ApplyMaxHeight(fw FlexWidget)
func (Px) ApplyMaxWidth ¶
func (p Px) ApplyMaxWidth(fw FlexWidget)
func (Px) ApplyMinHeight ¶
func (p Px) ApplyMinHeight(fw FlexWidget)
func (Px) ApplyMinWidth ¶
func (p Px) ApplyMinWidth(fw FlexWidget)
func (Px) ApplyPadding ¶
func (p Px) ApplyPadding(fw FlexWidget)
func (Px) ApplyPosition ¶
func (p Px) ApplyPosition(fw FlexWidget, edge flex.Edge)
func (Px) ApplyRadius ¶
func (p Px) ApplyRadius(w RadiusWidget)
func (Px) ApplyWidth ¶
func (p Px) ApplyWidth(fw FlexWidget)
type RadiusProp ¶
type RadiusProp interface {
ApplyRadius(RadiusWidget)
}
type RadiusWidget ¶
type RadiusWidget interface {
SetRadius(px float32)
}
type Rect ¶
func (Rect) ApplyMargin ¶
func (p Rect) ApplyMargin(fw FlexWidget)
func (Rect) ApplyPadding ¶
func (p Rect) ApplyPadding(fw FlexWidget)
type Relative ¶
type Relative struct{}
func (Relative) ApplyPosition ¶
func (r Relative) ApplyPosition(fw FlexWidget)
type Row ¶
type Row struct{}
func (Row) ApplyFlexDirection ¶
func (r Row) ApplyFlexDirection(fw FlexWidget)
type Shrink ¶
type Shrink float32
func (Shrink) ApplyFlexShrink ¶
func (s Shrink) ApplyFlexShrink(fw FlexWidget)
type WidthProp ¶
type WidthProp interface{ ApplyWidth(fw FlexWidget) }
Click to show internal directories.
Click to hide internal directories.