icccm

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: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	StateRemove = iota
	StateAdd
	StateToggle
)
View Source
const (
	HintInput = (1 << iota)
	HintState
	HintIconPixmap
	HintIconWindow
	HintIconPosition
	HintIconMask
	HintWindowGroup
	HintMessage
	HintUrgency
)
View Source
const (
	SizeHintUSPosition = (1 << iota)
	SizeHintUSSize
	SizeHintPPosition
	SizeHintPSize
	SizeHintPMinSize
	SizeHintPMaxSize
	SizeHintPResizeInc
	SizeHintPAspect
	SizeHintPBaseSize
	SizeHintPWinGravity
)

Variables

View Source
var HintsError = Xrror("There are %d fields in %s, but %d were expected.").Out
View Source
var WmClassGetError = Xrror("Two strings make up WM_CLASS -- found %d in '%v'.").Out

Functions

func Xrror

func Xrror(err string) *icccmError

Types

type EWMH

type EWMH interface {
	SupportedGet() ([]string, error)
	SupportedSet([]string) error
	SupportingWmCheckGet(xproto.Window) (xproto.Window, error)
	SupportingWmCheckSet(xproto.Window, xproto.Window) error
	DesktopNamesGet() ([]string, error)
	DesktopNamesSet([]string) error
	NumberOfDesktopsGet() (uint, error)
	CurrentDesktopGet() (uint, error)
	ClientListGet() ([]xproto.Window, error)
	ActiveWindowGet() (xproto.Window, error)
	ActiveWindowSet(xproto.Window) error
	CloseWindow(xproto.Window) error
	CloseWindowExtra(xproto.Window, xproto.Timestamp, int) error
	WmDesktopGet(xproto.Window) (uint, error)
	WmDesktopSet(xproto.Window, uint) error
	WmStateGet(xproto.Window) ([]string, error)
	WmStateSet(xproto.Window, []string) error
	WmWindowTypeGet(xproto.Window) ([]string, error)
}

type Hints

type Hints struct {
	Flags                   uint
	Input, InitialState     uint
	IconX, IconY            int
	IconPixmap, IconMask    xproto.Pixmap
	WindowGroup, IconWindow xproto.Window
}

type ICCCM

type ICCCM interface {
	WmClassGet(xproto.Window) (*WmClass, error)
	WmClassSet(xproto.Window, *WmClass) error
	WmHintsGet(xproto.Window) (*Hints, error)
	WmNormalHintsGet(xproto.Window) (*NormalHints, error)
	EWMH
}

func New

func New(c *xgb.Conn, r xproto.Window, a atomic.Atomic) ICCCM

type NormalHints

type NormalHints struct {
	Flags                                                   uint
	X, Y                                                    int
	Width, Height, MinWidth, MinHeight, MaxWidth, MaxHeight uint
	WidthInc, HeightInc                                     uint
	MinAspectNum, MinAspectDen, MaxAspectNum, MaxAspectDen  uint
	BaseWidth, BaseHeight, WinGravity                       uint
}

type WmClass

type WmClass struct {
	Instance, Class string
}

Jump to

Keyboard shortcuts

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