store

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func IsIgnored

func IsIgnored(w xproto.Window) bool

func IsInsideViewPort

func IsInsideViewPort(w xproto.Window) bool

func IsMaximized

func IsMaximized(w xproto.Window) bool

func IsSpecial added in v1.1.0

func IsSpecial(w xproto.Window) bool

Types

type Client

type Client struct {
	Win      *xwindow.Window `json:"-"` // X window object
	Created  time.Time       // Internal client creation time
	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) LimitDim added in v1.1.0

func (c *Client) LimitDim(w, h int)

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 added in v1.1.0

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    Hints             // Client window dimension hints
	Extents  ewmh.FrameExtents // Client window geometry extents
	Position bool              // Adjust position on move/resize
	Size     bool              // Adjust size on move/resize
}

type Directions added in v1.1.0

type Directions struct {
	Top    bool // Indicates proportion changes on the top
	Right  bool // Indicates proportion changes on the right
	Bottom bool // Indicates proportion changes on the bottom
	Left   bool // Indicates proportion changes on the left
}

type Hints added in v1.1.0

type Hints struct {
	Normal icccm.NormalHints // Client window geometry hints
	Motif  motif.Hints       // Client window decoration hints
}

type Info

type Info struct {
	Class      string     // Client window application name
	Name       string     // Client window title name
	DeskNum    uint       // Client window desktop
	Types      []string   // Client window types
	States     []string   // Client window states
	Dimensions Dimensions // Client window dimensions
}

func GetInfo

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

type Manager

type Manager struct {
	DeskNum     uint         // Index of managed desktop
	Proportions *Proportions // Layout proportions of window clients
	Masters     *Windows     // List of master window clients
	Slaves      *Windows     // List of slave window clients
}

func CreateManager

func CreateManager(deskNum uint) *Manager

func (*Manager) AddClient

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

func (*Manager) Clients

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

func (*Manager) DecreaseMaster

func (mg *Manager) DecreaseMaster()

func (*Manager) DecreaseProportion added in v1.1.0

func (mg *Manager) DecreaseProportion()

func (*Manager) DecreaseSlave

func (mg *Manager) DecreaseSlave()

func (*Manager) IncreaseMaster

func (mg *Manager) IncreaseMaster()

func (*Manager) IncreaseProportion added in v1.1.0

func (mg *Manager) IncreaseProportion()

func (*Manager) IncreaseSlave

func (mg *Manager) IncreaseSlave()

func (*Manager) Index added in v1.1.0

func (mg *Manager) Index(windows *Windows, c *Client) int

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) Ordered added in v1.1.0

func (mg *Manager) Ordered(windows *Windows) []*Client

func (*Manager) PreviousClient

func (mg *Manager) PreviousClient()

func (*Manager) RemoveClient

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

func (*Manager) SetProportions added in v1.1.0

func (mg *Manager) SetProportions(ps []float64, pi float64, i int, j int) bool

func (*Manager) SwapClient

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

func (*Manager) Undo added in v1.1.0

func (mg *Manager) Undo()

func (*Manager) Visible added in v1.1.0

func (mg *Manager) Visible(windows *Windows) []*Client

type Proportions added in v1.1.0

type Proportions struct {
	MasterSlave  []float64 // Master-slave proportions
	MasterMaster []float64 // Master-master proportions
	SlaveSlave   []float64 // Slave-slave proportions
}

type Windows added in v1.1.0

type Windows struct {
	Clients    []*Client // List of stored window clients
	MaxAllowed int       // Number of maximal allowed clients
}

Jump to

Keyboard shortcuts

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