Documentation ¶
Index ¶
- Constants
- type MoveState
- type ResizeState
- type Window
- func (w *Window) AddStates(states ...string)
- func (w *Window) ApplyFocus()
- func (w *Window) CanFocus() bool
- func (w *Window) ConfigureRequest(e xevent.ConfigureRequestEvent)
- func (w *Window) DeIconify()
- func (w *Window) Destroy()
- func (w *Window) Destroyed()
- func (w *Window) DragMoveBegin(xr, yr int16)
- func (w *Window) DragResizeBegin(xr, yr int16, dir int)
- func (w *Window) DragResizeBeginEvent(xr, yr, xe, ye int16)
- func (w *Window) Focus()
- func (w *Window) FocusToggle()
- func (w *Window) Focused()
- func (w *Window) Fullscreen()
- func (w *Window) FullscreenToggle()
- func (w *Window) Geometry() (xrect.Rect, error)
- func (w *Window) GetActiveStates() []string
- func (w *Window) GetFrameExtents() *ewmh.FrameExtents
- func (w *Window) HandlePropertyNotify(e xevent.PropertyNotifyEvent)
- func (w *Window) HideInfoBox()
- func (w *Window) Iconify()
- func (w *Window) IconifyToggle()
- func (w *Window) Id() xproto.Window
- func (w *Window) IsFocusable() bool
- func (w *Window) IsFocused() bool
- func (w *Window) IsHidden() bool
- func (w *Window) IsIconified() bool
- func (w *Window) IsMouseMoveable() bool
- func (w *Window) IsMouseResizable() bool
- func (w *Window) Layer() int
- func (w *Window) Listen(evMasks ...int) error
- func (w *Window) LoadWindowState(s state)
- func (w *Window) Map()
- func (w *Window) MaximizeHorz()
- func (w *Window) MaximizeHorzToggle()
- func (w *Window) MaximizeVert()
- func (w *Window) MaximizeVertToggle()
- func (w *Window) Move(x, y int)
- func (w *Window) MoveResize(validate bool, x, y, width, height int, flags ...int)
- func (w *Window) MoveResizeWinSize(validate bool, x, y, width, height int, flags ...int)
- func (w *Window) PrepareForFocus(tmp bool)
- func (w *Window) Raise()
- func (w *Window) RemoveStates(states ...string)
- func (w *Window) RemoveTmpDeiconified()
- func (w *Window) RootGeometryChanged()
- func (w *Window) SaveWindowState(s state)
- func (w *Window) SetIcccmState(state uint) error
- func (w *Window) SetupFocusListeners()
- func (w *Window) SetupMouseEvents()
- func (w *Window) ShouldSendFocusNotify() bool
- func (w *Window) ShowInfoBox(text string, duration time.Duration)
- func (w *Window) SkipPager()
- func (w *Window) SkipTaskbar()
- func (w *Window) StackAbove()
- func (w *Window) StackAboveToggle()
- func (w *Window) StackBelow()
- func (w *Window) StackBelowToggle()
- func (w *Window) StackSibling(sibling stack.StackingWindow, mode byte)
- func (w *Window) StartAttention()
- func (w *Window) StopAttention()
- func (w *Window) ToggleAttention()
- func (w *Window) ToggleSkipPager()
- func (w *Window) ToggleSkipTaskbar()
- func (w *Window) TransientFor(_other stack.StackingWindow) bool
- func (w *Window) UnFullscreen()
- func (w *Window) UnMaximizeHorz()
- func (w *Window) UnMaximizeVert()
- func (w *Window) UnSkipPager()
- func (w *Window) UnSkipTaskbar()
- func (w *Window) UnStackAbove()
- func (w *Window) UnStackBelow()
- func (w *Window) Unfocused()
- func (w *Window) Unmap()
- func (w *Window) ValidateHeight(height uint) uint
- func (w *Window) ValidateWidth(width uint) uint
Constants ¶
View Source
const ( ConfigX = xproto.ConfigWindowX ConfigY = xproto.ConfigWindowY ConfigWidth = xproto.ConfigWindowWidth ConfigHeight = xproto.ConfigWindowHeight ConfigPosition = ConfigX | ConfigY ConfigSize = ConfigWidth | ConfigHeight ConfigAll = ConfigPosition | ConfigSize )
View Source
const ( StatePriorMaxVert state = iota StatePriorMaxHorz StatePriorFullscreen )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResizeState ¶
type ResizeState struct {
// contains filtered or unexported fields
}
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
func (*Window) ApplyFocus ¶
func (w *Window) ApplyFocus()
func (*Window) ConfigureRequest ¶
func (w *Window) ConfigureRequest(e xevent.ConfigureRequestEvent)
func (*Window) DragMoveBegin ¶
func (*Window) DragResizeBegin ¶
func (*Window) DragResizeBeginEvent ¶
func (*Window) FocusToggle ¶
func (w *Window) FocusToggle()
func (*Window) Fullscreen ¶
func (w *Window) Fullscreen()
func (*Window) FullscreenToggle ¶
func (w *Window) FullscreenToggle()
func (*Window) GetActiveStates ¶
func (*Window) GetFrameExtents ¶
func (w *Window) GetFrameExtents() *ewmh.FrameExtents
func (*Window) HandlePropertyNotify ¶
func (w *Window) HandlePropertyNotify(e xevent.PropertyNotifyEvent)
func (*Window) HideInfoBox ¶
func (w *Window) HideInfoBox()
func (*Window) IconifyToggle ¶
func (w *Window) IconifyToggle()
func (*Window) IsFocusable ¶
func (*Window) IsIconified ¶
func (*Window) IsMouseMoveable ¶
func (*Window) IsMouseResizable ¶
func (*Window) LoadWindowState ¶
func (w *Window) LoadWindowState(s state)
func (*Window) MaximizeHorz ¶
func (w *Window) MaximizeHorz()
func (*Window) MaximizeHorzToggle ¶
func (w *Window) MaximizeHorzToggle()
func (*Window) MaximizeVert ¶
func (w *Window) MaximizeVert()
func (*Window) MaximizeVertToggle ¶
func (w *Window) MaximizeVertToggle()
func (*Window) MoveResize ¶
single function for all moving and/or resizing, which also automatically cancel fullscreen and maximized state
func (*Window) MoveResizeWinSize ¶
func (*Window) PrepareForFocus ¶
func (*Window) RemoveStates ¶
func (*Window) RemoveTmpDeiconified ¶
func (w *Window) RemoveTmpDeiconified()
func (*Window) RootGeometryChanged ¶
func (w *Window) RootGeometryChanged()
RootGeometryChanged moves window based on changes to root geometry New monitors might have been added/removed and resolution could have changed We unfullscreen and unmaximize window, so it restores its original geometry, than we check if window overlaps with any monitor and if not, move it so it does and finally restore maximized and fullscreen states
func (*Window) SaveWindowState ¶
func (w *Window) SaveWindowState(s state)
func (*Window) SetIcccmState ¶
func (*Window) SetupFocusListeners ¶
func (w *Window) SetupFocusListeners()
func (*Window) SetupMouseEvents ¶
func (w *Window) SetupMouseEvents()
func (*Window) ShouldSendFocusNotify ¶
func (*Window) SkipTaskbar ¶
func (w *Window) SkipTaskbar()
func (*Window) StackAbove ¶
func (w *Window) StackAbove()
func (*Window) StackAboveToggle ¶
func (w *Window) StackAboveToggle()
func (*Window) StackBelow ¶
func (w *Window) StackBelow()
func (*Window) StackBelowToggle ¶
func (w *Window) StackBelowToggle()
func (*Window) StackSibling ¶
func (w *Window) StackSibling(sibling stack.StackingWindow, mode byte)
func (*Window) StartAttention ¶
func (w *Window) StartAttention()
func (*Window) StopAttention ¶
func (w *Window) StopAttention()
func (*Window) ToggleAttention ¶
func (w *Window) ToggleAttention()
func (*Window) ToggleSkipPager ¶
func (w *Window) ToggleSkipPager()
func (*Window) ToggleSkipTaskbar ¶
func (w *Window) ToggleSkipTaskbar()
func (*Window) TransientFor ¶
func (w *Window) TransientFor(_other stack.StackingWindow) bool
func (*Window) UnFullscreen ¶
func (w *Window) UnFullscreen()
func (*Window) UnMaximizeHorz ¶
func (w *Window) UnMaximizeHorz()
func (*Window) UnMaximizeVert ¶
func (w *Window) UnMaximizeVert()
func (*Window) UnSkipPager ¶
func (w *Window) UnSkipPager()
func (*Window) UnSkipTaskbar ¶
func (w *Window) UnSkipTaskbar()
func (*Window) UnStackAbove ¶
func (w *Window) UnStackAbove()
func (*Window) UnStackBelow ¶
func (w *Window) UnStackBelow()
func (*Window) ValidateHeight ¶
func (*Window) ValidateWidth ¶
Click to show internal directories.
Click to hide internal directories.