Documentation
¶
Index ¶
- Variables
- func Align(x, y ui.AlignMode) ui.ItemOption
- func AlignBottom() ui.ItemOption
- func AlignCenter() ui.ItemOption
- func AlignCenterX() ui.ItemOption
- func AlignCenterY() ui.ItemOption
- func AlignLeft() ui.ItemOption
- func AlignRight() ui.ItemOption
- func AlignTop() ui.ItemOption
- func Alpha(alpha float64) ui.ItemOption
- func AlphaDecay(decr float64, minAlpha float64) ui.ItemOption
- func AlphaIncr(incr float64, maxAlpha float64) ui.ItemOption
- func Border(width float64, clr color.Color) ui.ItemOption
- func BorderColor(clr color.Color) ui.ItemOption
- func BorderRGB(r, g, b uint8) ui.ItemOption
- func BorderRGBA(r, g, b, a uint8) ui.ItemOption
- func BorderWidth(width float64) ui.ItemOption
- func Box() ui.ItemOption
- func Classes(classes ...string) ui.ItemOption
- func Color(clr color.Color) ui.ItemOption
- func Decorations(decorations ...ui.Decoration) ui.ItemOption
- func DoEvent(event ui.Event) ui.ItemOption
- func Ellipse() ui.ItemOption
- func EventAction(opts ui.EventOptions) ui.ItemOption
- func EventHandler(handler ui.EventHandler) ui.ItemOption
- func EventStyle(opts ui.EventOptions) ui.ItemOption
- func Filling(filling ui.ColorFilling) ui.ItemOption
- func Item[T ui.Item](opts ...func(T)) ui.ItemOption
- func Margin(pixels float64) ui.ItemOption
- func MarginBottom(pixels float64) ui.ItemOption
- func MarginLeft(pixels float64) ui.ItemOption
- func MarginRight(pixels float64) ui.ItemOption
- func MarginTop(pixels float64) ui.ItemOption
- func MaxHeight(height int) ui.ItemOption
- func MaxSize(width, height int) ui.ItemOption
- func MaxWidth(width int) ui.ItemOption
- func MinHeight(height int) ui.ItemOption
- func MinSize(width, height int) ui.ItemOption
- func MinWidth(width int) ui.ItemOption
- func Multi(opts ...ui.ItemOption) ui.ItemOption
- func NoEvent() ui.ItemOption
- func NoShape() ui.ItemOption
- func Noop() ui.ItemOption
- func Octogon() ui.ItemOption
- func Padding(pixels int) ui.ItemOption
- func PaddingBottom(pixels int) ui.ItemOption
- func PaddingLeft(pixels int) ui.ItemOption
- func PaddingRight(pixels int) ui.ItemOption
- func PaddingTop(pixels int) ui.ItemOption
- func RGB(r, g, b uint8) ui.ItemOption
- func RGBA(r, g, b, a uint8) ui.ItemOption
- func Rhombus() ui.ItemOption
- func Rounding(factor float64) ui.ItemOption
- func Shape(shape ui.Shape) ui.ItemOption
- func Size(width, height int) ui.ItemOption
- func SizeAuto() ui.ItemOption
Constants ¶
This section is empty.
Variables ¶
View Source
var Bar bar
View Source
var Block block
View Source
var ButtonText buttonText
View Source
var Grid grid
View Source
var Image img
View Source
var Label label
View Source
var Picture picture
View Source
var RichText richText
View Source
var Scrollbar scrollbar
View Source
var Text basicText
View Source
var TextInput textInput
Functions ¶
func AlignBottom ¶
func AlignBottom() ui.ItemOption
func AlignCenter ¶
func AlignCenter() ui.ItemOption
func AlignCenterX ¶
func AlignCenterX() ui.ItemOption
func AlignCenterY ¶
func AlignCenterY() ui.ItemOption
func AlignLeft ¶
func AlignLeft() ui.ItemOption
func AlignRight ¶
func AlignRight() ui.ItemOption
func AlignTop ¶
func AlignTop() ui.ItemOption
func Alpha ¶
func Alpha(alpha float64) ui.ItemOption
func AlphaDecay ¶
func AlphaDecay(decr float64, minAlpha float64) ui.ItemOption
func BorderColor ¶
func BorderColor(clr color.Color) ui.ItemOption
func BorderRGB ¶
func BorderRGB(r, g, b uint8) ui.ItemOption
func BorderRGBA ¶
func BorderRGBA(r, g, b, a uint8) ui.ItemOption
func BorderWidth ¶
func BorderWidth(width float64) ui.ItemOption
func Box ¶
func Box() ui.ItemOption
func Classes ¶
func Classes(classes ...string) ui.ItemOption
func Decorations ¶
func Decorations(decorations ...ui.Decoration) ui.ItemOption
func Ellipse ¶
func Ellipse() ui.ItemOption
func EventAction ¶
func EventAction(opts ui.EventOptions) ui.ItemOption
func EventHandler ¶
func EventHandler(handler ui.EventHandler) ui.ItemOption
func EventStyle ¶
func EventStyle(opts ui.EventOptions) ui.ItemOption
func Filling ¶
func Filling(filling ui.ColorFilling) ui.ItemOption
func Item ¶
func Item[T ui.Item](opts ...func(T)) ui.ItemOption
Item allows to bundle a list of item implementation-specific options as a single ItemOption, for convenience (e.g a theme definition). The resulting option is unsafe since it contains implementation-specific options that can be passed to the wrong item implementation.
func Margin ¶
func Margin(pixels float64) ui.ItemOption
func MarginBottom ¶
func MarginBottom(pixels float64) ui.ItemOption
func MarginLeft ¶
func MarginLeft(pixels float64) ui.ItemOption
func MarginRight ¶
func MarginRight(pixels float64) ui.ItemOption
func MarginTop ¶
func MarginTop(pixels float64) ui.ItemOption
func MaxHeight ¶
func MaxHeight(height int) ui.ItemOption
func MaxSize ¶
func MaxSize(width, height int) ui.ItemOption
func MaxWidth ¶
func MaxWidth(width int) ui.ItemOption
func MinHeight ¶
func MinHeight(height int) ui.ItemOption
func MinSize ¶
func MinSize(width, height int) ui.ItemOption
func MinWidth ¶
func MinWidth(width int) ui.ItemOption
func Multi ¶
func Multi(opts ...ui.ItemOption) ui.ItemOption
func NoEvent ¶
func NoEvent() ui.ItemOption
func NoShape ¶
func NoShape() ui.ItemOption
func Noop ¶
func Noop() ui.ItemOption
func Octogon ¶
func Octogon() ui.ItemOption
func Padding ¶
func Padding(pixels int) ui.ItemOption
func PaddingBottom ¶
func PaddingBottom(pixels int) ui.ItemOption
func PaddingLeft ¶
func PaddingLeft(pixels int) ui.ItemOption
func PaddingRight ¶
func PaddingRight(pixels int) ui.ItemOption
func PaddingTop ¶
func PaddingTop(pixels int) ui.ItemOption
func RGB ¶
func RGB(r, g, b uint8) ui.ItemOption
func RGBA ¶
func RGBA(r, g, b, a uint8) ui.ItemOption
func Rhombus ¶
func Rhombus() ui.ItemOption
func Rounding ¶
func Rounding(factor float64) ui.ItemOption
func Size ¶
func Size(width, height int) ui.ItemOption
func SizeAuto ¶
func SizeAuto() ui.ItemOption
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.