icons

package
v0.0.5-0...-0379fef Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IconTheme *gtk.IconTheme

Functions

func Folder

func Folder(color uint32) image.Image

func FromPNG

func FromPNG(b64 string) image.Image

func GetIcon

func GetIcon(icon string, size int) *gdk.Pixbuf

func GetIconUnsafe

func GetIconUnsafe(icon string, size int) *gdk.Pixbuf

func Pixbuf

func Pixbuf(img image.Image) (*gdk.Pixbuf, error)

func PixbufIcon

func PixbufIcon(img image.Image, size int) (*gdk.Pixbuf, error)

func SetImage

func SetImage(img image.Image, gtkimg *gtk.Image) error

func Solid

func Solid(w, h int, r, g, b, a uint8) image.Image

Types

type Circle

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

func NewCircle

func NewCircle(radius int) Circle

func (Circle) At

func (c Circle) At(x, y int) color.Color

func (Circle) Bounds

func (c Circle) Bounds() image.Rectangle

func (Circle) ColorModel

func (c Circle) ColorModel() color.Model

Jump to

Keyboard shortcuts

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