Go Home Page
The Go Programming Language

Package x11

import "exp/draw/x11"

This package implements an X11 backend for the exp/draw package.

The X protocol specification is at ftp://ftp.x.org/pub/X11R7.0/doc/PDF/proto.pdf. A summary of the wire format can be found in XCB's xproto.xml.

Package files

auth.go conn.go

func NewWindow

func NewWindow() (draw.Context, os.Error)

NewWindow calls NewWindowDisplay with $DISPLAY.

func NewWindowDisplay

func NewWindowDisplay(display string) (draw.Context, os.Error)

NewWindowDisplay returns a new draw.Context, backed by a newly created and mapped X11 window. The X server to connect to is specified by the display string, such as ":1".

Bugs

This is a toy library and not ready for production use.