Outdated egg!
This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for the CHICKEN 5 version of this egg, if it exists.
If it does not exist, there may be equivalent functionality provided by another egg; have a look at the egg index. Otherwise, please consider porting this egg to the current version of CHICKEN.
xtypes
Description
Xtypes provides scheme bindings for common datatypes used in xlib programming. This egg is meant to be used mainly in conjunction with the xlib egg, as a convenience, because it exposes these various datatypes as high level scheme objects rather than opaque c-pointers. Objects created by the make-* constructors here all have finalizers for automatic garbage collecting.
This library has been developed on an as-needed basis, rather than a methodical one. There are possibly many more datatypes that would be the proper domain of this library to handle, and those can be added as they are reported to me, or as need arises in my own work with xlib.
Datatypes
- XGlyphInfo
- XRectangle
- XRenderColor
Authors
- John J Foerch
Requirements
Chicken eggs
C headers
- X11 development headers (libx11-dev)
- XRender development headers (libxrender-dev)
API
XRectangle
[procedure] (make-xrectangle x y width height)[procedure] (xrectangle-x rect)
[procedure] (xrectangle-y rect)
[procedure] (xrectangle-width rect)
[procedure] (xrectangle-height rect)
[procedure] (xrectangle-x-set! rect x)
[procedure] (xrectangle-y-set! rect y)
[procedure] (xrectangle-width-set! rect width)
[procedure] (xrectangle-height-set! rect height)
Some of these procedures have the same names as procedures in the xlib egg, so if you are using xtypes and xlib together, you should change your xlib import form to look like this:
(use
(except xlib make-xrectangle
xrectangle-x xrectangle-y
xrectangle-width xrectangle-height)
xtypes)
XGlyphInfo
[procedure] (make-xglyphinfo)[procedure] (xglyphinfo-x xginfo)
[procedure] (xglyphinfo-y xginfo)
[procedure] (xglyphinfo-width xginfo)
[procedure] (xglyphinfo-height xginfo)
[procedure] (xglyphinfo-xoff xginfo)
[procedure] (xglyphinfo-yoff xginfo)
XRenderColor
The channel values of an xrendercolor are all normalized to a decimal number between 0.0 and 1.0.
[procedure] (make-xrendercolor r g b [a])[procedure] (xrendercolor-red color)
[procedure] (xrendercolor-green color)
[procedure] (xrendercolor-blue color)
[procedure] (xrendercolor-alpha color)
Examples
TODO
License
BSD
Version History
- 0.1a (January 2, 2012) initial release