xob

package
v0.0.0-...-30cb9ea Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package xob is a pure-go package for drawing X11 overlay bars.

Inspired by github.com/florentc/xob@d6ca69d6a45a9c1ac1c99e00357d0df32f956f19.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultStyle

func DefaultStyle() style

func I3Style

func I3Style() style

Types

type Anchor

type Anchor int
const (
	AnchorTopLeft Anchor = iota
	AnchorTopCenter
	AnchorTopRight
	AnchorMiddleLeft
	AnchorMiddleCenter
	AnchorMiddleRight
	AnchorBottomLeft
	AnchorBottomCenter
	AnchorBottomRight
)

type Bar

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

func NewBar

func NewBar(conf style) (*Bar, error)

func (*Bar) Close

func (dc *Bar) Close()

func (*Bar) Hide

func (dc *Bar) Hide() error

func (*Bar) Show

func (dc *Bar) Show(value int, cap int, overflowMode OverflowMode, showMode ShowMode) error

type Orientation

type Orientation int
const (
	OrientationHorizontal Orientation = iota
	OrientationVertical
)

type OverflowMode

type OverflowMode int
const (
	OverflowModeHidden OverflowMode = iota
	OverflowModeProportional
)

type ShowMode

type ShowMode int
const (
	ShowModeNormal ShowMode = iota
	ShowModeAlternative
)

Jump to

Keyboard shortcuts

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