monitors

package
v0.0.0-...-24dab48 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2015 License: MIT, MIT Imports: 14 Imported by: 6

Documentation

Index

Constants

View Source
const MAXINT = int(^uint(0) >> 1)

Variables

View Source
var UpdateError = Xrror("Monitors update error: %s").Out

Functions

func Focus

func Focus(monitors *branch.Branch, mon Monitor)

func FocusSelect

func FocusSelect(sel []selector.Selector, monitors *branch.Branch)

func Initialize

func Initialize(monitors *branch.Branch, x handler.Handler, s settings.Settings)

func Update

func Update(monitors *branch.Branch, x handler.Handler, s settings.Settings) error

func Xrror

func Xrror(err string) *monitorsError

Types

type MatchMonitor

type MatchMonitor func(Monitor) bool

type Monitor

type Monitor interface {
	settings.Settings
	Id() uint32
	Name() string
	Rectangle() xproto.Rectangle
	SetRectangle(xproto.Rectangle)
	UpdateRoot()
	Wired() bool
	Primary() bool
	Focus()
	Focused() bool
	Set(string, bool)
	Contains(xproto.Point) bool
	Desktops() *branch.Branch
	Merge(Monitor)
	Delete()
}

func All

func All(monitors *branch.Branch) []Monitor

func Cycled

func Cycled(monitors *branch.Branch, sel selector.Selector) Monitor

func Focused

func Focused(monitors *branch.Branch) Monitor

func FromClient

func FromClient(monitors *branch.Branch, c clients.Client) Monitor

func NewMonitor

func NewMonitor(id uint32, n string, c *xgb.Conn, root xproto.Window, r xproto.Rectangle, s settings.Settings) Monitor

func Next

func Next(monitors *branch.Branch) Monitor

func Prev

func Prev(monitors *branch.Branch) Monitor

func Primary

func Primary(monitors *branch.Branch) Monitor

func Select

func Select(sel []selector.Selector, ms ...*branch.Branch) Monitor

func Tagged

func Tagged(monitors *branch.Branch, sel selector.Selector) Monitor

type UpdateMonitor

type UpdateMonitor func(Monitor) error

Jump to

Keyboard shortcuts

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