render_runtime

package
v0.51.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownDimension = errors.New("unknown dimension")

Functions

func ColorSeriesFromStarlark

func ColorSeriesFromStarlark(list *starlark.List) ([]color.Color, error)

func DataPointElementFromStarlark

func DataPointElementFromStarlark(value starlark.Value) (float64, error)

func DataPointFromStarlark

func DataPointFromStarlark(value starlark.Value) ([2]float64, error)

func DataSeriesFromStarlark

func DataSeriesFromStarlark(list *starlark.List) ([][2]float64, error)

func LoadModule added in v0.51.0

func LoadModule() (starlark.StringDict, error)

func VerticesFromStarlark added in v0.50.0

func VerticesFromStarlark(value starlark.Value) ([]render.Point, error)

func WeightsFromStarlark

func WeightsFromStarlark(list *starlark.List) ([]float64, error)

Types

type Animation

type Animation struct {
	render.Animation
	// contains filtered or unexported fields
}

func (*Animation) AsRenderWidget

func (w *Animation) AsRenderWidget() render.Widget

func (*Animation) Attr

func (w *Animation) Attr(name string) (starlark.Value, error)

func (*Animation) AttrNames

func (w *Animation) AttrNames() []string

func (*Animation) Freeze

func (w *Animation) Freeze()

func (*Animation) Hash

func (w *Animation) Hash() (uint32, error)

func (*Animation) String

func (w *Animation) String() string

func (*Animation) Truth

func (w *Animation) Truth() starlark.Bool

func (*Animation) Type

func (w *Animation) Type() string

type Arc added in v0.50.0

type Arc struct {
	render.Arc
	// contains filtered or unexported fields
}

func (*Arc) AsRenderWidget added in v0.50.0

func (w *Arc) AsRenderWidget() render.Widget

func (*Arc) Attr added in v0.50.0

func (w *Arc) Attr(name string) (starlark.Value, error)

func (*Arc) AttrNames added in v0.50.0

func (w *Arc) AttrNames() []string

func (*Arc) Freeze added in v0.50.0

func (w *Arc) Freeze()

func (*Arc) Hash added in v0.50.0

func (w *Arc) Hash() (uint32, error)

func (*Arc) String added in v0.50.0

func (w *Arc) String() string

func (*Arc) Truth added in v0.50.0

func (w *Arc) Truth() starlark.Bool

func (*Arc) Type added in v0.50.0

func (w *Arc) Type() string

type Box

type Box struct {
	render.Box
	// contains filtered or unexported fields
}

func (*Box) AsRenderWidget

func (w *Box) AsRenderWidget() render.Widget

func (*Box) Attr

func (w *Box) Attr(name string) (starlark.Value, error)

func (*Box) AttrNames

func (w *Box) AttrNames() []string

func (*Box) Freeze

func (w *Box) Freeze()

func (*Box) Hash

func (w *Box) Hash() (uint32, error)

func (*Box) String

func (w *Box) String() string

func (*Box) Truth

func (w *Box) Truth() starlark.Bool

func (*Box) Type

func (w *Box) Type() string

type Circle

type Circle struct {
	render.Circle
	// contains filtered or unexported fields
}

func (*Circle) AsRenderWidget

func (w *Circle) AsRenderWidget() render.Widget

func (*Circle) Attr

func (w *Circle) Attr(name string) (starlark.Value, error)

func (*Circle) AttrNames

func (w *Circle) AttrNames() []string

func (*Circle) Freeze

func (w *Circle) Freeze()

func (*Circle) Hash

func (w *Circle) Hash() (uint32, error)

func (*Circle) String

func (w *Circle) String() string

func (*Circle) Truth

func (w *Circle) Truth() starlark.Bool

func (*Circle) Type

func (w *Circle) Type() string

type Column

type Column struct {
	render.Column
	// contains filtered or unexported fields
}

func (*Column) AsRenderWidget

func (w *Column) AsRenderWidget() render.Widget

func (*Column) Attr

func (w *Column) Attr(name string) (starlark.Value, error)

func (*Column) AttrNames

func (w *Column) AttrNames() []string

func (*Column) Freeze

func (w *Column) Freeze()

func (*Column) Hash

func (w *Column) Hash() (uint32, error)

func (*Column) String

func (w *Column) String() string

func (*Column) Truth

func (w *Column) Truth() starlark.Bool

func (*Column) Type

func (w *Column) Type() string

type Emoji

type Emoji struct {
	render.Emoji
	// contains filtered or unexported fields
}

func (*Emoji) AsRenderWidget

func (w *Emoji) AsRenderWidget() render.Widget

func (*Emoji) Attr

func (w *Emoji) Attr(name string) (starlark.Value, error)

func (*Emoji) AttrNames

func (w *Emoji) AttrNames() []string

func (*Emoji) Freeze

func (w *Emoji) Freeze()

func (*Emoji) Hash

func (w *Emoji) Hash() (uint32, error)

func (*Emoji) String

func (w *Emoji) String() string

func (*Emoji) Truth

func (w *Emoji) Truth() starlark.Bool

func (*Emoji) Type

func (w *Emoji) Type() string

type Image

type Image struct {
	render.Image
	// contains filtered or unexported fields
}

func (*Image) AsRenderWidget

func (w *Image) AsRenderWidget() render.Widget

func (*Image) Attr

func (w *Image) Attr(name string) (starlark.Value, error)

func (*Image) AttrNames

func (w *Image) AttrNames() []string

func (*Image) Freeze

func (w *Image) Freeze()

func (*Image) Hash

func (w *Image) Hash() (uint32, error)

func (*Image) String

func (w *Image) String() string

func (*Image) Truth

func (w *Image) Truth() starlark.Bool

func (*Image) Type

func (w *Image) Type() string

type Line added in v0.50.0

type Line struct {
	render.Line
	// contains filtered or unexported fields
}

func (*Line) AsRenderWidget added in v0.50.0

func (w *Line) AsRenderWidget() render.Widget

func (*Line) Attr added in v0.50.0

func (w *Line) Attr(name string) (starlark.Value, error)

func (*Line) AttrNames added in v0.50.0

func (w *Line) AttrNames() []string

func (*Line) Freeze added in v0.50.0

func (w *Line) Freeze()

func (*Line) Hash added in v0.50.0

func (w *Line) Hash() (uint32, error)

func (*Line) String added in v0.50.0

func (w *Line) String() string

func (*Line) Truth added in v0.50.0

func (w *Line) Truth() starlark.Bool

func (*Line) Type added in v0.50.0

func (w *Line) Type() string

type Marquee

type Marquee struct {
	render.Marquee
	// contains filtered or unexported fields
}

func (*Marquee) AsRenderWidget

func (w *Marquee) AsRenderWidget() render.Widget

func (*Marquee) Attr

func (w *Marquee) Attr(name string) (starlark.Value, error)

func (*Marquee) AttrNames

func (w *Marquee) AttrNames() []string

func (*Marquee) Freeze

func (w *Marquee) Freeze()

func (*Marquee) Hash

func (w *Marquee) Hash() (uint32, error)

func (*Marquee) String

func (w *Marquee) String() string

func (*Marquee) Truth

func (w *Marquee) Truth() starlark.Bool

func (*Marquee) Type

func (w *Marquee) Type() string

type Module added in v0.51.0

type Module struct {
	// contains filtered or unexported fields
}

type Padding

type Padding struct {
	render.Padding
	// contains filtered or unexported fields
}

func (*Padding) AsRenderWidget

func (w *Padding) AsRenderWidget() render.Widget

func (*Padding) Attr

func (w *Padding) Attr(name string) (starlark.Value, error)

func (*Padding) AttrNames

func (w *Padding) AttrNames() []string

func (*Padding) Freeze

func (w *Padding) Freeze()

func (*Padding) Hash

func (w *Padding) Hash() (uint32, error)

func (*Padding) String

func (w *Padding) String() string

func (*Padding) Truth

func (w *Padding) Truth() starlark.Bool

func (*Padding) Type

func (w *Padding) Type() string

type PieChart

type PieChart struct {
	render.PieChart
	// contains filtered or unexported fields
}

func (*PieChart) AsRenderWidget

func (w *PieChart) AsRenderWidget() render.Widget

func (*PieChart) Attr

func (w *PieChart) Attr(name string) (starlark.Value, error)

func (*PieChart) AttrNames

func (w *PieChart) AttrNames() []string

func (*PieChart) Freeze

func (w *PieChart) Freeze()

func (*PieChart) Hash

func (w *PieChart) Hash() (uint32, error)

func (*PieChart) String

func (w *PieChart) String() string

func (*PieChart) Truth

func (w *PieChart) Truth() starlark.Bool

func (*PieChart) Type

func (w *PieChart) Type() string

type Plot

type Plot struct {
	render.Plot
	// contains filtered or unexported fields
}

func (*Plot) AsRenderWidget

func (w *Plot) AsRenderWidget() render.Widget

func (*Plot) Attr

func (w *Plot) Attr(name string) (starlark.Value, error)

func (*Plot) AttrNames

func (w *Plot) AttrNames() []string

func (*Plot) Freeze

func (w *Plot) Freeze()

func (*Plot) Hash

func (w *Plot) Hash() (uint32, error)

func (*Plot) String

func (w *Plot) String() string

func (*Plot) Truth

func (w *Plot) Truth() starlark.Bool

func (*Plot) Type

func (w *Plot) Type() string

type Polygon added in v0.50.0

type Polygon struct {
	render.Polygon
	// contains filtered or unexported fields
}

func (*Polygon) AsRenderWidget added in v0.50.0

func (w *Polygon) AsRenderWidget() render.Widget

func (*Polygon) Attr added in v0.50.0

func (w *Polygon) Attr(name string) (starlark.Value, error)

func (*Polygon) AttrNames added in v0.50.0

func (w *Polygon) AttrNames() []string

func (*Polygon) Freeze added in v0.50.0

func (w *Polygon) Freeze()

func (*Polygon) Hash added in v0.50.0

func (w *Polygon) Hash() (uint32, error)

func (*Polygon) String added in v0.50.0

func (w *Polygon) String() string

func (*Polygon) Truth added in v0.50.0

func (w *Polygon) Truth() starlark.Bool

func (*Polygon) Type added in v0.50.0

func (w *Polygon) Type() string

type Root

type Root struct {
	render.Root
	// contains filtered or unexported fields
}

func (*Root) AsRenderRoot

func (w *Root) AsRenderRoot() render.Root

func (*Root) Attr

func (w *Root) Attr(name string) (starlark.Value, error)

func (*Root) AttrNames

func (w *Root) AttrNames() []string

func (*Root) Freeze

func (w *Root) Freeze()

func (*Root) Hash

func (w *Root) Hash() (uint32, error)

func (*Root) String

func (w *Root) String() string

func (*Root) Truth

func (w *Root) Truth() starlark.Bool

func (*Root) Type

func (w *Root) Type() string

type Rootable

type Rootable interface {
	AsRenderRoot() render.Root
}

type Row

type Row struct {
	render.Row
	// contains filtered or unexported fields
}

func (*Row) AsRenderWidget

func (w *Row) AsRenderWidget() render.Widget

func (*Row) Attr

func (w *Row) Attr(name string) (starlark.Value, error)

func (*Row) AttrNames

func (w *Row) AttrNames() []string

func (*Row) Freeze

func (w *Row) Freeze()

func (*Row) Hash

func (w *Row) Hash() (uint32, error)

func (*Row) String

func (w *Row) String() string

func (*Row) Truth

func (w *Row) Truth() starlark.Bool

func (*Row) Type

func (w *Row) Type() string

type Sequence

type Sequence struct {
	render.Sequence
	// contains filtered or unexported fields
}

func (*Sequence) AsRenderWidget

func (w *Sequence) AsRenderWidget() render.Widget

func (*Sequence) Attr

func (w *Sequence) Attr(name string) (starlark.Value, error)

func (*Sequence) AttrNames

func (w *Sequence) AttrNames() []string

func (*Sequence) Freeze

func (w *Sequence) Freeze()

func (*Sequence) Hash

func (w *Sequence) Hash() (uint32, error)

func (*Sequence) String

func (w *Sequence) String() string

func (*Sequence) Truth

func (w *Sequence) Truth() starlark.Bool

func (*Sequence) Type

func (w *Sequence) Type() string

type Stack

type Stack struct {
	render.Stack
	// contains filtered or unexported fields
}

func (*Stack) AsRenderWidget

func (w *Stack) AsRenderWidget() render.Widget

func (*Stack) Attr

func (w *Stack) Attr(name string) (starlark.Value, error)

func (*Stack) AttrNames

func (w *Stack) AttrNames() []string

func (*Stack) Freeze

func (w *Stack) Freeze()

func (*Stack) Hash

func (w *Stack) Hash() (uint32, error)

func (*Stack) String

func (w *Stack) String() string

func (*Stack) Truth

func (w *Stack) Truth() starlark.Bool

func (*Stack) Type

func (w *Stack) Type() string

type Text

type Text struct {
	render.Text
	// contains filtered or unexported fields
}

func (*Text) AsRenderWidget

func (w *Text) AsRenderWidget() render.Widget

func (*Text) Attr

func (w *Text) Attr(name string) (starlark.Value, error)

func (*Text) AttrNames

func (w *Text) AttrNames() []string

func (*Text) Freeze

func (w *Text) Freeze()

func (*Text) Hash

func (w *Text) Hash() (uint32, error)

func (*Text) String

func (w *Text) String() string

func (*Text) Truth

func (w *Text) Truth() starlark.Bool

func (*Text) Type

func (w *Text) Type() string

type Widget

type Widget interface {
	AsRenderWidget() render.Widget
}

type WrappedText

type WrappedText struct {
	render.WrappedText
	// contains filtered or unexported fields
}

func (*WrappedText) AsRenderWidget

func (w *WrappedText) AsRenderWidget() render.Widget

func (*WrappedText) Attr

func (w *WrappedText) Attr(name string) (starlark.Value, error)

func (*WrappedText) AttrNames

func (w *WrappedText) AttrNames() []string

func (*WrappedText) Freeze

func (w *WrappedText) Freeze()

func (*WrappedText) Hash

func (w *WrappedText) Hash() (uint32, error)

func (*WrappedText) String

func (w *WrappedText) String() string

func (*WrappedText) Truth

func (w *WrappedText) Truth() starlark.Bool

func (*WrappedText) Type

func (w *WrappedText) Type() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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