adraw

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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,
		0xFF, 0xFF, 0xFF, 0xFF,
		0xFF, 0xFF, 0xFF, 0xFF,
		0xFF, 0xFF, 0xFF, 0xFF,
		0xFF, 0xC0, 0x03, 0xFF,
		0xFF, 0xC0, 0x03, 0xFF,
		0xFF, 0xC0, 0x03, 0xFF,
		0xFF, 0xC0, 0x03, 0xFF,
		0xFF, 0xC0, 0x03, 0xFF,
		0xFF, 0xC0, 0x03, 0xFF,
		0xFF, 0xC0, 0x03, 0xFF,
		0xFF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FF, 0xFF, 0xFC,
		0x3F, 0xFF, 0xFF, 0xFC,
		0x3F, 0xFF, 0xFF, 0xFC,
		0x00, 0x00, 0x00, 0x00,
		0x00, 0x00, 0x00, 0x00,
	},
}
View Source
var Button *draw.Image
View Source
var Button2Color *draw.Image
View Source
var Button3Color *draw.Image
View Source
var ColButton *draw.Image
View Source
var Display *draw.Display
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 ModButton *draw.Image
View Source
var RefFonts [2]*RefFont
View Source
var TagCols [frame.NCOL]*draw.Image
View Source
var TextCols [frame.NCOL]*draw.Image

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