Documentation ¶
Index ¶
- func CreateWorkspaces() map[uint]*Workspace
- func ShowLayout(ws *Workspace)
- type Layout
- type Swap
- type Tracker
- type Workspace
- func (ws *Workspace) ActiveLayout() Layout
- func (ws *Workspace) AddClient(c *store.Client)
- func (ws *Workspace) Enable(enable bool)
- func (ws *Workspace) IsEnabled() bool
- func (ws *Workspace) RemoveClient(c *store.Client)
- func (ws *Workspace) SetLayout(layoutNum uint)
- func (ws *Workspace) SwitchLayout()
- func (ws *Workspace) Tile()
- func (ws *Workspace) UnTile()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateWorkspaces ¶
func ShowLayout ¶
func ShowLayout(ws *Workspace)
Types ¶
type Layout ¶
type Layout interface { Do() Undo() AddClient(c *store.Client) RemoveClient(c *store.Client) MakeMaster(c *store.Client) SwapClient(c1 *store.Client, c2 *store.Client) NextClient() PreviousClient() IncreaseMaster() DecreaseMaster() IncreaseSlave() DecreaseSlave() IncreaseProportion() DecreaseProportion() UpdateProportions(c *store.Client, d *store.Directions) GetManager() *store.Manager GetName() string }
func CreateLayouts ¶
type Tracker ¶
type Tracker struct { Clients map[xproto.Window]*store.Client // List of clients that are being tracked Workspaces map[uint]*Workspace // List of workspaces used }
func CreateTracker ¶
type Workspace ¶
type Workspace struct { Layouts []Layout // List of available layouts TilingEnabled bool // Tiling is enabled or not ActiveLayoutNum uint // Active layout index }
func (*Workspace) ActiveLayout ¶
func (*Workspace) RemoveClient ¶
func (*Workspace) SwitchLayout ¶
func (ws *Workspace) SwitchLayout()
Click to show internal directories.
Click to hide internal directories.