Documentation ¶
Index ¶
- func Add(cs *branch.Branch, c Client, f Client, csq *rules.Consequence)
- func CompareStack(c, o Client) int
- func New() *branch.Branch
- func Remove(cs *branch.Branch, c Client) error
- func RestrainHeight(c Constraint, h uint16) uint16
- func RestrainSize(c Constraint, w, h uint16) (uint16, uint16)
- func RestrainWidth(c Constraint, w uint16) uint16
- func TiledCount(clients *branch.Branch) int
- type Bordr
- type Client
- func All(clients *branch.Branch) []Client
- func Cycled(clients *branch.Branch, sel selector.Selector) Client
- func Focused(clients *branch.Branch) Client
- func NewClient(c *xgb.Conn, x xproto.Window, r xproto.Window, csq *rules.Consequence) Client
- func Next(clients *branch.Branch) Client
- func Prev(clients *branch.Branch) Client
- func Select(selectors []selector.Selector, cls ...*branch.Branch) Client
- func Tagged(clients *branch.Branch, sel selector.Selector) Client
- type ClientState
- type Constraint
- type Floatr
- type Layer
- type MatchClient
- type ShiftDirection
- type ShiftMode
- type ShiftOrientation
- type Shiftr
- type Stackr
- type State
- type Tilr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareStack ¶
func RestrainHeight ¶
func RestrainHeight(c Constraint, h uint16) uint16
func RestrainSize ¶
func RestrainSize(c Constraint, w, h uint16) (uint16, uint16)
func RestrainWidth ¶
func RestrainWidth(c Constraint, w uint16) uint16
func TiledCount ¶
Types ¶
type Client ¶
type Client interface { Class() string Instance() string Rectangle() xproto.Rectangle Adjacent(Client, string) bool SideHandle(string) *xproto.Point window.Window Floatr Tilr State Constraint Bordr Shiftr Stackr }
type ClientState ¶
type ClientState int
const ( Focus ClientState = iota FullScreen PseudoTiled Floating Locked Sticky Private Urgent Vacant )
type Constraint ¶
type Floatr ¶
type Floatr interface { FRectangle() xproto.Rectangle X(int16) Y(int16) Reposition(int16, int16) Width(uint16) Height(uint16) Size(uint16, uint16) Center(xproto.Rectangle, int16) Embrace(xproto.Rectangle) Translate(xproto.Rectangle, xproto.Rectangle) UpdateFloatingRectangle(*xgb.Conn, xproto.Window) SetFloatingRectangle(xproto.Rectangle) }
type MatchClient ¶
type ShiftOrientation ¶
type ShiftOrientation int
const ( Horizontal ShiftOrientation = iota Vertical )
func (ShiftOrientation) String ¶
func (s ShiftOrientation) String() string
type Shiftr ¶
type Shiftr interface { Rotate() int SetRotate(int) Ratio() float64 SetRatio(float64) Mode() ShiftMode SetMode(string) Orientation() ShiftOrientation SetOrientation(string) Direction() ShiftDirection SetDirection(string) SetShift(*rules.Consequence) }
type State ¶
type State interface { Tiled() bool Floating() bool Focused() bool Pseudotiled() bool Fullscreen() bool Get(ClientState) bool Set(ClientState, bool) SetState(*rules.Consequence) }
Click to show internal directories.
Click to hide internal directories.