Documentation ¶
Index ¶
- Constants
- Variables
- func ActiveWindowSet(X *xgbutil.XUtil, w *XWindow)
- func Compatible(feature string) bool
- func Connected() bool
- func CurrentDesktopGet(X *xgbutil.XUtil) uint
- func CurrentDesktopSet(X *xgbutil.XUtil, desktop uint)
- func DesktopGeometry(i uint) *common.Geometry
- func InitRoot()
- func IsFullscreen(info *Info) bool
- func IsIgnored(info *Info) bool
- func IsMaximized(info *Info) bool
- func IsMinimized(info *Info) bool
- func IsSpecial(info *Info) bool
- func IsSticky(info *Info) bool
- func NumberOfDesktopsGet(X *xgbutil.XUtil) uint
- func OnPointerUpdate(fun func(XPointer, uint, uint))
- func OnStateUpdate(fun func(string, uint, uint))
- func ScreenGeometry(i uint) *common.Geometry
- func ScreenGet(p common.Point) uint
- func StateUpdate(X *xgbutil.XUtil, e xevent.PropertyNotifyEvent)
- type Client
- func (c *Client) Cache() common.Cache[*Client]
- func (c *Client) Decorate() bool
- func (c *Client) Fullscreen() bool
- func (c *Client) IsNew() bool
- func (c *Client) Limit(w, h int) bool
- func (c *Client) Lock()
- func (c *Client) MoveToDesktop(desktop uint32) bool
- func (c *Client) MoveToScreen(screen uint32) bool
- func (c *Client) MoveWindow(x, y, w, h int)
- func (c *Client) OuterGeometry() (x, y, w, h int)
- func (c *Client) Read() *Client
- func (c *Client) Restore(flag uint8)
- func (c *Client) UnDecorate() bool
- func (c *Client) UnFullscreen() bool
- func (c *Client) UnLimit() bool
- func (c *Client) UnLock()
- func (c *Client) UnMaximize() bool
- func (c *Client) Update()
- func (c *Client) Write()
- type Clients
- type Corner
- type Dimensions
- type Directions
- type Hints
- type Info
- type Location
- type Manager
- func (mg *Manager) ActiveClient() *Client
- func (mg *Manager) AddClient(c *Client)
- func (mg *Manager) Clients(flag uint8) []*Client
- func (mg *Manager) DecorationDisabled() bool
- func (mg *Manager) DecorationEnabled() bool
- func (mg *Manager) DecreaseMaster()
- func (mg *Manager) DecreaseProportion()
- func (mg *Manager) DecreaseSlave()
- func (mg *Manager) DisableDecoration()
- func (mg *Manager) EnableDecoration()
- func (mg *Manager) IncreaseMaster()
- func (mg *Manager) IncreaseProportion()
- func (mg *Manager) IncreaseSlave()
- func (mg *Manager) Index(windows *Clients, c *Client) int
- func (mg *Manager) IsMaster(c *Client) bool
- func (mg *Manager) IsSlave(c *Client) bool
- func (mg *Manager) MakeMaster(c *Client)
- func (mg *Manager) NextClient() *Client
- func (mg *Manager) Ordered(windows *Clients) []*Client
- func (mg *Manager) PreviousClient() *Client
- func (mg *Manager) RemoveClient(c *Client)
- func (mg *Manager) SetProportions(ps []float64, pi float64, i int, j int) bool
- func (mg *Manager) SwapClient(c1 *Client, c2 *Client)
- func (mg *Manager) Visible(windows *Clients) []*Client
- type Proportions
- type XButton
- type XDisplays
- type XDrag
- type XHead
- type XPointer
- type XWindow
- type XWindowManager
- type XWindows
- type XWorkplace
Constants ¶
View Source
const ( Original uint8 = 1 // Flag to restore original info Cached uint8 = 2 // Flag to restore cached info Latest uint8 = 3 // Flag to restore latest info )
View Source
const ( Stacked uint8 = 1 // Flag for stacked (internal index order) clients Ordered uint8 = 2 // Flag for ordered (bottom to top order) clients Visible uint8 = 3 // Flag for visible (top only) clients )
Variables ¶
View Source
var ( X *xgbutil.XUtil // X connection WindowManager *XWindowManager // X window manager Workplace *XWorkplace // X workplace Pointer *XPointer // X pointer Windows *XWindows // X windows )
Functions ¶
func ActiveWindowSet ¶ added in v2.5.0
func Compatible ¶ added in v2.5.1
func CurrentDesktopGet ¶
func CurrentDesktopSet ¶ added in v2.5.0
func DesktopGeometry ¶ added in v2.5.0
func IsFullscreen ¶ added in v2.5.0
func IsMaximized ¶
func IsMinimized ¶ added in v2.5.0
func NumberOfDesktopsGet ¶
func OnPointerUpdate ¶
func OnStateUpdate ¶
func ScreenGeometry ¶ added in v2.5.0
func StateUpdate ¶
func StateUpdate(X *xgbutil.XUtil, e xevent.PropertyNotifyEvent)
Types ¶
type Client ¶
type Client struct { Window *XWindow // X window object Original *Info `json:"-"` // Original client window information Cached *Info `json:"-"` // Cached client window information Latest *Info // Latest client window information Locked bool // Internal client move/resize lock }
func CreateClient ¶
func (*Client) Fullscreen ¶ added in v2.5.0
func (*Client) MoveToDesktop ¶ added in v2.5.2
func (*Client) MoveToScreen ¶ added in v2.5.2
func (*Client) MoveWindow ¶ added in v2.5.0
func (*Client) OuterGeometry ¶
func (*Client) UnDecorate ¶
func (*Client) UnFullscreen ¶ added in v2.5.0
func (*Client) UnMaximize ¶
type Corner ¶
type Corner struct { Name string // Corner name used in config Active bool // Mouse pointer is in this corner Screen uint // Screen index the corner is located Geometry common.Geometry // Geometry of the corner section }
func CreateCorners ¶
type Dimensions ¶
type Dimensions struct { Geometry common.Geometry // Client window geometry Hints Hints // Client window dimension hints Extents ewmh.FrameExtents // Client window geometry extents AdjPos bool // Position adjustments on move/resize AdjSize bool // Size adjustments on move/resize AdjRestore bool // Disable adjustments on restore }
type Directions ¶
type Hints ¶
type Hints struct { Normal icccm.NormalHints // Client window geometry hints Motif motif.Hints // Client window decoration hints }
type Info ¶
type Manager ¶
type Manager struct { Name string // Manager name with window clients Location *Location // Manager workspace and screen location Proportions *Proportions // Manager proportions of window clients Masters *Clients // List of master window clients Slaves *Clients // List of slave window clients Decoration bool // Window decoration is enabled }
func CreateManager ¶
func (*Manager) ActiveClient ¶ added in v2.5.2
func (*Manager) DecorationDisabled ¶ added in v2.5.1
func (*Manager) DecorationEnabled ¶ added in v2.5.1
func (*Manager) DecreaseMaster ¶
func (mg *Manager) DecreaseMaster()
func (*Manager) DecreaseProportion ¶
func (mg *Manager) DecreaseProportion()
func (*Manager) DecreaseSlave ¶
func (mg *Manager) DecreaseSlave()
func (*Manager) DisableDecoration ¶ added in v2.5.1
func (mg *Manager) DisableDecoration()
func (*Manager) EnableDecoration ¶ added in v2.5.1
func (mg *Manager) EnableDecoration()
func (*Manager) IncreaseMaster ¶
func (mg *Manager) IncreaseMaster()
func (*Manager) IncreaseProportion ¶
func (mg *Manager) IncreaseProportion()
func (*Manager) IncreaseSlave ¶
func (mg *Manager) IncreaseSlave()
func (*Manager) MakeMaster ¶
func (*Manager) NextClient ¶
func (*Manager) PreviousClient ¶
func (*Manager) RemoveClient ¶
func (*Manager) SetProportions ¶
func (*Manager) SwapClient ¶
type Proportions ¶
type XDisplays ¶ added in v2.5.0
type XDisplays struct { Name string // Unique heads name (display summary) Screens []XHead // Screen dimensions (full display size) Desktops []XHead // Desktop dimensions (desktop without panels) Corners []*Corner // Display corners (for pointer events) }
func DisplaysGet ¶
type XDrag ¶ added in v2.5.0
type XHead ¶ added in v2.5.0
type XHead struct { Id uint32 // Head output id (display id) Name string // Head output name (display name) Primary bool // Head primary flag (primary display) Geometry common.Geometry // Head dimensions (x/y/width/height) }
func PhysicalHeadsGet ¶
type XPointer ¶ added in v2.5.0
type XPointer struct { Drag XDrag // Pointer device drag states Button XButton // Pointer device button states Position common.Point // Pointer position coordinates }
func PointerGet ¶
func PointerUpdate ¶
type XWindow ¶ added in v2.5.0
type XWindow struct { Id xproto.Window // Window object id Created int64 // Internal creation timestamp Instance *xwindow.Window `json:"-"` // Window object instance }
func ActiveWindowGet ¶
func ClientListStackingGet ¶
func CreateXWindow ¶ added in v2.5.0
type XWindowManager ¶ added in v2.5.1
type XWindowManager struct {
Name string // Window manager name
}
Click to show internal directories.
Click to hide internal directories.