manager

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: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	COMMENT      = byte('#')
	LINECONTINUE = byte('\\')
)
View Source
const (
	StateRemove = iota
	StateAdd
	StateToggle
)

Variables

View Source
var EventError = Xrror("Event : %+v is not recognized despite being passed to Manager function %s.").Out
View Source
var RemoveClientError = Xrror("Unable to remove client, branch or client at Location does not exist.")

Functions

func Xrror

func Xrror(err string) *managerError

Types

type Location

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

type Loops

type Loops struct {
	Pre  chan struct{}
	Post chan struct{}
	Quit chan struct{}
	Comm chan string
	Sys  chan os.Signal
}

type Manager

func New

func New() *Manager

func (*Manager) ClientMessage

func (m *Manager) ClientMessage(evt xgb.Event) error

func (*Manager) Clients

func (m *Manager) Clients() []clients.Client

func (*Manager) ConfigureRequest

func (m *Manager) ConfigureRequest(evt xgb.Event) error

func (*Manager) Current

func (m *Manager) Current() Location

func (*Manager) Desktops

func (m *Manager) Desktops() []desktops.Desktop

func (*Manager) DestroyNotify

func (m *Manager) DestroyNotify(evt xgb.Event) error

func (*Manager) EnterNotify

func (m *Manager) EnterNotify(evt xgb.Event) error

func (*Manager) FocusIn

func (m *Manager) FocusIn(evt xgb.Event) error

func (*Manager) HandleState

func (m *Manager) HandleState(loc Location, state, action uint32)

func (*Manager) LoadConfig

func (m *Manager) LoadConfig(f string) error

func (*Manager) Locate

func (m *Manager) Locate(origin Location, sel ...selector.Selector) (Location, bool)

func (*Manager) LocationDesktopIndex

func (m *Manager) LocationDesktopIndex(i int) (Location, bool)

func (*Manager) LocationWindow

func (m *Manager) LocationWindow(win xproto.Window) (Location, bool)

func (*Manager) Looping

func (m *Manager) Looping(l *net.UnixListener) *Loops

func (*Manager) MapRequest

func (m *Manager) MapRequest(evt xgb.Event) error

func (*Manager) Monitors

func (m *Manager) Monitors() []monitors.Monitor

func (*Manager) MotionNotify

func (m *Manager) MotionNotify(evt xgb.Event) error

func (*Manager) PropertyNotify

func (m *Manager) PropertyNotify(evt xgb.Event) error

func (*Manager) RemoveClient

func (m *Manager) RemoveClient(loc Location) error

func (*Manager) ScreenChange

func (m *Manager) ScreenChange(evt xgb.Event) error

func (*Manager) SetEventFns

func (m *Manager) SetEventFns()

func (*Manager) SignalHandler

func (m *Manager) SignalHandler(sig os.Signal)

func (*Manager) Tree

func (m *Manager) Tree() *branch.Branch

func (*Manager) UnmapNotify

func (m *Manager) UnmapNotify(evt xgb.Event) error

Jump to

Keyboard shortcuts

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