store

package
v1.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UNKNOWN = "<UNKNOWN>"
)

Variables

This section is empty.

Functions

func IsFloating

func IsFloating(info Info) bool

func IsHidden

func IsHidden(info Info) bool

func IsIgnored

func IsIgnored(info Info) bool

func IsInsideViewPort

func IsInsideViewPort(w xproto.Window) bool

func IsMaximized

func IsMaximized(w xproto.Window) bool

func IsModal

func IsModal(info Info) bool

func IsPinned

func IsPinned(info Info) bool

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 CreateClient(w xproto.Window) (c *Client)

func (Client) Activate

func (c Client) Activate()

func (Client) Decorate

func (c Client) Decorate()

func (*Client) MoveResize

func (c *Client) MoveResize(x, y, w, h int)

func (*Client) OuterGeometry

func (c *Client) OuterGeometry() (x, y, w, h int)

func (Client) Restore

func (c Client) Restore()

func (Client) UnDecorate

func (c Client) UnDecorate()

func (Client) Unmaximize

func (c Client) Unmaximize()

func (*Client) Update

func (c *Client) Update() (success bool)

type Dimensions

type Dimensions struct {
	Geometry xrect.Rect        // Client window geometry
	Hints    motif.Hints       // Client window geometry hints
	Extents  ewmh.FrameExtents // Client window geometry extents
	Position bool              // Adjust position on move/resize
	Size     bool              // Adjust size on move/resize
}

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
}

func GetInfo

func GetInfo(w xproto.Window) (info Info)

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 CreateManager(deskNum uint) *Manager

func (*Manager) AddClient

func (mg *Manager) AddClient(c *Client)

func (*Manager) Clients

func (mg *Manager) Clients() []*Client

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) IsMaster

func (mg *Manager) IsMaster(c *Client) bool

func (*Manager) MakeMaster

func (mg *Manager) MakeMaster(c *Client)

func (*Manager) NextClient

func (mg *Manager) NextClient()

func (*Manager) PreviousClient

func (mg *Manager) PreviousClient()

func (*Manager) RemoveClient

func (mg *Manager) RemoveClient(c *Client)

func (*Manager) SwapClient

func (mg *Manager) SwapClient(c1 *Client, c2 *Client)

Jump to

Keyboard shortcuts

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