decoration

package
v0.0.0-...-1378ae3 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Border

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

func (*Border) Active

func (b *Border) Active()

func (*Border) ApplyRect

func (b *Border) ApplyRect(config *WinConfig, rect xrect.Rect, f int) xrect.Rect

func (*Border) Attention

func (b *Border) Attention()

func (*Border) Bottom

func (b *Border) Bottom(config *WinConfig) int

func (*Border) Destroy

func (b *Border) Destroy()

func (*Border) HeightNeeded

func (b *Border) HeightNeeded(config *WinConfig) int

func (*Border) InActive

func (b *Border) InActive()

func (*Border) Left

func (b *Border) Left(config *WinConfig) int

func (*Border) Right

func (b *Border) Right(config *WinConfig) int

func (*Border) Top

func (b *Border) Top(config *WinConfig) int

func (*Border) WidthNeeded

func (b *Border) WidthNeeded(config *WinConfig) int

type BorderConfig

type BorderConfig struct {
	Size           int
	ColorNormal    uint32
	ColorActive    uint32
	ColorAttention uint32
}

type Decoration

type Decoration interface {
	ApplyRect(config *WinConfig, rect xrect.Rect, f int) xrect.Rect
	WidthNeeded(config *WinConfig) int
	HeightNeeded(config *WinConfig) int
	Left(config *WinConfig) int
	Right(config *WinConfig) int
	Top(config *WinConfig) int
	Bottom(config *WinConfig) int
	Active()
	InActive()
	Attention()
	Destroy()
}

func CreateBorder

func CreateBorder(parent *xwindow.Window, position Position, config *BorderConfig) Decoration

type Decorations

type Decorations []Decoration

func (*Decorations) Active

func (d *Decorations) Active()

func (*Decorations) ApplyRect

func (d *Decorations) ApplyRect(config *WinConfig, rect xrect.Rect, f int) xrect.Rect

func (*Decorations) Attention

func (d *Decorations) Attention()

func (*Decorations) Bottom

func (d *Decorations) Bottom(config *WinConfig) int

func (*Decorations) Destroy

func (d *Decorations) Destroy()

func (*Decorations) HeightNeeded

func (d *Decorations) HeightNeeded(config *WinConfig) int

func (*Decorations) InActive

func (d *Decorations) InActive()

func (*Decorations) Left

func (d *Decorations) Left(config *WinConfig) int

func (*Decorations) Right

func (d *Decorations) Right(config *WinConfig) int

func (*Decorations) Top

func (d *Decorations) Top(config *WinConfig) int

func (*Decorations) WidthNeeded

func (d *Decorations) WidthNeeded(config *WinConfig) int

type Position

type Position int
const (
	Left Position = iota
	Right
	Top
	Bottom
)

type WinConfig

type WinConfig struct {
	Fullscreen bool
}

Jump to

Keyboard shortcuts

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