icons

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package icons draws the small icons the example applications use for their menus and toolbars, so the examples need no image files; an application would load its own (e.g. PNGs with image.Decode).

Index

Constants

View Source
const Size = 16

Size is the size of the menu icons. Toolbar icons are drawn with Draw at any size.

Variables

This section is empty.

Functions

func App

func App(size int, color string, mark func(dc *gg.Context)) image.Image

App is a rounded square with a letter-like mark, the icon of an application in the launcher: color is its background.

func Arrow

func Arrow(size int, up bool) image.Image

Arrow is a green arrow up or down.

func Back

func Back(size int) image.Image

Back is an arrow to the left.

func Cross

func Cross(size int) image.Image

Cross is a red cross.

func Draw

func Draw(size int, draw func(dc *gg.Context)) image.Image

Draw draws an icon of the given size; the drawing is in a 16x16 coordinate space, scaled to the size.

func File

func File(size int) image.Image

File is a sheet of paper with lines of text.

func Folder

func Folder(size int) image.Image

Folder is a yellow folder.

func Info

func Info(size int) image.Image

Info is a blue circle with an "i".

func Moon

func Moon(size int) image.Image

Moon is a crescent moon.

func New

func New(size int) image.Image

New is a sheet of paper with a folded corner.

func Pencil

func Pencil(size int) image.Image

Pencil is a pencil for "edit".

func Plus

func Plus(size int) image.Image

Plus is a green plus.

func Printer

func Printer(size int) image.Image

Printer is a printer with a sheet of paper.

func Redo

func Redo(size int) image.Image

Redo is a curved arrow to the right.

func Save

func Save(size int) image.Image

Save is a floppy disk.

func Search(size int) image.Image

Search is a magnifying glass.

func Sun

func Sun(size int) image.Image

Sun is a sun with rays.

func Undo

func Undo(size int) image.Image

Undo is a curved arrow to the left; Redo the same to the right.

Types

This section is empty.

Jump to

Keyboard shortcuts

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