x11

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 (xc *Connection) CreateWindow(parent xproto.Window, x, y int16, width, height, borderWidth,
	class uint16, valueMask uint32, valueList []uint32) (xproto.Window, error)

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

func (xc *Connection) MapWindow(window xproto.Window) error

func (*Connection) NewImage

func (xc *Connection) NewImage(rect image.Rectangle) *xgraphics.Image

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 (xc *Connection) SetDesktopHints(names []string, index int, windows []xproto.Window) error

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
}

type Struts

type Struts struct {
	Left, Right, Top, Bottom uint32
}

Struts represents the values of the _NET_WM_STRUT/_NET_WM_STRUT_PARTIAL properties. The extended _NET_WM_STRUT_PARTIAL values are ignored - the WM will fill the entire width of the screen instead.

Jump to

Keyboard shortcuts

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