xlib2

package module
v0.0.0-...-f5db6bb Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: BSL-1.0 Imports: 2 Imported by: 0

README

Xlib2 Binding

GoDoc

About

Xlib2 is a binding of Xlib (version 11, release 7) for the programming language Go. This project has been forked from the incomplete Xlib binding for Go due to a complete void of functionality needed to develop a window manager project I am also working on.

The original Xlib Binding is published at https://github.com/vbsw/xlib.

Copyright 2023 Heather Anne Shaw (HeatherShaw821@gmail.com)

Copyright 2016 Vitali Baumtrok (vbsw@mailbox.org)

Xlib2 Binding is distributed under the terms of the Boost Software License, version 1.0. (See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)

Xlib2 Binding is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Boost Software License for more details.

References

Documentation

Overview

Binding of Xlib (version 11, release 7).

Binding of Xlib (version 11, release 7).

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

This section is empty.

Functions

func XCloseDisplay

func XCloseDisplay(display *Display)

func XDisplayString

func XDisplayString(display *Display) string

func XHeightOfScreen

func XHeightOfScreen(screen *Screen) int

func XMapWindow

func XMapWindow(display *Display, window Window)

func XScreenCount

func XScreenCount(display *Display) int

func XSelectInput

func XSelectInput(display *Display, window Window, eventMask int64)

func XWidthOfScreen

func XWidthOfScreen(screen *Screen) int

Types

type Display

type Display C.Display

func XOpenDisplay

func XOpenDisplay(displayNameParts ...interface{}) *Display

type Screen

type Screen C.Screen

func XDefaultScreenOfDisplay

func XDefaultScreenOfDisplay(display *Display) *Screen

func XScreenOfDisplay

func XScreenOfDisplay(display *Display, screenNumber int) *Screen

type Window

type Window C.Window

func XCreateSimpleWindow

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

func XRootWindowOfScreen

func XRootWindowOfScreen(screen *Screen) Window

type XEvent

type XEvent interface {
	Type() int
}

func XNextEvent

func XNextEvent(display *Display) XEvent

type XKeyEvent

type XKeyEvent struct {
	Serial       uint64
	SendEvent    bool
	Display      *Display
	Window       Window
	Root         Window
	Subwindow    Window
	Time         uint64
	X, Y         int
	XRoot, YRoot int
	State        uint
	KeyCode      uint
	SameScreen   bool
	// contains filtered or unexported fields
}

func (*XKeyEvent) Type

func (eventType *XKeyEvent) Type() int

Jump to

Keyboard shortcuts

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