window

package
v0.0.0-...-1378ae3 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

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 MoveState

type MoveState struct {
	// contains filtered or unexported fields
}

type ResizeState

type ResizeState struct {
	// contains filtered or unexported fields
}

type Window

type Window struct {
	// contains filtered or unexported fields
}

func New

func New(x *xgbutil.XUtil, xWin xproto.Window) *Window

func (*Window) AddStates

func (w *Window) AddStates(states ...string)

func (*Window) ApplyFocus

func (w *Window) ApplyFocus()

func (*Window) CanFocus

func (w *Window) CanFocus() bool

func (*Window) ConfigureRequest

func (w *Window) ConfigureRequest(e xevent.ConfigureRequestEvent)

func (*Window) DeIconify

func (w *Window) DeIconify()

func (*Window) Destroy

func (w *Window) Destroy()

func (*Window) Destroyed

func (w *Window) Destroyed()

func (*Window) DragMoveBegin

func (w *Window) DragMoveBegin(xr, yr int16)

func (*Window) DragResizeBegin

func (w *Window) DragResizeBegin(xr, yr int16, dir int)

func (*Window) DragResizeBeginEvent

func (w *Window) DragResizeBeginEvent(xr, yr, xe, ye int16)

func (*Window) Focus

func (w *Window) Focus()

func (*Window) FocusToggle

func (w *Window) FocusToggle()

func (*Window) Focused

func (w *Window) Focused()

func (*Window) Fullscreen

func (w *Window) Fullscreen()

func (*Window) FullscreenToggle

func (w *Window) FullscreenToggle()

func (*Window) Geometry

func (w *Window) Geometry() (xrect.Rect, error)

func (*Window) GetActiveStates

func (w *Window) GetActiveStates() []string

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) Iconify

func (w *Window) Iconify()

func (*Window) IconifyToggle

func (w *Window) IconifyToggle()

func (*Window) Id

func (w *Window) Id() xproto.Window

func (*Window) IsFocusable

func (w *Window) IsFocusable() bool

func (*Window) IsFocused

func (w *Window) IsFocused() bool

func (*Window) IsHidden

func (w *Window) IsHidden() bool

func (*Window) IsIconified

func (w *Window) IsIconified() bool

func (*Window) IsMouseMoveable

func (w *Window) IsMouseMoveable() bool

func (*Window) IsMouseResizable

func (w *Window) IsMouseResizable() bool

func (*Window) Layer

func (w *Window) Layer() int

func (*Window) Listen

func (w *Window) Listen(evMasks ...int) error

func (*Window) LoadWindowState

func (w *Window) LoadWindowState(s state)

func (*Window) Map

func (w *Window) Map()

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) Move

func (w *Window) Move(x, y int)

func (*Window) MoveResize

func (w *Window) MoveResize(validate bool, x, y, width, height int, flags ...int)

single function for all moving and/or resizing, which also automatically cancel fullscreen and maximized state

func (*Window) MoveResizeWinSize

func (w *Window) MoveResizeWinSize(validate bool, x, y, width, height int, flags ...int)

func (*Window) PrepareForFocus

func (w *Window) PrepareForFocus(tmp bool)

func (*Window) Raise

func (w *Window) Raise()

func (*Window) RemoveStates

func (w *Window) RemoveStates(states ...string)

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 (w *Window) SetIcccmState(state uint) error

func (*Window) SetupFocusListeners

func (w *Window) SetupFocusListeners()

func (*Window) SetupMouseEvents

func (w *Window) SetupMouseEvents()

func (*Window) ShouldSendFocusNotify

func (w *Window) ShouldSendFocusNotify() bool

func (*Window) ShowInfoBox

func (w *Window) ShowInfoBox(text string, duration time.Duration)

func (*Window) SkipPager

func (w *Window) SkipPager()

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) Unfocused

func (w *Window) Unfocused()

func (*Window) Unmap

func (w *Window) Unmap()

func (*Window) ValidateHeight

func (w *Window) ValidateHeight(height uint) uint

func (*Window) ValidateWidth

func (w *Window) ValidateWidth(width uint) uint

Jump to

Keyboard shortcuts

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