adraw

package
v0.0.0-...-d3fc8e5 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Black  draw.Color = 0x1D1F2100
	White  draw.Color = 0xC5C8C600
	Yellow draw.Color = 0xD2992200
	Blue   draw.Color = 0x81A2BE00
	Grey   draw.Color = 0x30303000
)

Variables

View Source
var (
	Display *draw.Display

	BlackDefault *draw.Image
	TagCols      [frame.NCOL]*draw.Image
	TextCols     [frame.NCOL]*draw.Image

	Button       *draw.Image
	ColButton    *draw.Image
	ModButton    *draw.Image
	Button2Color *draw.Image
	Button3Color *draw.Image
)
View Source
var BoxCursor = draw.Cursor{
	Point: draw.Point{-7, -7},
	White: [...]uint8{
		0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
		0xFF, 0xFF, 0xF8, 0x1F, 0xF8, 0x1F, 0xF8, 0x1F,
		0xF8, 0x1F, 0xF8, 0x1F, 0xF8, 0x1F, 0xFF, 0xFF,
		0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
	},
	Black: [...]uint8{
		0x00, 0x00, 0x7F, 0xFE, 0x7F, 0xFE, 0x7F, 0xFE,
		0x70, 0x0E, 0x70, 0x0E, 0x70, 0x0E, 0x70, 0x0E,
		0x70, 0x0E, 0x70, 0x0E, 0x70, 0x0E, 0x70, 0x0E,
		0x7F, 0xFE, 0x7F, 0xFE, 0x7F, 0xFE, 0x00, 0x00,
	},
}
View Source
var BoxCursor2 = draw.Cursor2{
	Point: draw.Point{-15, -15},
	White: [...]uint8{
		0xFF, 0xFF, 0xFF, 0xFF,
		0xFF, 0xFF, 0xFF, 0xFF,
		0xFF, 0xFF, 0xFF, 0xFF,
		0xFF, 0xFF, 0xFF, 0xFF,
		0xFF, 0xFF, 0xFF, 0xFF,
		0xFF, 0xFF, 0xFF, 0xFF,
		0xFF, 0xFF, 0xFF, 0xFF,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FC,
		0x3F, 0x00, 0x00, 0xFC,
		0x3F, 0x00, 0x00, 0xFC,
		0x3F, 0x00, 0x00, 0xFC,
		0x3F, 0x00, 0x00, 0xFC,
		0x3F, 0x00, 0x00, 0xFC,
		0x3F, 0x00, 0x00, 0xFC,
		0x3F, 0x00, 0x00, 0xFC,
		0x3F, 0xFF, 0xFF, 0xFC,
		0x3F, 0xFF, 0xFF, 0xFC,
		0x3F, 0xFF, 0xFF, 0xFC,
		0x3F, 0xFF, 0xFF, 0xFC,
		0x3F, 0xFF, 0xFF, 0xFC,
		0x3F, 0xFF, 0xFF, 0xFC,
		0x00, 0x00, 0x00, 0x00,
		0x00, 0x00, 0x00, 0x00,
	},
}
View Source
var Font *draw.Font
View Source
var FontCache []*RefFont
View Source
var FontNames = []string{
	"/lib/font/bit/lucsans/euro.8.font",
	"/lib/font/bit/lucm/unicode.9.font",
}
View Source
var RefFonts [2]*RefFont

Functions

func Border

func Border() int

func ButtonBorder

func ButtonBorder() int

func CloseFont

func CloseFont(r *RefFont)

func Init

func Init()

func Margin

func Margin() int

func Scrollgap

func Scrollgap() int

func Scrollwid

func Scrollwid() int

Types

type RefFont

type RefFont struct {
	Ref uint32
	F   *draw.Font
	// contains filtered or unexported fields
}
var RefFont1 RefFont

func FindFont

func FindFont(fix, save, setfont bool, name string) *RefFont

Jump to

Keyboard shortcuts

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