Documentation ¶
Overview ¶
package layout implements floating and tiling placement policies for Wingo.
Index ¶
- Constants
- type AutoTiler
- type Client
- type Floater
- type Floating
- func (f *Floating) Add(c Client)
- func (f *Floating) Destroy()
- func (f *Floating) Exists(c Client) bool
- func (f *Floating) InitialPlacement(c Client)
- func (f *Floating) MROpt(c Client, flags, x, y, width, height int)
- func (f *Floating) Move(c Client, x, y int)
- func (f *Floating) MoveResize(c Client, x, y, width, height int)
- func (f *Floating) Name() string
- func (f *Floating) Place()
- func (f *Floating) Remove(c Client)
- func (f *Floating) Reposition()
- func (f *Floating) Resize(c Client, width, height int)
- func (f *Floating) Save()
- func (f *Floating) SetGeom(geom xrect.Rect)
- func (f *Floating) Unplace()
- type Horizontal
- func (lay Horizontal) Add(c Client)
- func (lay Horizontal) Destroy()
- func (lay Horizontal) Exists(c Client) bool
- func (lay Horizontal) FocusMaster()
- func (lay Horizontal) MROpt(c Client, flags, x, y, width, height int)
- func (lay Horizontal) MakeMaster()
- func (lay *Horizontal) MastersFewer()
- func (lay *Horizontal) MastersMore()
- func (lay Horizontal) Move(c Client, x, y int)
- func (lay Horizontal) MoveResize(c Client, x, y, width, height int)
- func (v *Horizontal) Name() string
- func (lay Horizontal) Next()
- func (lay Horizontal) Place()
- func (lay Horizontal) Prev()
- func (lay Horizontal) Remove(c Client)
- func (lay Horizontal) Resize(c Client, width, height int)
- func (lay Horizontal) ResizeMaster(amount float64)
- func (lay Horizontal) ResizeWindow(amount float64)
- func (lay *Horizontal) SetGeom(geom xrect.Rect)
- func (lay Horizontal) SwitchNext()
- func (lay Horizontal) SwitchPrev()
- func (lay Horizontal) Unplace()
- type Layout
- type Maximized
- func (m *Maximized) Add(c Client)
- func (m *Maximized) Destroy()
- func (m *Maximized) Exists(c Client) bool
- func (m *Maximized) FocusMaster()
- func (m *Maximized) MROpt(c Client, flags, x, y, width, height int)
- func (m *Maximized) MakeMaster()
- func (m *Maximized) MastersFewer()
- func (m *Maximized) MastersMore()
- func (m *Maximized) Move(c Client, x, y int)
- func (m *Maximized) MoveResize(c Client, x, y, width, height int)
- func (m *Maximized) Name() string
- func (m *Maximized) Next()
- func (m *Maximized) Place()
- func (m *Maximized) Prev()
- func (m *Maximized) Remove(c Client)
- func (m *Maximized) Resize(c Client, width, height int)
- func (m *Maximized) ResizeMaster(amount float64)
- func (m *Maximized) ResizeWindow(amount float64)
- func (m *Maximized) SetGeom(geom xrect.Rect)
- func (m *Maximized) SwitchNext()
- func (m *Maximized) SwitchPrev()
- func (m *Maximized) Unplace()
- type Vertical
- func (lay Vertical) Add(c Client)
- func (lay Vertical) Destroy()
- func (lay Vertical) Exists(c Client) bool
- func (lay Vertical) FocusMaster()
- func (lay Vertical) MROpt(c Client, flags, x, y, width, height int)
- func (lay Vertical) MakeMaster()
- func (lay *Vertical) MastersFewer()
- func (lay *Vertical) MastersMore()
- func (lay Vertical) Move(c Client, x, y int)
- func (lay Vertical) MoveResize(c Client, x, y, width, height int)
- func (v *Vertical) Name() string
- func (lay Vertical) Next()
- func (lay Vertical) Place()
- func (lay Vertical) Prev()
- func (lay Vertical) Remove(c Client)
- func (lay Vertical) Resize(c Client, width, height int)
- func (lay Vertical) ResizeMaster(amount float64)
- func (lay Vertical) ResizeWindow(amount float64)
- func (lay *Vertical) SetGeom(geom xrect.Rect)
- func (lay Vertical) SwitchNext()
- func (lay Vertical) SwitchPrev()
- func (lay Vertical) Unplace()
Constants ¶
View Source
const (
AutoTileVertical = iota
)
View Source
const (
FloatFloating = iota
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Id() xproto.Window String() string Layout() Layout Geom() xrect.Rect DragGeom() xrect.Rect ShouldForceFloating() bool Focus() Raise() IsActive() bool MROpt(validate bool, flags, x, y, width, height int) MoveResize(x, y, width, height int) MoveResizeValid(x, y, width, height int) Move(x, y int) Resize(validate bool, width, height int) FrameTile() HasState(name string) bool SaveState(name string) LoadState(name string) DeleteState(name string) }
Client is the method set required for a particular client to be used by any layout.
Note that since layout clients come from workspace clients, this method set *must* be a subset of workspace.Client. (That is, if a method is added here, it must also be added to workspace.Client if it hasn't been already.)
type Floating ¶
type Floating struct {
// contains filtered or unexported fields
}
func NewFloating ¶
func NewFloating() *Floating
func (*Floating) InitialPlacement ¶
func (*Floating) MoveResize ¶
func (*Floating) Reposition ¶
func (f *Floating) Reposition()
Reposition is called when a workspace switches from a tiling layout to a floating layout. It should reload the "last-floating" client state.
type Horizontal ¶
type Horizontal struct {
// contains filtered or unexported fields
}
func NewHorizontal ¶
func NewHorizontal() *Horizontal
func (Horizontal) FocusMaster ¶
func (lay Horizontal) FocusMaster()
func (Horizontal) MakeMaster ¶
func (lay Horizontal) MakeMaster()
func (*Horizontal) MastersFewer ¶
func (lay *Horizontal) MastersFewer()
func (*Horizontal) MastersMore ¶
func (lay *Horizontal) MastersMore()
func (Horizontal) MoveResize ¶
func (*Horizontal) Name ¶
func (v *Horizontal) Name() string
func (Horizontal) Next ¶
func (lay Horizontal) Next()
func (Horizontal) Prev ¶
func (lay Horizontal) Prev()
func (Horizontal) ResizeMaster ¶
func (lay Horizontal) ResizeMaster(amount float64)
func (Horizontal) ResizeWindow ¶
func (lay Horizontal) ResizeWindow(amount float64)
func (Horizontal) SwitchNext ¶
func (lay Horizontal) SwitchNext()
func (Horizontal) SwitchPrev ¶
func (lay Horizontal) SwitchPrev()
type Layout ¶
type Layout interface { Name() string SetGeom(geom xrect.Rect) Place() Unplace() Add(c Client) Remove(c Client) Exists(c Client) bool Destroy() MROpt(c Client, flags, x, y, width, height int) MoveResize(c Client, x, y, width, height int) Move(c Client, x, y int) Resize(c Client, width, height int) }
type Maximized ¶
type Maximized struct {
// contains filtered or unexported fields
}
func NewMaximized ¶
func NewMaximized() *Maximized
func (*Maximized) FocusMaster ¶
func (m *Maximized) FocusMaster()
func (*Maximized) MakeMaster ¶
func (m *Maximized) MakeMaster()
func (*Maximized) MastersFewer ¶
func (m *Maximized) MastersFewer()
func (*Maximized) MastersMore ¶
func (m *Maximized) MastersMore()
func (*Maximized) MoveResize ¶
func (*Maximized) ResizeMaster ¶
func (*Maximized) ResizeWindow ¶
func (*Maximized) SwitchNext ¶
func (m *Maximized) SwitchNext()
This is useful, but can be implemented later
func (*Maximized) SwitchPrev ¶
func (m *Maximized) SwitchPrev()
This is useful, but can be implemented later
type Vertical ¶
type Vertical struct {
// contains filtered or unexported fields
}
func NewVertical ¶
func NewVertical() *Vertical
func (Vertical) FocusMaster ¶
func (lay Vertical) FocusMaster()
func (Vertical) MakeMaster ¶
func (lay Vertical) MakeMaster()
func (*Vertical) MastersFewer ¶
func (lay *Vertical) MastersFewer()
func (*Vertical) MastersMore ¶
func (lay *Vertical) MastersMore()
func (Vertical) MoveResize ¶
func (Vertical) ResizeMaster ¶
func (lay Vertical) ResizeMaster(amount float64)
func (Vertical) ResizeWindow ¶
func (lay Vertical) ResizeWindow(amount float64)
func (Vertical) SwitchNext ¶
func (lay Vertical) SwitchNext()
func (Vertical) SwitchPrev ¶
func (lay Vertical) SwitchPrev()
Click to show internal directories.
Click to hide internal directories.