palette

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultBackground    = ColorType(white)
	DefaultBoxBackground = ColorType(white)
	DefaultEdge          = ColorType(gray)
	ActiveBoxBackground  = ColorType(silver)
	ActiveEdge           = ColorType(red)
	DefaultText          = ColorType(black)
	CursorBlock          = ColorType(red)
	DefaultLine          = ColorType(lite)
)

Functions

This section is empty.

Types

type ColorType

type ColorType color.Color

type Config

type Config struct {
	Window configWindow `json:"window"`
	Boxes  configBoxes  `json:"boxes"`
	Fonts  configFonts  `json:"fonts"`
}

type Palette

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

func NewPalette

func NewPalette() *Palette

func (*Palette) BoxHeight

func (p *Palette) BoxHeight(level int, linecount int) int

func (*Palette) BoxWidth

func (p *Palette) BoxWidth(level int) int

func (*Palette) Color

func (p *Palette) Color(c ColorType) color.Color

func (*Palette) Columns added in v0.2.1

func (p *Palette) Columns() int

func (*Palette) CursorPoint

func (p *Palette) CursorPoint() image.Point

func (*Palette) CursorSize

func (p *Palette) CursorSize() image.Point

func (*Palette) DefaultAppRect

func (p *Palette) DefaultAppRect() image.Rectangle

func (*Palette) DefaultFont

func (p *Palette) DefaultFont() *impress.Font

func (*Palette) HorizontalBoxAlign

func (p *Palette) HorizontalBoxAlign() int

func (*Palette) HorizontalBoxOffset

func (p *Palette) HorizontalBoxOffset(level int) int

func (*Palette) HorizontalTextAlign

func (p *Palette) HorizontalTextAlign() int

func (*Palette) TextLineOffset

func (p *Palette) TextLineOffset() int

func (*Palette) TextLinePoint

func (p *Palette) TextLinePoint(level int, lineno int) image.Point

func (*Palette) VerticalBoxAlign

func (p *Palette) VerticalBoxAlign() int

func (*Palette) VerticalBoxOffset

func (p *Palette) VerticalBoxOffset() int

func (*Palette) VerticalTextAlign

func (p *Palette) VerticalTextAlign() int

Jump to

Keyboard shortcuts

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