types

package
v0.0.0-...-01d4629 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DEBUG_LAYOUT = false
View Source
const WIDTH = 2

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrowHead

type ArrowHead struct {
	Type   string  `yaml:"Type"`
	Length float64 `yaml:"Length"`
	Width  string  `yaml:"Width"`
}

type HorizontalStack

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

func (HorizontalStack) Init

func (v HorizontalStack) Init() *Resource
type Link struct {
	Source          *Resource
	SourcePosition  string
	SourceArrowHead ArrowHead
	Target          *Resource
	TargetPosition  string
	TargetArrowHead ArrowHead
	LineWidth       int
	// contains filtered or unexported fields
}

func (*Link) Draw

func (l *Link) Draw(img *image.RGBA)

func (Link) Init

func (l Link) Init(source *Resource, sourcePosition string, sourceArrowHead ArrowHead, target *Resource, targetPosition string, targetArrowHead ArrowHead, lineWidth int) *Link

type Margin

type Margin struct {
	Top    int
	Right  int
	Bottom int
	Left   int
}

type Padding

type Padding struct {
	Top    int
	Right  int
	Bottom int
	Left   int
}

type Resource

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

func (*Resource) AddChild

func (r *Resource) AddChild(child *Resource)
func (r *Resource) AddLink(link *Link)

func (*Resource) AddParent

func (r *Resource) AddParent()

func (*Resource) Draw

func (r *Resource) Draw(img *image.RGBA, parent *Resource) *image.RGBA

func (*Resource) GetBindings

func (r *Resource) GetBindings() image.Rectangle

func (*Resource) GetMargin

func (r *Resource) GetMargin() Margin

func (*Resource) GetPadding

func (r *Resource) GetPadding() Padding

func (*Resource) Init

func (r *Resource) Init() *Resource

func (*Resource) IsDrawn

func (r *Resource) IsDrawn() bool

func (*Resource) LoadIcon

func (r *Resource) LoadIcon(imageFilePath string) error

func (*Resource) Scale

func (r *Resource) Scale(parent *Resource)

func (*Resource) SetAlign

func (r *Resource) SetAlign(align string)

func (*Resource) SetBindings

func (r *Resource) SetBindings(bindings image.Rectangle)

func (*Resource) SetBorderColor

func (r *Resource) SetBorderColor(borderColor color.RGBA)

func (*Resource) SetDirection

func (r *Resource) SetDirection(direction string)

func (*Resource) SetFillColor

func (r *Resource) SetFillColor(fillColor color.RGBA)

func (*Resource) SetIconBounds

func (r *Resource) SetIconBounds(bounds image.Rectangle)

func (*Resource) SetLabel

func (r *Resource) SetLabel(label *string, labelColor *color.RGBA, labelFont *string)

func (*Resource) Translation

func (r *Resource) Translation(dx, dy int)

func (*Resource) ZeroAdjust

func (r *Resource) ZeroAdjust()

type VerticalStack

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

func (VerticalStack) Init

func (h VerticalStack) Init() *Resource

Jump to

Keyboard shortcuts

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