xlib

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: MIT Imports: 3 Imported by: 0

README

xlib

Documentation

Index

Constants

View Source
const (
	Expose     = int(C.Expose)
	KeyPress   = int(C.KeyPress)
	KeyRelease = int(C.KeyRelease)
)
View Source
const (
	NoEventMask              = int64(C.NoEventMask)
	KeyPressMask             = int64(C.KeyPressMask)
	KeyReleaseMask           = int64(C.KeyReleaseMask)
	ButtonPressMask          = int64(C.ButtonPressMask)
	ButtonReleaseMask        = int64(C.ButtonReleaseMask)
	EnterWindowMask          = int64(C.EnterWindowMask)
	LeaveWindowMask          = int64(C.LeaveWindowMask)
	PointerMotionMask        = int64(C.PointerMotionMask)
	PointerMotionHintMask    = int64(C.PointerMotionHintMask)
	Button1MotionMask        = int64(C.Button1MotionMask)
	Button2MotionMask        = int64(C.Button2MotionMask)
	Button3MotionMask        = int64(C.Button3MotionMask)
	Button4MotionMask        = int64(C.Button4MotionMask)
	Button5MotionMask        = int64(C.Button5MotionMask)
	ButtonMotionMask         = int64(C.ButtonMotionMask)
	KeymapStateMask          = int64(C.KeymapStateMask)
	ExposureMask             = int64(C.ExposureMask)
	VisibilityChangeMask     = int64(C.VisibilityChangeMask)
	StructureNotifyMask      = int64(C.StructureNotifyMask)
	ResizeRedirectMask       = int64(C.ResizeRedirectMask)
	SubstructureNotifyMask   = int64(C.SubstructureNotifyMask)
	SubstructureRedirectMask = int64(C.SubstructureRedirectMask)
	FocusChangeMask          = int64(C.FocusChangeMask)
	PropertyChangeMask       = int64(C.PropertyChangeMask)
	ColorMapChangeMask       = int64(C.ColormapChangeMask)
	OwnerGrabButtonMask      = int64(C.OwnerGrabButtonMask)
)

Variables

View Source
var OpenDisplayError = errors.New("cannot open display")

Functions

This section is empty.

Types

type Display

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

func OpenDisplay

func OpenDisplay() (display *Display)

func (*Display) CreateSimpleWindow

func (display *Display) CreateSimpleWindow(
	parentWindow *Window,
	x, y int,
	width, height, borderWidth uint,
	border, background uint64,
) *Window

func (*Display) GetDefaultScreen

func (display *Display) GetDefaultScreen() *Screen

func (*Display) NextEvent

func (display *Display) NextEvent() *Event

type Event

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

func (*Event) GetType

func (event *Event) GetType() int

type Screen

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

func (*Screen) GetRootWindow

func (screen *Screen) GetRootWindow() *Window

type Window

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

func (*Window) Map

func (window *Window) Map()

func (*Window) SelectInput

func (window *Window) SelectInput(eventMask int64)

func (*Window) SetStoreName

func (window *Window) SetStoreName(name string)

Jump to

Keyboard shortcuts

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