Versions in this module Expand all Collapse all v0 v0.0.4 Sep 25, 2023 v0.0.3 Sep 23, 2023 v0.0.2 Sep 23, 2023 v0.0.1 Sep 23, 2023 v0.0.0 Sep 23, 2023 Changes in this version + const X + const Y + var BorderRadiusExtraLarge = NewSideValues(units.Px(28)) + var BorderRadiusExtraLargeTop = NewSideValues(units.Px(28), units.Px(28), units.Px(0), units.Px(0)) + var BorderRadiusExtraSmall = NewSideValues(units.Px(4)) + var BorderRadiusExtraSmallTop = NewSideValues(units.Px(4), units.Px(4), units.Px(0), units.Px(0)) + var BorderRadiusFull = NewSideValues(units.Px(1_000_000_000)) + var BorderRadiusLarge = NewSideValues(units.Px(16)) + var BorderRadiusLargeEnd = NewSideValues(units.Px(0), units.Px(16), units.Px(16), units.Px(0)) + var BorderRadiusLargeTop = NewSideValues(units.Px(16), units.Px(16), units.Px(0), units.Px(0)) + var BorderRadiusMedium = NewSideValues(units.Px(12)) + var BorderRadiusNone = NewSideValues(units.Px(0)) + var BorderRadiusSmall = NewSideValues(units.Px(8)) + var ColorSpecCache map[string]*ColorSpec + var FontSizePoints = map[string]float32 + var FontStretchNames = []string + var FontStyleNames = []string + var FontWeightNameVals = []FontWeights + var FontWeightNames = []string + var FontWeightToNameMap = map[FontWeights]string + var GradientDegToSides = map[string]string + var LineHeightNormal = units.Px(-1) + var RebuildDefaultStyles bool + var ScrollBarWidthDefault = float32(15) + var StyleBorderFuncs = map[string]StyleFunc + var StyleFillFuncs = map[string]StyleFunc + var StyleFontFuncs = map[string]StyleFunc + var StyleFontRenderFuncs = map[string]StyleFunc + var StyleLayoutFuncs = map[string]StyleFunc + var StyleOutlineFuncs = map[string]StyleFunc + var StylePaintFuncs = map[string]StyleFunc + var StyleShadowFuncs = map[string]StyleFunc + var StyleStrokeFuncs = map[string]StyleFunc + var StyleStyleFuncs = map[string]StyleFunc + var StyleTemplates map[string]*Style + var StyleTemplatesMu sync.RWMutex + var StyleTextFuncs = map[string]StyleFunc + func CopyGradient(dst, src *rasterx.Gradient) + func FixFontMods(fn string) string + func FixGradientStops(grad *rasterx.Gradient) + func FontNameFromMods(basenm string, str FontStretch, wt FontWeights, sty FontStyles) string + func FontNameToMods(fn string) (basenm string, str FontStretch, wt FontWeights, sty FontStyles) + func IsAlignEnd(a Align) bool + func IsAlignMiddle(a Align) bool + func IsAlignStart(a Align) bool + func MatToRasterx(mat *mat32.Mat2) rasterx.Matrix2D + func ParseDashesString(str string) []float64 + func RasterxToMat(mat *rasterx.Matrix2D) mat32.Mat2 + func SetGradientBounds(grad *rasterx.Gradient, bounds image.Rectangle) + func SetStylePropsXML(style string, props *map[string]any) + func StyleInhInit(val, par any) (inh, init bool) + func StylePropsXML(props map[string]any) string + func StyleSetError(key string, val any) + func SubProps(prp map[string]any, selector string) (map[string]any, bool) + func XMLAttr(name string, attrs []xml.Attr) string + type ActiveStyler interface + ActiveStyle func() *Style + StyleRLock func() + StyleRUnlock func() + type Align int32 + const AlignBaseline + const AlignBottom + const AlignCenter + const AlignFlexEnd + const AlignFlexStart + const AlignJustify + const AlignLeft + const AlignMiddle + const AlignN + const AlignRight + const AlignSpaceAround + const AlignSub + const AlignSuper + const AlignTextBottom + const AlignTextTop + const AlignTop + func AlignValues() []Align + func (i *Align) SetInt64(in int64) + func (i *Align) SetString(s string) error + func (i *Align) UnmarshalText(text []byte) error + func (i Align) Desc() string + func (i Align) Int64() int64 + func (i Align) IsValid() bool + func (i Align) MarshalText() ([]byte, error) + func (i Align) String() string + func (i Align) Values() []enums.Enum + type BaselineShifts int32 + const BaselineShiftsN + const ShiftBaseline + const ShiftSub + const ShiftSuper + func BaselineShiftsValues() []BaselineShifts + func (i *BaselineShifts) SetInt64(in int64) + func (i *BaselineShifts) SetString(s string) error + func (i *BaselineShifts) UnmarshalText(text []byte) error + func (i BaselineShifts) Desc() string + func (i BaselineShifts) Int64() int64 + func (i BaselineShifts) IsValid() bool + func (i BaselineShifts) MarshalText() ([]byte, error) + func (i BaselineShifts) String() string + func (i BaselineShifts) Values() []enums.Enum + type Border struct + Color SideColors + Radius SideValues + Style Sides[BorderStyles] + Width SideValues + func (bs *Border) ToDots(uc *units.Context) + type BorderStyles int32 + const BorderDashed + const BorderDotted + const BorderDouble + const BorderGroove + const BorderHidden + const BorderInset + const BorderNone + const BorderOutset + const BorderRidge + const BorderSolid + const BorderStylesN + func BorderStylesValues() []BorderStyles + func (i *BorderStyles) SetInt64(in int64) + func (i *BorderStyles) SetString(s string) error + func (i *BorderStyles) UnmarshalText(text []byte) error + func (i BorderStyles) Desc() string + func (i BorderStyles) Int64() int64 + func (i BorderStyles) IsValid() bool + func (i BorderStyles) MarshalText() ([]byte, error) + func (i BorderStyles) String() string + func (i BorderStyles) Values() []enums.Enum + type ColorSchemeTypes int32 + const ColorSchemeDark + const ColorSchemeLight + const ColorSchemeTypesN + func ColorSchemeTypesValues() []ColorSchemeTypes + func (i *ColorSchemeTypes) SetInt64(in int64) + func (i *ColorSchemeTypes) SetString(s string) error + func (i *ColorSchemeTypes) UnmarshalText(text []byte) error + func (i ColorSchemeTypes) Desc() string + func (i ColorSchemeTypes) Int64() int64 + func (i ColorSchemeTypes) IsValid() bool + func (i ColorSchemeTypes) MarshalText() ([]byte, error) + func (i ColorSchemeTypes) String() string + func (i ColorSchemeTypes) Values() []enums.Enum + type ColorSources int32 + const ColorSourcesN + const LinearGradient + const RadialGradient + const SolidColor + func ColorSourcesValues() []ColorSources + func (i *ColorSources) SetInt64(in int64) + func (i *ColorSources) SetString(s string) error + func (i *ColorSources) UnmarshalText(text []byte) error + func (i ColorSources) Desc() string + func (i ColorSources) Int64() int64 + func (i ColorSources) IsValid() bool + func (i ColorSources) MarshalText() ([]byte, error) + func (i ColorSources) String() string + func (i ColorSources) Values() []enums.Enum + type ColorSpec struct + Color color.RGBA + Gradient *rasterx.Gradient + Source ColorSources + func (c *ColorSpec) ApplyXForm(xf mat32.Mat2) + func (c *ColorSpec) ApplyXFormPt(xf mat32.Mat2, pt mat32.Vec2) + func (c *ColorSpec) SetIFace(val any, ctxt Context, key string) error + func (cs *ColorSpec) ColorOrNil() color.Color + func (cs *ColorSpec) CopyFrom(cp *ColorSpec) + func (cs *ColorSpec) CopyStopsFrom(cp *ColorSpec) + func (cs *ColorSpec) IsNil() bool + func (cs *ColorSpec) NewLinearGradient() + func (cs *ColorSpec) NewRadialGradient() + func (cs *ColorSpec) ReadGradAttr(attr xml.Attr) (err error) + func (cs *ColorSpec) ReadXML(reader io.Reader) error + func (cs *ColorSpec) RenderColor(opacity float32, bounds image.Rectangle, xform mat32.Mat2) any + func (cs *ColorSpec) SetColor(cl color.Color) + func (cs *ColorSpec) SetGradientPoints(bbox mat32.Box2) + func (cs *ColorSpec) SetName(name string) + func (cs *ColorSpec) SetShadowGradient(cl color.Color, dir string) + func (cs *ColorSpec) SetSolid(cl color.RGBA) + func (cs *ColorSpec) SetString(clrstr string, ctxt Context) bool + func (cs *ColorSpec) UnmarshalXML(decoder *xml.Decoder, se xml.StartElement) error + type Context interface + ContextColor func() color.RGBA + ContextColorSpecByURL func(url string) *ColorSpec + type Fill struct + Color ColorSpec + On bool + Opacity float32 + Rule FillRules + func (fs *Fill) ToDots(uc *units.Context) + func (pf *Fill) Defaults() + func (pf *Fill) SetColor(cl color.Color) + func (pf *Fill) SetColorSpec(cl *ColorSpec) + func (pf *Fill) SetStylePost(props map[string]any) + type FillRules int32 + const FillRuleEvenOdd + const FillRuleNonZero + const FillRulesN + func FillRulesValues() []FillRules + func (i *FillRules) SetInt64(in int64) + func (i *FillRules) SetString(s string) error + func (i *FillRules) UnmarshalText(text []byte) error + func (i FillRules) Desc() string + func (i FillRules) Int64() int64 + func (i FillRules) IsValid() bool + func (i FillRules) MarshalText() ([]byte, error) + func (i FillRules) String() string + func (i FillRules) Values() []enums.Enum + type Font struct + Deco TextDecorations + Face *FontFace + Family string + Opacity float32 + Rem float32 + Shift BaselineShifts + Size units.Value + Stretch FontStretch + Style FontStyles + Variant FontVariants + Weight FontWeights + func (fs *Font) Defaults() + func (fs *Font) InheritFields(par *Font) + func (fs *Font) SetDeco(deco TextDecorations) + func (fs *Font) SetStylePost(props map[string]any) + func (fs *Font) SetStyleProps(parent *Font, props map[string]any, ctxt Context) + func (fs *Font) SetUnitContext(ctxt *units.Context) + func (fs *Font) StyleFromProps(par *Font, props map[string]any, ctxt Context) + func (fs *Font) ToDots(uc *units.Context) + type FontFace struct + Face font.Face + Metrics FontMetrics + Name string + Size int + func NewFontFace(nm string, sz int, face font.Face) *FontFace + func (fs *FontFace) ComputeMetrics() + type FontMetrics struct + Ch float32 + Em float32 + Ex float32 + Height float32 + type FontRender struct + BackgroundColor ColorSpec + Color color.RGBA + func (fr *FontRender) Defaults() + func (fr *FontRender) InheritFields(par *FontRender) + type FontStretch int32 + const FontStrCondensed + const FontStrExpanded + const FontStrExtraCondensed + const FontStrExtraExpanded + const FontStrNarrower + const FontStrNormal + const FontStrSemiCondensed + const FontStrSemiExpanded + const FontStrUltraCondensed + const FontStrUltraExpanded + const FontStrWider + const FontStretchN + func FontStretchValues() []FontStretch + func (i *FontStretch) SetInt64(in int64) + func (i *FontStretch) SetString(s string) error + func (i *FontStretch) UnmarshalText(text []byte) error + func (i FontStretch) Desc() string + func (i FontStretch) Int64() int64 + func (i FontStretch) IsValid() bool + func (i FontStretch) MarshalText() ([]byte, error) + func (i FontStretch) String() string + func (i FontStretch) Values() []enums.Enum + type FontStyles int32 + const FontItalic + const FontNormal + const FontOblique + const FontStylesN + func FontStylesValues() []FontStyles + func (i *FontStyles) SetInt64(in int64) + func (i *FontStyles) SetString(s string) error + func (i *FontStyles) UnmarshalText(text []byte) error + func (i FontStyles) Desc() string + func (i FontStyles) Int64() int64 + func (i FontStyles) IsValid() bool + func (i FontStyles) MarshalText() ([]byte, error) + func (i FontStyles) String() string + func (i FontStyles) Values() []enums.Enum + type FontVariants int32 + const FontVarNormal + const FontVarSmallCaps + const FontVariantsN + func FontVariantsValues() []FontVariants + func (i *FontVariants) SetInt64(in int64) + func (i *FontVariants) SetString(s string) error + func (i *FontVariants) UnmarshalText(text []byte) error + func (i FontVariants) Desc() string + func (i FontVariants) Int64() int64 + func (i FontVariants) IsValid() bool + func (i FontVariants) MarshalText() ([]byte, error) + func (i FontVariants) String() string + func (i FontVariants) Values() []enums.Enum + type FontWeights int32 + const FontWeightsN + const Weight100 + const Weight200 + const Weight300 + const Weight400 + const Weight500 + const Weight600 + const Weight700 + const Weight800 + const Weight900 + const WeightBlack + const WeightBold + const WeightBolder + const WeightExtraBold + const WeightExtraLight + const WeightLight + const WeightLighter + const WeightMedium + const WeightNormal + const WeightSemiBold + const WeightThin + func FontWeightsValues() []FontWeights + func (i *FontWeights) SetInt64(in int64) + func (i *FontWeights) SetString(s string) error + func (i *FontWeights) UnmarshalText(text []byte) error + func (i FontWeights) Desc() string + func (i FontWeights) Int64() int64 + func (i FontWeights) IsValid() bool + func (i FontWeights) MarshalText() ([]byte, error) + func (i FontWeights) String() string + func (i FontWeights) Values() []enums.Enum + type Geom2DInt struct + Pos image.Point + Size image.Point + func (gm *Geom2DInt) Bounds() image.Rectangle + func (gm *Geom2DInt) SetRect(r image.Rectangle) + func (gm *Geom2DInt) SizeRect() image.Rectangle + type GradientPoints int32 + const GpX1 + const GpX2 + const GpY1 + const GpY2 + const GradientPointsN + func GradientPointsValues() []GradientPoints + func (i *GradientPoints) SetInt64(in int64) + func (i *GradientPoints) SetString(s string) error + func (i *GradientPoints) UnmarshalText(text []byte) error + func (i GradientPoints) Desc() string + func (i GradientPoints) Int64() int64 + func (i GradientPoints) IsValid() bool + func (i GradientPoints) MarshalText() ([]byte, error) + func (i GradientPoints) String() string + func (i GradientPoints) Values() []enums.Enum + type LineCaps int32 + const LineCapButt + const LineCapCubic + const LineCapQuadratic + const LineCapRound + const LineCapSquare + const LineCapsN + func LineCapsValues() []LineCaps + func (i *LineCaps) SetInt64(in int64) + func (i *LineCaps) SetString(s string) error + func (i *LineCaps) UnmarshalText(text []byte) error + func (i LineCaps) Desc() string + func (i LineCaps) Int64() int64 + func (i LineCaps) IsValid() bool + func (i LineCaps) MarshalText() ([]byte, error) + func (i LineCaps) String() string + func (i LineCaps) Values() []enums.Enum + type LineJoins int32 + const LineJoinArcs + const LineJoinArcsClip + const LineJoinBevel + const LineJoinMiter + const LineJoinMiterClip + const LineJoinRound + const LineJoinsN + func LineJoinsValues() []LineJoins + func (i *LineJoins) SetInt64(in int64) + func (i *LineJoins) SetString(s string) error + func (i *LineJoins) UnmarshalText(text []byte) error + func (i LineJoins) Desc() string + func (i LineJoins) Int64() int64 + func (i LineJoins) IsValid() bool + func (i LineJoins) MarshalText() ([]byte, error) + func (i LineJoins) String() string + func (i LineJoins) Values() []enums.Enum + type Overflow int32 + const OverflowAuto + const OverflowHidden + const OverflowN + const OverflowScroll + const OverflowVisible + func OverflowValues() []Overflow + func (i *Overflow) SetInt64(in int64) + func (i *Overflow) SetString(s string) error + func (i *Overflow) UnmarshalText(text []byte) error + func (i Overflow) Desc() string + func (i Overflow) Int64() int64 + func (i Overflow) IsValid() bool + func (i Overflow) MarshalText() ([]byte, error) + func (i Overflow) String() string + func (i Overflow) Values() []enums.Enum + type Paint struct + Display bool + FillStyle Fill + FontStyle FontRender + Off bool + PropsNil bool + StrokeStyle Stroke + StyleSet bool + TextStyle Text + UnContext units.Context + VecEff VectorEffects + XForm mat32.Mat2 + func (pc *Paint) CopyStyleFrom(cp *Paint) + func (pc *Paint) Defaults() + func (pc *Paint) HasFill() bool + func (pc *Paint) HasNoStrokeOrFill() bool + func (pc *Paint) HasStroke() bool + func (pc *Paint) InheritFields(par *Paint) + func (pc *Paint) SetStyleProps(par *Paint, props map[string]any, ctxt Context) + func (pc *Paint) SetUnitContextExt(size image.Point) + func (pc *Paint) StyleFromProps(par *Paint, props map[string]any, ctxt Context) + func (pc *Paint) StyleToDots(uc *units.Context) + func (pc *Paint) ToDots() + func (pc *Paint) ToDotsImpl(uc *units.Context) + type Prefer interface + PrefColor func(name string) *color.RGBA + PrefFontFamily func() string + var ThePrefs Prefer + type Prefs struct + Background color.RGBA + Border color.RGBA + Control color.RGBA + Font color.RGBA + FontFamily string + Highlight color.RGBA + Icon color.RGBA + Link color.RGBA + Select color.RGBA + Shadow color.RGBA + func (pf *Prefs) Defaults() + func (pf *Prefs) PrefColor(clrName string) *color.RGBA + func (pf *Prefs) PrefFontFamily() string + type SetStringer interface + SetString func(str string) error + type Shadow struct + Blur units.Value + Color color.RGBA + HOffset units.Value + Inset bool + Spread units.Value + VOffset units.Value + func (s *Shadow) BasePos(startPos mat32.Vec2) mat32.Vec2 + func (s *Shadow) BaseSize(startSize mat32.Vec2) mat32.Vec2 + func (s *Shadow) HasShadow() bool + func (s *Shadow) Margin() SideFloats + func (s *Shadow) Pos(startPos mat32.Vec2) mat32.Vec2 + func (s *Shadow) Size(startSize mat32.Vec2) mat32.Vec2 + func (s *Shadow) ToDots(uc *units.Context) + type SideColors struct + func NewSideColors(vals ...color.RGBA) SideColors + func NewSideColorsTry(vals ...color.RGBA) (SideColors, error) + func (s *SideColors) SetAny(a any, ctxt Context) error + func (s *SideColors) SetString(str string, ctxt Context) error + func (s SideColors) AllSame() bool + func (s SideColors) IsZero() bool + type SideFloats struct + func BoxShadowMargin(shadows []Shadow) SideFloats + func NewSideFloats(vals ...float32) SideFloats + func NewSideFloatsTry(vals ...float32) (SideFloats, error) + func (s SideFloats) AllSame() bool + func (s SideFloats) IsZero() bool + func (sf SideFloats) Add(other SideFloats) SideFloats + func (sf SideFloats) Max(other SideFloats) SideFloats + func (sf SideFloats) Min(other SideFloats) SideFloats + func (sf SideFloats) Pos() mat32.Vec2 + func (sf SideFloats) Size() mat32.Vec2 + func (sf SideFloats) Sub(other SideFloats) SideFloats + func (sf SideFloats) ToValues() SideValues + type SideValues struct + func NewSideValues(vals ...units.Value) SideValues + func NewSideValuesTry(vals ...units.Value) (SideValues, error) + func (sv *SideValues) ToDots(uc *units.Context) SideFloats + func (sv SideValues) Dots() SideFloats + type Sides struct + Bottom T + Left T + Right T + Top T + func NewSides(vals ...T) Sides[T] + func NewSidesTry(vals ...T) (Sides[T], error) + func (s *Sides[T]) Set(vals ...T) error + func (s *Sides[T]) SetAll(val T) + func (s *Sides[T]) SetAny(a any) error + func (s *Sides[T]) SetHoriz(val T) + func (s *Sides[T]) SetString(str string) error + func (s *Sides[T]) SetVert(val T) + type SizePrefs struct + Max mat32.Vec2 + Need mat32.Vec2 + Pref mat32.Vec2 + func (sp SizePrefs) CanStretchNeed(d mat32.Dims) bool + func (sp SizePrefs) HasMaxStretch(d mat32.Dims) bool + type Stroke struct + Cap LineCaps + Color ColorSpec + Dashes []float64 + Join LineJoins + MinWidth units.Value + MiterLimit float32 + On bool + Opacity float32 + Width units.Value + func (ps *Stroke) Defaults() + func (ps *Stroke) SetColor(cl color.Color) + func (ps *Stroke) SetColorSpec(cl *ColorSpec) + func (ps *Stroke) SetStylePost(props map[string]any) + func (ss *Stroke) ToDots(uc *units.Context) + type Style struct + AlignH Align + AlignV Align + BackgroundColor ColorSpec + Border Border + BoxShadow []Shadow + Col int + ColSpan int + Color color.RGBA + Columns int + Display bool + Font Font + Height units.Value + Inactive bool + IsSet bool + Margin SideValues + MaxHeight units.Value + MaxWidth units.Value + MinHeight units.Value + MinWidth units.Value + Outline Border + Overflow Overflow + Padding SideValues + PointerEvents bool + PosX units.Value + PosY units.Value + PropsNil bool + Row int + RowSpan int + ScrollBarWidth units.Value + Template string + Text Text + UnContext units.Context + Visible bool + Width units.Value + ZIndex int + var StyleDefault Style + func NewStyle() Style + func (s *Style) AddBoxShadow(shadow ...Shadow) + func (s *Style) AlignDim(d mat32.Dims) Align + func (s *Style) BoxShadowMargin() SideFloats + func (s *Style) BoxShadowPosSize(startPos, startSize mat32.Vec2) (pos mat32.Vec2, sz mat32.Vec2) + func (s *Style) BoxShadowToDots(uc *units.Context) + func (s *Style) BoxSpace() SideFloats + func (s *Style) CopyFrom(cp *Style) + func (s *Style) CopyUnitContext(ctxt *units.Context) + func (s *Style) Defaults() + func (s *Style) EffMargin() SideFloats + func (s *Style) FontRender() *FontRender + func (s *Style) FromTemplate() (hasTemplate bool, saveTemplate bool) + func (s *Style) HasBoxShadow() bool + func (s *Style) InheritFields(par *Style) + func (s *Style) LayoutDefaults() + func (s *Style) LayoutToDots(uc *units.Context) + func (s *Style) MaxSizeDots() mat32.Vec2 + func (s *Style) MinSizeDots() mat32.Vec2 + func (s *Style) PosDots() mat32.Vec2 + func (s *Style) SaveTemplate() + func (s *Style) SetFixedHeight(val units.Value) + func (s *Style) SetFixedWidth(val units.Value) + func (s *Style) SetMinPrefHeight(val units.Value) + func (s *Style) SetMinPrefWidth(val units.Value) + func (s *Style) SetStretchMax() + func (s *Style) SetStretchMaxHeight() + func (s *Style) SetStretchMaxWidth() + func (s *Style) SizeDots() mat32.Vec2 + func (s *Style) StyleFromProps(par *Style, props map[string]any, ctxt Context) + func (s *Style) StyleToDots(uc *units.Context) + func (s *Style) ToDots() + func (s *Style) ToDotsImpl(uc *units.Context) + type StyleFunc func(obj any, key string, val any, par any, ctxt Context) + func StyleFuncBool(initVal bool, getField func(obj *T) *bool) StyleFunc + func StyleFuncEnum(initVal enums.Enum, getField func(obj *T) enums.EnumSetter) StyleFunc + func StyleFuncFloat(initVal F, getField func(obj *T) *F) StyleFunc + func StyleFuncInt(initVal F, getField func(obj *T) *F) StyleFunc + func StyleFuncUnits(initVal units.Value, getField func(obj *T) *units.Value) StyleFunc + type Text struct + Align Align + AlignV Align + Anchor TextAnchors + Direction TextDirections + Indent units.Value + LetterSpacing units.Value + LineHeight units.Value + OrientationHoriz float32 + OrientationVert float32 + ParaSpacing units.Value + TabSize int + UnicodeBidi UnicodeBidi + WhiteSpace WhiteSpaces + WordSpacing units.Value + WritingMode TextDirections + func (ts *Text) AlignFactors() (ax, ay float32) + func (ts *Text) Defaults() + func (ts *Text) EffLineHeight(fontHeight float32) float32 + func (ts *Text) HasPre() bool + func (ts *Text) HasWordWrap() bool + func (ts *Text) InheritFields(par *Text) + func (ts *Text) SetStylePost(props map[string]any) + func (ts *Text) ToDots(uc *units.Context) + type TextAnchors int32 + const AnchorEnd + const AnchorMiddle + const AnchorStart + const TextAnchorsN + func TextAnchorsValues() []TextAnchors + func (i *TextAnchors) SetInt64(in int64) + func (i *TextAnchors) SetString(s string) error + func (i *TextAnchors) UnmarshalText(text []byte) error + func (i TextAnchors) Desc() string + func (i TextAnchors) Int64() int64 + func (i TextAnchors) IsValid() bool + func (i TextAnchors) MarshalText() ([]byte, error) + func (i TextAnchors) String() string + func (i TextAnchors) Values() []enums.Enum + type TextDecorations int64 + const DecoBackgroundColor + const DecoBlink + const DecoDottedUnderline + const DecoLineThrough + const DecoNone + const DecoOverline + const DecoParaStart + const DecoSub + const DecoSuper + const DecoUnderline + const TextDecorationsN + func TextDecorationsValues() []TextDecorations + func (i *TextDecorations) SetFlag(on bool, f ...enums.BitFlag) + func (i *TextDecorations) SetInt64(in int64) + func (i *TextDecorations) SetString(s string) error + func (i *TextDecorations) SetStringOr(s string) error + func (i *TextDecorations) UnmarshalText(text []byte) error + func (i TextDecorations) BitIndexString() string + func (i TextDecorations) Desc() string + func (i TextDecorations) HasFlag(f enums.BitFlag) bool + func (i TextDecorations) Int64() int64 + func (i TextDecorations) IsValid() bool + func (i TextDecorations) MarshalText() ([]byte, error) + func (i TextDecorations) String() string + func (i TextDecorations) Values() []enums.Enum + type TextDirections int32 + const LR + const LRTB + const LTR + const RL + const RLTB + const RTL + const TB + const TBRL + const TextDirectionsN + func TextDirectionsValues() []TextDirections + func (i *TextDirections) SetInt64(in int64) + func (i *TextDirections) SetString(s string) error + func (i *TextDirections) UnmarshalText(text []byte) error + func (i TextDirections) Desc() string + func (i TextDirections) Int64() int64 + func (i TextDirections) IsValid() bool + func (i TextDirections) MarshalText() ([]byte, error) + func (i TextDirections) String() string + func (i TextDirections) Values() []enums.Enum + type UnicodeBidi int32 + const BidiBidiOverride + const BidiEmbed + const BidiNormal + const UnicodeBidiN + func UnicodeBidiValues() []UnicodeBidi + func (i *UnicodeBidi) SetInt64(in int64) + func (i *UnicodeBidi) SetString(s string) error + func (i *UnicodeBidi) UnmarshalText(text []byte) error + func (i UnicodeBidi) Desc() string + func (i UnicodeBidi) Int64() int64 + func (i UnicodeBidi) IsValid() bool + func (i UnicodeBidi) MarshalText() ([]byte, error) + func (i UnicodeBidi) String() string + func (i UnicodeBidi) Values() []enums.Enum + type VectorEffects int32 + const VecEffNonScalingStroke + const VecEffNone + const VectorEffectsN + func VectorEffectsValues() []VectorEffects + func (i *VectorEffects) SetInt64(in int64) + func (i *VectorEffects) SetString(s string) error + func (i *VectorEffects) UnmarshalText(text []byte) error + func (i VectorEffects) Desc() string + func (i VectorEffects) Int64() int64 + func (i VectorEffects) IsValid() bool + func (i VectorEffects) MarshalText() ([]byte, error) + func (i VectorEffects) String() string + func (i VectorEffects) Values() []enums.Enum + type WhiteSpaces int32 + const WhiteSpaceNormal + const WhiteSpaceNowrap + const WhiteSpacePre + const WhiteSpacePreLine + const WhiteSpacePreWrap + const WhiteSpacesN + func WhiteSpacesValues() []WhiteSpaces + func (i *WhiteSpaces) SetInt64(in int64) + func (i *WhiteSpaces) SetString(s string) error + func (i *WhiteSpaces) UnmarshalText(text []byte) error + func (i WhiteSpaces) Desc() string + func (i WhiteSpaces) Int64() int64 + func (i WhiteSpaces) IsValid() bool + func (i WhiteSpaces) MarshalText() ([]byte, error) + func (i WhiteSpaces) String() string + func (i WhiteSpaces) Values() []enums.Enum