palette

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 8 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(cursor)
	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"`
	Dialogs configDialogs `json:"dialogs"`
	Fonts   configFonts   `json:"fonts"`
}

type Palette

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

func NewPalette

func NewPalette() *Palette

func (*Palette) BoxAlign added in v0.2.3

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

BoxAlign returns space from application edge and any map node border

func (*Palette) BoxOffset added in v0.2.3

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

BoxOffset return space between two map node

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

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

CursorSize returns cursor size

func (*Palette) DefaultAppRect

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

func (*Palette) DefaultFont

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

DefaultFont returns default font

func (*Palette) FontClose added in v0.2.3

func (p *Palette) FontClose()
func (p *Palette) FontLink(app *impress.Application)

func (*Palette) TextAlign added in v0.2.3

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

TextAlign returns space from border to text for a map node

func (*Palette) TextLineOffset

func (p *Palette) TextLineOffset() int

TextLineOffset returns extra space between two text line for a map node

Jump to

Keyboard shortcuts

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