package functions
Variables
FunctionMap
map[string]Function{
"attr": Attr{},
"calc": Calc{},
"conic-gradient": ConicGradient{},
"counter": Counter{},
"cubic-bezier": CubicBezier{},
"hsl": Hsl{},
"hsla": Hsla{},
"linear-gradient": LinearGradient{},
"max": Max{},
"min": Min{},
"radial-gradient": RadialGradient{},
"repeating-conic-gradient": RepeatingConicGradient{},
"repeating-linear-gradient": RepeatingLinearGradient{},
"repeating-radial-gradient": RepeatingRadialGradient{},
"rgb": Rgb{},
"rgba": Rgba{},
"var": Var{},
}
Types
Attr
struct
Returns the value of an attribute of the selected element
Attr.Key
Attr.Process
func (f Attr) Process(panel *ui.Panel, elm *document.Element, value rules.PropertyValue) (string, error)
Calc
struct
Allows you to perform calculations to determine CSS property values
Calc.Key
Calc.Process
func (f Calc) Process(panel *ui.Panel, elm *document.Element, value rules.PropertyValue) (string, error)
ConicGradient
struct
Creates a conic gradient
ConicGradient.Key
ConicGradient.Process
func (f ConicGradient) Process(panel *ui.Panel, elm *document.Element, value rules.PropertyValue) (string, error)
Counter
struct
Returns the current value of the named counter
Counter.Key
Counter.Process
func (f Counter) Process(panel *ui.Panel, elm *document.Element, value rules.PropertyValue) (string, error)
CubicBezier
struct
Defines a Cubic Bezier curve
CubicBezier.Key
CubicBezier.Process
func (f CubicBezier) Process(panel *ui.Panel, elm *document.Element, value rules.PropertyValue) (string, error)
Function
interface
type Function interface {
Key() string
Process(panel *ui.Panel, elm *document.Element, value rules.PropertyValue) (string, error)
}
Hsl
struct
Defines colors using the Hue-Saturation-Lightness model (HSL)
Hsl.Key
Hsl.Process
func (f Hsl) Process(panel *ui.Panel, elm *document.Element, value rules.PropertyValue) (string, error)
Hsla
struct
Defines colors using the Hue-Saturation-Lightness-Alpha model (HSLA)
Hsla.Key
Hsla.Process
func (f Hsla) Process(panel *ui.Panel, elm *document.Element, value rules.PropertyValue) (string, error)
LinearGradient
struct
Creates a linear gradient
LinearGradient.Key
LinearGradient.Process
func (f LinearGradient) Process(panel *ui.Panel, elm *document.Element, value rules.PropertyValue) (string, error)
Max
struct
Uses the largest value, from a comma-separated list of values, as the property value
Max.Key
Max.Process
func (f Max) Process(panel *ui.Panel, elm *document.Element, value rules.PropertyValue) (string, error)
Min
struct
Uses the smallest value, from a comma-separated list of values, as the property value
Min.Key
Min.Process
func (f Min) Process(panel *ui.Panel, elm *document.Element, value rules.PropertyValue) (string, error)
RadialGradient
struct
Creates a radial gradient
RadialGradient.Key
RadialGradient.Process
func (f RadialGradient) Process(panel *ui.Panel, elm *document.Element, value rules.PropertyValue) (string, error)
RepeatingConicGradient
struct
Repeats a conic gradient
RepeatingConicGradient.Key
RepeatingConicGradient.Process
func (f RepeatingConicGradient) Process(panel *ui.Panel, elm *document.Element, value rules.PropertyValue) (string, error)
RepeatingLinearGradient
struct
Repeats a linear gradient
RepeatingLinearGradient.Key
RepeatingLinearGradient.Process
func (f RepeatingLinearGradient) Process(panel *ui.Panel, elm *document.Element, value rules.PropertyValue) (string, error)
RepeatingRadialGradient
struct
Repeats a radial gradient
RepeatingRadialGradient.Key
RepeatingRadialGradient.Process
func (f RepeatingRadialGradient) Process(panel *ui.Panel, elm *document.Element, value rules.PropertyValue) (string, error)
Rgb
struct
Defines colors using the Red-Green-Blue model (RGB)
Rgb.Key
Rgb.Process
func (f Rgb) Process(panel *ui.Panel, elm *document.Element, value rules.PropertyValue) (string, error)
Rgba
struct
Defines colors using the Red-Green-Blue-Alpha model (RGBA)
Rgba.Key
Rgba.Process
func (f Rgba) Process(panel *ui.Panel, elm *document.Element, value rules.PropertyValue) (string, error)
Var
struct
Inserts the value of a custom property