atomic

package
v0.0.0-...-147c7d7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2016 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AtomIdError = Xrror("atom: '%s' returned an identifier of 0.").Out
View Source
var AtomInternError = Xrror("Atom: Error interning atom '%s': %s").Out
View Source
var AtomNameError = Xrror("AtomName: Error fetching name for ATOM id '%d': %s").Out
View Source
var GetPropertyError = Xrror("%s").Out

Functions

func Xrror

func Xrror(err string) *atomicError

Types

type AtomVals

type AtomVals interface {
	PropValAtom(*xproto.GetPropertyReply, error) (string, error)
	PropValAtoms(*xproto.GetPropertyReply, error) ([]string, error)
}

type Atomic

func New

func New(c *xgb.Conn) Atomic

type Converter

type Converter interface {
	AtomToUint(ids []xproto.Atom) []uint
	StrToAtoms([]string) ([]uint, error)
	WindowToInt([]xproto.Window) []uint
}

type NumVals

type NumVals interface {
	PropValNum(*xproto.GetPropertyReply, error) (uint, error)
	PropValNums(*xproto.GetPropertyReply, error) ([]uint, error)
	PropValNum64(*xproto.GetPropertyReply, error) (int64, error)
}

type StringVals

type StringVals interface {
	PropValStr(*xproto.GetPropertyReply, error) (string, error)
	PropValStrs(*xproto.GetPropertyReply, error) ([]string, error)
}

type WindowVals

type WindowVals interface {
	PropValWindow(*xproto.GetPropertyReply, error) (xproto.Window, error)
	PropValWindows(*xproto.GetPropertyReply, error) ([]xproto.Window, error)
}

Jump to

Keyboard shortcuts

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