layout

package
v0.0.0-...-17e2f5f Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

func (*Builder) Build

func (b *Builder) Build() *Layout

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) Fill

func (b *ComponentBuilder) Fill(c color.Color) 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) Stroke

func (b *ComponentBuilder) Stroke(c color.Color) 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 (b *ContainerBuilder) AddComponent(name string, comp layout.Component) (any, error)

func (*ContainerBuilder) AddContainer

func (b *ContainerBuilder) AddContainer(name string, comp layout.Container) (any, error)

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) Image

func (b *ContainerBuilder) Image(name string) (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)

func (*ContainerBuilder) Value

func (b *ContainerBuilder) Value(name, label, format string, args ...any) (any, error)

type Layout

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

func (*Layout) Draw

func (l *Layout) Draw(context draw2d.GraphicContext)

func (*Layout) Get

func (l *Layout) Get(name string) layout.Component

func (*Layout) Layout

func (l *Layout) Layout(ctx draw2d.GraphicContext) bool

type Package

type Package struct{}

func (*Package) ColScaleContainer

func (*Package) ColScaleContainer(scales ...float64) layout.Container

func (*Package) FixedContainer

func (*Package) FixedContainer(rect image.Rectangle) layout.Container

func (*Package) Image

func (*Package) Image() layout.Component

func (*Package) New

func (*Package) New(width, height int) any

func (*Package) RowContainer

func (*Package) RowContainer() layout.Container

func (*Package) Text

func (*Package) Text(format string, args ...any) layout.Component

Jump to

Keyboard shortcuts

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