bar

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawCopyOverRGBAToBGRA

func DrawCopyOverRGBAToBGRA(dst *xgraphics.Image, r image.Rectangle, src *image.RGBA, sp image.Point)

func DrawCopySrcRGBAToBGRA

func DrawCopySrcRGBAToBGRA(dst *xgraphics.Image, r image.Rectangle, src *image.RGBA, sp image.Point)

Types

type Bar

type Bar struct {
	Win xproto.Window
	Buf *xgraphics.Image

	TrayWidth int

	LeftRoot   *ui.Root
	CenterRoot *ui.Root
	RightRoot  *ui.Root
	// contains filtered or unexported fields
}

func NewBar

func NewBar(
	ctx ui.Context,
	X *xgbutil.XUtil,
	screen x.Screen,
	mk *markup.Markup,
	widthTray bool,
) (*Bar, error)

func (*Bar) PaintCenter

func (b *Bar) PaintCenter(im *image.RGBA)

func (*Bar) PaintLeft

func (b *Bar) PaintLeft(im *image.RGBA)

func (*Bar) PaintRight

func (b *Bar) PaintRight(im *image.RGBA)

func (*Bar) SetTrayWidth

func (b *Bar) SetTrayWidth(w int)

type Bars

type Bars struct {
	Bars []*Bar
	// contains filtered or unexported fields
}

func CreateBars

func CreateBars(ctx ui.Context, x *xgbutil.XUtil) (*Bars, error)

Jump to

Keyboard shortcuts

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