Documentation ¶
Index ¶
- type Connection
- func (xc *Connection) Atom(name string) xproto.Atom
- func (xc *Connection) Close()
- func (xc *Connection) CreateWindow(parent xproto.Window, x, y int16, width, height, borderWidth, class uint16, ...) (xproto.Window, error)
- func (xc *Connection) DestroyWindow(window xproto.Window) error
- func (xc *Connection) GetRootWindow() xproto.Window
- func (xc *Connection) GetWindowStruts(win xproto.Window) (*Struts, error)
- func (xc *Connection) GetWindowTitle(window xproto.Window) (string, error)
- func (xc *Connection) GracefullyDestroyWindow(win xproto.Window) error
- func (xc *Connection) Init() error
- func (xc *Connection) MapWindow(window xproto.Window) error
- func (xc *Connection) NewImage(rect image.Rectangle) *xgraphics.Image
- func (xc *Connection) ReparentWindow(window, parent xproto.Window, x, y int16) error
- func (xc *Connection) Screen() xproto.ScreenInfo
- func (xc *Connection) SetActiveWindow(win xproto.Window) error
- func (xc *Connection) SetClientList(windows []xproto.Window) error
- func (xc *Connection) SetCurrentDesktop(index int) error
- func (xc *Connection) SetDesktopHints(names []string, index int, windows []xproto.Window) error
- func (xc *Connection) SetDesktopNames(names []string) error
- func (xc *Connection) SetDesktopViewport(num int) error
- func (xc *Connection) SetNumberOfDesktops(num int) error
- func (xc *Connection) SetWMName(name string) error
- func (xc *Connection) SetWindowDesktop(win xproto.Window, desktop int) error
- func (xc *Connection) UnmapWindow(window xproto.Window) error
- func (xc *Connection) WarpPointer(x, y int16) error
- func (xc *Connection) X() *xgb.Conn
- type Dimensions
- type Struts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func Connect ¶
func Connect() (*Connection, error)
func (*Connection) Atom ¶
func (xc *Connection) Atom(name string) xproto.Atom
Atom returns the X11 atom of the given name
func (*Connection) Close ¶
func (xc *Connection) Close()
func (*Connection) CreateWindow ¶
func (*Connection) DestroyWindow ¶
func (xc *Connection) DestroyWindow(window xproto.Window) error
func (*Connection) GetRootWindow ¶
func (xc *Connection) GetRootWindow() xproto.Window
func (*Connection) GetWindowStruts ¶
func (xc *Connection) GetWindowStruts(win xproto.Window) (*Struts, error)
GetWindowStruts returns the values of the window's _NET_WM_STRUT(_PARTIAL) property
func (*Connection) GetWindowTitle ¶
func (xc *Connection) GetWindowTitle(window xproto.Window) (string, error)
func (*Connection) GracefullyDestroyWindow ¶
func (xc *Connection) GracefullyDestroyWindow(win xproto.Window) error
func (*Connection) Init ¶
func (xc *Connection) Init() error
func (*Connection) ReparentWindow ¶
func (xc *Connection) ReparentWindow(window, parent xproto.Window, x, y int16) error
func (*Connection) Screen ¶
func (xc *Connection) Screen() xproto.ScreenInfo
func (*Connection) SetActiveWindow ¶
func (xc *Connection) SetActiveWindow(win xproto.Window) error
func (*Connection) SetClientList ¶
func (xc *Connection) SetClientList(windows []xproto.Window) error
func (*Connection) SetCurrentDesktop ¶
func (xc *Connection) SetCurrentDesktop(index int) error
func (*Connection) SetDesktopHints ¶
func (*Connection) SetDesktopNames ¶
func (xc *Connection) SetDesktopNames(names []string) error
func (*Connection) SetDesktopViewport ¶
func (xc *Connection) SetDesktopViewport(num int) error
func (*Connection) SetNumberOfDesktops ¶
func (xc *Connection) SetNumberOfDesktops(num int) error
func (*Connection) SetWMName ¶
func (xc *Connection) SetWMName(name string) error
func (*Connection) SetWindowDesktop ¶
func (xc *Connection) SetWindowDesktop(win xproto.Window, desktop int) error
func (*Connection) UnmapWindow ¶
func (xc *Connection) UnmapWindow(window xproto.Window) error
func (*Connection) WarpPointer ¶
func (xc *Connection) WarpPointer(x, y int16) error
WarpPointer moves the pointer to an x, y point on the screen
func (*Connection) X ¶
func (xc *Connection) X() *xgb.Conn
type Dimensions ¶
type Dimensions struct {
Top, Left, Right, Bottom uint32
}
Click to show internal directories.
Click to hide internal directories.