common

package
v0.0.0-...-9d4922b Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ColorBackground = color.NRGBA{R: 0xc0, G: 0xc0, B: 0xc0, A: 0xff}
	ColorRed        = color.NRGBA{R: 0xc0, G: 0x40, B: 0x40, A: 0xff}
	ColorGreen      = color.NRGBA{R: 0x40, G: 0xc0, B: 0x40, A: 0xff}
	ColorBlue       = color.NRGBA{R: 0x40, G: 0x40, B: 0xc0, A: 0xff}
)

Functions

func ColorBox

func ColorBox(gtx layout.Context, size image.Point, color color.NRGBA) layout.Dimensions

func MustIcon

func MustIcon(icon ActionIcon) *widget.Icon

Types

type ActionIcon

type ActionIcon []byte

type Div

type Div struct {
	widget.Border
	layout.Direction
	layout.Inset
	NoDirection bool
}

func (Div) Layout

func (b Div) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions

Jump to

Keyboard shortcuts

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