Documentation
¶
Index ¶
- Constants
- func RequestChangeWMState(c *x.Conn, window x.Window, state uint32) x.VoidCookie
- type AspectRatio
- type GetAtomsCookie
- type GetTextCookie
- type GetWMClassCookie
- type GetWMHintsCookie
- type GetWMIconSizeCookie
- type GetWMSizeHintsCookie
- type GetWMStateCookie
- type GetWindowCookie
- type GetWindowsCookie
- type HintsFlags
- type SizeHintsFlags
- type TextProperty
- type WMClass
- type WMHints
- type WMIconSize
- type WMSizeHints
- type WMState
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 ¶
Types ¶
type AspectRatio ¶
type AspectRatio struct {
Numerator, Denominator uint32
}
type GetAtomsCookie ¶
type GetAtomsCookie x.GetPropertyCookie
type GetTextCookie ¶
type GetTextCookie x.GetPropertyCookie
func GetWMClientMachine ¶
func GetWMClientMachine(c *x.Conn, window x.Window) GetTextCookie
WM_CLIENT_MACHINE
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
type GetWMHintsCookie ¶
type GetWMHintsCookie x.GetPropertyCookie
func GetWMHints ¶
func GetWMHints(c *x.Conn, window x.Window) GetWMHintsCookie
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
type GetWindowCookie ¶
type GetWindowCookie x.GetPropertyCookie
func GetWMTransientFor ¶
func GetWMTransientFor(c *x.Conn, window x.Window) GetWindowCookie
WM_TRANSIENT_FOR
type GetWindowsCookie ¶
type GetWindowsCookie x.GetPropertyCookie
func GetWMColormapWindows ¶
func GetWMColormapWindows(c *x.Conn, window x.Window) GetWindowsCookie
WM_COLORMAP_WINDOWS
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 ¶
func (*TextProperty) GetStr ¶
func (tp *TextProperty) GetStr() (string, error)
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
Click to show internal directories.
Click to hide internal directories.