opt

package
v0.0.0-...-c19e608 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 Align

func Align(x, y ui.AlignMode) ui.ItemOption

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 AlphaIncr

func AlphaIncr(incr float64, maxAlpha float64) ui.ItemOption

func Border

func Border(width float64, clr color.Color) 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 Color

func Color(clr color.Color) ui.ItemOption

func Decorations

func Decorations(decorations ...ui.Decoration) ui.ItemOption

func DoEvent

func DoEvent(event ui.Event) 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 Shape

func Shape(shape ui.Shape) ui.ItemOption

func Size

func Size(width, height int) ui.ItemOption

func SizeAuto

func SizeAuto() ui.ItemOption

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL