aminal/vendor/github.com/BurntSushi/xgb
Liam Galvin a07ac1b469
Add missing dependencies (#177)
2019-01-27 14:12:31 +00:00
..
bigreq Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
composite Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
damage Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
dpms Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
dri2 Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
examples Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
ge Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
glx Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
randr Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
record Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
render Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
res Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
screensaver Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
shape Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
shm Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
xcmisc Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
xevie Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
xf86dri Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
xf86vidmode Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
xfixes Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
xgbgen Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
xinerama Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
xprint Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
xproto Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
xselinux Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
xtest Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
xv Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
xvmc Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
.gitignore Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
AUTHORS Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
CONTRIBUTORS Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
LICENSE Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
Makefile Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
README Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
STYLE Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
auth.go Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
conn.go Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
cookie.go Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
doc.go Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
help.go Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
sync.go Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00
xgb.go Add missing dependencies (#177) 2019-01-27 14:12:31 +00:00

README

XGB is the X Go Binding, which is a low-level API to communicate with the
core X protocol and many of the X extensions. It is closely modeled after
XCB and xpyb.

It is thread safe and gets immediate improvement from parallelism when
GOMAXPROCS > 1. (See the benchmarks in xproto/xproto_test.go for evidence.)

Please see doc.go for more info.

Note that unless you know you need XGB, you can probably make your life
easier by using a slightly higher level library: xgbutil.

Quick Usage
===========
go get github.com/BurntSushi/xgb
go run go/path/src/github.com/BurntSushi/xgb/examples/create-window/main.go

BurntSushi's Fork
=================
I've forked the XGB repository from Google Code due to inactivty upstream.

Godoc documentation can be found here:
http://godoc.burntsushi.net/pkg/github.com/BurntSushi/xgb/

Much of the code has been rewritten in an effort to support thread safety
and multiple extensions. Namely, go_client.py has been thrown away in favor
of an xgbgen package.

The biggest parts that *haven't* been rewritten by me are the connection and
authentication handshakes. They're inherently messy, and there's really no
reason to re-work them. The rest of XGB has been completely rewritten.

I like to release my code under the WTFPL, but since I'm starting with someone
else's work, I'm leaving the original license/contributor/author information
in tact.

I suppose I can legitimately release xgbgen under the WTFPL. To be fair, it is
at least as complex as XGB itself. *sigh*

What follows is the original README:

XGB README
==========
XGB is the X protocol Go language Binding.

It is the Go equivalent of XCB, the X protocol C-language Binding
(http://xcb.freedesktop.org/).

Unless otherwise noted, the XGB source files are distributed
under the BSD-style license found in the LICENSE file.

Contributions should follow the same procedure as for the Go project:
http://golang.org/doc/contribute.html