icccm

package
v0.0.0-...-c8e43d0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SizeHintsFlagUSPosition = 1 << iota
	SizeHintsFlagUSSize
	SizeHintsFlagPPosition
	SizeHintsFlagPSize
	SizeHintsFlagPMinSize
	SizeHintsFlagPMaxSize
	SizeHintsFlagPResizeInc
	SizeHintsFlagPAspect
	SizeHintsFlagPBaseSize
	SizeHintsFlagPWinGravity
)

WM_SIZE_HINTS.flags bit definitions

View Source
const (
	HintsFlagInput = 1 << iota
	HintsFlagState
	HintsFlagIconPixmap
	HintsFlagIconWindow
	HintsFlagIconPostion
	HintsFlagIconMask
	HinstFlagWindowGroup
	HintsFlagMessage // this bit is obsolete
	HinstFlagUrgency
)
View Source
const (
	StateWithdrawn = 0
	StateNormal    = 1
	StateIconic    = 3
)

Variables

This section is empty.

Functions

func RequestChangeWMState

func RequestChangeWMState(c *x.Conn, window x.Window, state uint32) x.VoidCookie

Types

type AspectRatio

type AspectRatio struct {
	Numerator, Denominator uint32
}

type GetAtomsCookie

type GetAtomsCookie x.GetPropertyCookie

func GetWMProtocols

func GetWMProtocols(c *x.Conn, window x.Window) GetAtomsCookie

WM_PROTOCOLS

func (GetAtomsCookie) Reply

func (cookie GetAtomsCookie) Reply(c *x.Conn) ([]x.Atom, error)

type GetTextCookie

type GetTextCookie x.GetPropertyCookie

func GetWMClientMachine

func GetWMClientMachine(c *x.Conn, window x.Window) GetTextCookie

WM_CLIENT_MACHINE

func GetWMIconName

func GetWMIconName(c *x.Conn, window x.Window) GetTextCookie

WM_ICON_NAME

func GetWMName

func GetWMName(c *x.Conn, window x.Window) GetTextCookie

WM_NAME

func (GetTextCookie) Reply

func (cookie GetTextCookie) Reply(c *x.Conn) (TextProperty, error)

type GetWMClassCookie

type GetWMClassCookie x.GetPropertyCookie

WM_CLASS

func GetWMClass

func GetWMClass(c *x.Conn, window x.Window) GetWMClassCookie

func (GetWMClassCookie) Reply

func (cookie GetWMClassCookie) Reply(c *x.Conn) (WMClass, error)

type GetWMHintsCookie

type GetWMHintsCookie x.GetPropertyCookie

func GetWMHints

func GetWMHints(c *x.Conn, window x.Window) GetWMHintsCookie

func (GetWMHintsCookie) Reply

func (cookie GetWMHintsCookie) Reply(c *x.Conn) (*WMHints, error)

type GetWMIconSizeCookie

type GetWMIconSizeCookie x.GetPropertyCookie

func GetWMIconSize

func GetWMIconSize(c *x.Conn) GetWMIconSizeCookie

func (GetWMIconSizeCookie) Reply

func (cookie GetWMIconSizeCookie) Reply(c *x.Conn) (*WMIconSize, error)

type GetWMSizeHintsCookie

type GetWMSizeHintsCookie x.GetPropertyCookie

func GetWMNormalHints

func GetWMNormalHints(c *x.Conn, window x.Window) GetWMSizeHintsCookie

WM_NORMAL_HINTS

func (GetWMSizeHintsCookie) Reply

func (cookie GetWMSizeHintsCookie) Reply(c *x.Conn) (*WMSizeHints, error)

type GetWMStateCookie

type GetWMStateCookie x.GetPropertyCookie

func GetWMState

func GetWMState(c *x.Conn, window x.Window) GetWMStateCookie

func (GetWMStateCookie) Reply

func (cookie GetWMStateCookie) Reply(c *x.Conn) (WMState, error)

type GetWindowCookie

type GetWindowCookie x.GetPropertyCookie

func GetWMTransientFor

func GetWMTransientFor(c *x.Conn, window x.Window) GetWindowCookie

WM_TRANSIENT_FOR

func (GetWindowCookie) Reply

func (cookie GetWindowCookie) Reply(c *x.Conn) (x.Window, error)

type GetWindowsCookie

type GetWindowsCookie x.GetPropertyCookie

func GetWMColormapWindows

func GetWMColormapWindows(c *x.Conn, window x.Window) GetWindowsCookie

WM_COLORMAP_WINDOWS

func (GetWindowsCookie) Reply

func (cookie GetWindowsCookie) Reply(c *x.Conn) ([]x.Window, error)

type HintsFlags

type HintsFlags uint32

func (HintsFlags) String

func (flags HintsFlags) String() string

type SizeHintsFlags

type SizeHintsFlags uint32

func (SizeHintsFlags) String

func (flags SizeHintsFlags) String() string

type TextProperty

type TextProperty struct {
	Value    []byte
	Encoding x.Atom
	Format   uint8
}

func (*TextProperty) GetStr

func (tp *TextProperty) GetStr() (string, error)

type WMClass

type WMClass struct {
	Class, Instance string
}

type WMHints

type WMHints struct {
	Flags        HintsFlags
	Input        uint32
	InitialState uint32
	IconPixmap   x.Pixmap
	IconWindow   x.Window
	IconX, IconY int32
	IconMask     x.Pixmap
	WindowGroup  x.Window
}

WM_HINTS

type WMIconSize

type WMIconSize struct {
	MinWidth, MinHeight uint32
	MaxWidth, MaxHeight uint32
	WidthInc, HeightInc uint32
}

WM_ICON_SIZE

type WMSizeHints

type WMSizeHints struct {
	Flags                 SizeHintsFlags
	X                     int32
	Y                     int32
	Width, Height         uint32
	MinWidth, MinHeight   uint32
	MaxWidth, MaxHeight   uint32
	WidthInc, HeightInc   uint32
	MinAspect             AspectRatio
	MaxAspect             AspectRatio
	BaseWidth, BaseHeight uint32
	WinGravity            uint32
}

WM_SIZE_HINTS

type WMState

type WMState struct {
	State  uint32
	Window x.Window
}

WM_STATE

Jump to

Keyboard shortcuts

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