Documentation ¶
Index ¶
- Constants
- func IsFloating(info Info) bool
- func IsHidden(info Info) bool
- func IsIgnored(info Info) bool
- func IsInsideViewPort(w xproto.Window) bool
- func IsMaximized(w xproto.Window) bool
- func IsModal(info Info) bool
- func IsPinned(info Info) bool
- type Client
- type Dimensions
- type Info
- type Manager
- func (mg *Manager) AddClient(c *Client)
- func (mg *Manager) Clients() []*Client
- func (mg *Manager) DecreaseMaster()
- func (mg *Manager) DecreaseSlave()
- func (mg *Manager) IncreaseMaster()
- func (mg *Manager) IncreaseSlave()
- func (mg *Manager) IsMaster(c *Client) bool
- func (mg *Manager) MakeMaster(c *Client)
- func (mg *Manager) NextClient()
- func (mg *Manager) PreviousClient()
- func (mg *Manager) RemoveClient(c *Client)
- func (mg *Manager) SwapClient(c1 *Client, c2 *Client)
Constants ¶
View Source
const (
UNKNOWN = "<UNKNOWN>"
)
Variables ¶
This section is empty.
Functions ¶
func IsFloating ¶
func IsInsideViewPort ¶
func IsMaximized ¶
Types ¶
type Client ¶
type Client struct { Win *xwindow.Window // X window object Latest Info // Latest client window information Original Info // Original client window information }
func CreateClient ¶
func (*Client) MoveResize ¶
func (*Client) OuterGeometry ¶
func (Client) UnDecorate ¶
func (c Client) UnDecorate()
func (Client) Unmaximize ¶
func (c Client) Unmaximize()
type Dimensions ¶
type Info ¶
type Info struct { Class string // Client window application name Name string // Client window title name Desk uint // Client window desktop States []string // Client window states Dimensions Dimensions // Client window dimensions }
type Manager ¶
type Manager struct { Masters []*Client // List of master window clients Slaves []*Client // List of slave window clients DeskNum uint // Number of managed desktop index AllowedMasters int // Number of current maximal allowed masters AllowedSlaves int // Number of current maximal allowed slaves }
func CreateManager ¶
func (*Manager) DecreaseMaster ¶
func (mg *Manager) DecreaseMaster()
func (*Manager) DecreaseSlave ¶
func (mg *Manager) DecreaseSlave()
func (*Manager) IncreaseMaster ¶
func (mg *Manager) IncreaseMaster()
func (*Manager) IncreaseSlave ¶
func (mg *Manager) IncreaseSlave()
func (*Manager) MakeMaster ¶
func (*Manager) NextClient ¶
func (mg *Manager) NextClient()
func (*Manager) PreviousClient ¶
func (mg *Manager) PreviousClient()
func (*Manager) RemoveClient ¶
func (*Manager) SwapClient ¶
Click to show internal directories.
Click to hide internal directories.