Commit graph

12 commits

Author SHA1 Message Date
Vidar Hokstad
da2fe51596 Cleanups, more automated lookups of atoms to avoid needing to dereference constants.
More constants and requestsm including SendEvent, and
a helper for ClientMessage, w/example
2024-01-11 19:24:49 +00:00
Vidar Hokstad
5f3aca393e Switch to threaded model to make the async model easier to work with
Also keeping request objects around and matching them to error
objects to ease debugging, and more debug output when
PUREX_DEBUG env var is set
2024-01-11 19:22:43 +00:00
Vidar Hokstad
d7029c2441 Support for symbols instead of constants is now handled directly in the type classes, so has been addressed. 2023-12-28 17:18:27 +00:00
Vidar Hokstad
e5b672673c Extensive increase in number of requests and events supported. 2023-12-16 14:49:10 +00:00
Vidar Hokstad
c08910d0c9 Removed unusued OpenStruct require 2023-11-21 20:13:11 +00:00
Vidar Hokstad
a5ca257272 Added significant number of new request types. 2023-11-21 20:12:51 +00:00
Vidar Hokstad
3fa4211f06 Added significant number of X requests and event types, and a bunch of convenience functions.
This is still "rough", but it works.
2023-09-25 18:55:00 +01:00
Vidar Hokstad
9119b4062c Added PutImage support and a test 2023-08-08 21:43:27 +01:00
Vidar Hokstad
4e08564800 Handle the following requests:
CreateWindow, MapWindow, OpenFont, ListFonts, CreateGC, ChangeGC,
ClearArea, PolyFillRectangle, ImageText8

Parse the following Events:
Expose, MapNotify, ConfigureNotify

Added example script
2023-08-01 20:18:32 +01:00
Vidar Hokstad
8efdc3cff0 Handle "unused" type 2021-09-23 19:24:25 +01:00
Vidar Hokstad
ad16950b18 Missing require 2021-09-23 19:24:14 +01:00
Richard Ramsden
ad10e78306 Major refactor of packet builder
I decided to ditch the Packet class name and go with a Form module
that contains a BaseForm which child classes inherit from.

I've created a few tests so you can see how the BaseForm class
works and how packets can be read and sent over a socket to
an X11 server
2012-05-20 17:36:18 -07:00