Documentation ¶
Index ¶
- func Align(a layout.Alignment) func(w *Flex, t Theme)
- func Centered(l layout.Widget) layout.Widget
- func Gap(s Unit) func(w *Flex, t Theme)
- func HSpacer(m unit.Dp) layout.Widget
- func Spacing(s layout.Spacing) func(w *Flex, t Theme)
- func VSpacer(m unit.Dp) layout.Widget
- type C
- type CuFlexOption
- type D
- type Flex
- type Fonts
- type Palette
- type TextOptions
- type Theme
- func (t Theme) Background(gtx layout.Context)
- func (t Theme) FlexColumn(options ...CuFlexOption) Flex
- func (t Theme) FlexRow(options ...CuFlexOption) Flex
- func (t Theme) H1(label string) layout.Widget
- func (t Theme) H2(label string) layout.Widget
- func (t Theme) Hr() layout.Widget
- func (t Theme) M(u Unit, w layout.Widget) layout.Widget
- func (t Theme) Mb(u Unit, w layout.Widget) layout.Widget
- func (t Theme) Mh(u Unit, w layout.Widget) layout.Widget
- func (t Theme) Mv(u Unit, w layout.Widget) layout.Widget
- func (t Theme) Paragraph(label string) layout.Widget
- func (t Theme) Text(label string, opts ...TextOptions) layout.Widget
- type Unit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CuFlexOption ¶
type D ¶
type D = layout.Dimensions
type Flex ¶
type Flex struct {
// contains filtered or unexported fields
}
type TextOptions ¶
type Theme ¶
type Theme struct { Color Palette TextSize unit.Sp TextSizeMedium unit.Sp TextSizeH1 unit.Sp TextSizeH2 unit.Sp Shaper *text.Shaper Font Fonts LineHeightH1 unit.Sp LineHeightH2 unit.Sp }
func NewDefaultTheme ¶
func NewDefaultTheme() *Theme
func (Theme) Background ¶
func (Theme) FlexColumn ¶
func (t Theme) FlexColumn(options ...CuFlexOption) Flex
func (Theme) FlexRow ¶
func (t Theme) FlexRow(options ...CuFlexOption) Flex
Click to show internal directories.
Click to hide internal directories.