1.0.1-fix3 • Published 6 years ago

@ross-technologies/xlib v1.0.1-fix3

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
6 years ago

node-xlib

Xlib for Node.JS.

Example

This creates a windows 100x100 pixels at 0, 0 on the screen. The window created is called "Hello, world".

const x11 = require("x11");
const xlib = require("@ross-technologies/xlib");

xlib.createClient((err,client) => {
	if(err) throw err;
	var X = client.display.client;
	var win = X.AllocID();
	X.CreateWindow(
		win,client.display.screen[0].root,
		0,0,100,100,
		0,0,0,0,
		{ eventMask: x11.eventMask.Exposure | x11.eventMask.PointerMotion }
	);
	X.MapWindow(win);
	client.xlib.SetWMName(win,"Hello, world");
});
1.0.1-fix3

6 years ago

1.0.1-fix2

6 years ago

1.0.1-fix1

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago