layout

package
v0.0.0-...-750f124 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorSet

type ColorSet struct {
	Label        color.RGBA
	Value        color.RGBA
	LabelData    color.RGBA
	ValueData    color.RGBA
	LabelCurrent color.RGBA
	ValueCurrent color.RGBA
	LabelInput   color.RGBA
	ValueInput   color.RGBA
}

type Layout

type Layout struct {
	Fontsize int32
	LabelX   int32
	ValueX   int32
	DeltaY   int32
	Current  int32
	Colors   *ColorSet
}

func NewLayout

func NewLayout(fontsize, current int32) *Layout

func (*Layout) Layout

func (lay *Layout) Layout(startY int32,
	notes *notes.Notebook,
	draw func(y int32, label string, labelColor color.RGBA,
		value string, valueColor color.RGBA)) int32

func (*Layout) Refresh

func (lay *Layout) Refresh(fontsize, current int32)

Jump to

Keyboard shortcuts

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