Documentation
¶
Index ¶
- type Builder
- type ComponentBuilder
- func (b *ComponentBuilder) Align(s string) any
- func (b *ComponentBuilder) End() any
- func (b *ComponentBuilder) Fill(c color.Color) any
- func (b *ComponentBuilder) Font(font string) any
- func (b *ComponentBuilder) Inset(inset int) any
- func (b *ComponentBuilder) LineWidth(w float64) any
- func (b *ComponentBuilder) Stroke(c color.Color) any
- func (b *ComponentBuilder) StrokeFill(c color.Color) any
- type ContainerBuilder
- func (b *ContainerBuilder) AddComponent(name string, comp layout.Component) (any, error)
- func (b *ContainerBuilder) AddContainer(name string, comp layout.Container) (any, error)
- func (b *ContainerBuilder) ColScaleContainer(scales ...float64) (any, error)
- func (b *ContainerBuilder) FixedContainer(width, height int) (any, error)
- func (b *ContainerBuilder) Image(name string) (any, error)
- func (b *ContainerBuilder) RowContainer() (any, error)
- func (b *ContainerBuilder) Text(name, format string, args ...any) (any, error)
- func (b *ContainerBuilder) TitledContainer(name, title string) (any, error)
- func (b *ContainerBuilder) Value(name, label, format string, args ...any) (any, error)
- type Layout
- type Package
- func (*Package) ColScaleContainer(scales ...float64) layout.Container
- func (*Package) FixedContainer(rect image.Rectangle) layout.Container
- func (*Package) Image() layout.Component
- func (*Package) New(width, height int) any
- func (*Package) RowContainer() layout.Container
- func (*Package) Text(format string, args ...any) layout.Component
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentBuilder ¶
type ComponentBuilder struct {
// contains filtered or unexported fields
}
func (*ComponentBuilder) Align ¶
func (b *ComponentBuilder) Align(s string) any
func (*ComponentBuilder) End ¶
func (b *ComponentBuilder) End() any
func (*ComponentBuilder) Font ¶
func (b *ComponentBuilder) Font(font string) any
func (*ComponentBuilder) Inset ¶
func (b *ComponentBuilder) Inset(inset int) any
func (*ComponentBuilder) LineWidth ¶
func (b *ComponentBuilder) LineWidth(w float64) any
func (*ComponentBuilder) StrokeFill ¶
func (b *ComponentBuilder) StrokeFill(c color.Color) any
type ContainerBuilder ¶
type ContainerBuilder struct {
ComponentBuilder
// contains filtered or unexported fields
}
func (*ContainerBuilder) AddComponent ¶
func (*ContainerBuilder) AddContainer ¶
func (*ContainerBuilder) ColScaleContainer ¶
func (b *ContainerBuilder) ColScaleContainer(scales ...float64) (any, error)
func (*ContainerBuilder) FixedContainer ¶
func (b *ContainerBuilder) FixedContainer(width, height int) (any, error)
func (*ContainerBuilder) RowContainer ¶
func (b *ContainerBuilder) RowContainer() (any, error)
func (*ContainerBuilder) Text ¶
func (b *ContainerBuilder) Text(name, format string, args ...any) (any, error)
func (*ContainerBuilder) TitledContainer ¶
func (b *ContainerBuilder) TitledContainer(name, title string) (any, error)
type Layout ¶
type Layout struct {
// contains filtered or unexported fields
}
func (*Layout) Draw ¶
func (l *Layout) Draw(context draw2d.GraphicContext)
type Package ¶
type Package struct{}
func (*Package) ColScaleContainer ¶
func (*Package) FixedContainer ¶
func (*Package) RowContainer ¶
Click to show internal directories.
Click to hide internal directories.