((section 2 "Outdated egg!" (p "This is an egg for CHICKEN 4, the unsupported old release.  You're almost certainly looking for " (int-link "/eggref/5/imlib2-xlib" "the CHICKEN 5 version of this egg") ", if it exists.") (p "If it does not exist, there may be equivalent functionality provided by another egg; have a look at the " (link "https://wiki.call-cc.org/chicken-projects/egg-index-5.html" "egg index") ". Otherwise, please consider porting this egg to the current version of CHICKEN.")) (section 2 "Description" (p "CHICKEN Scheme bindings for Imlib2's Xlib API.") (p "For source code, bug reports, and feature requests, visit the " (link "https://github.com/retroj/imlib2-xlib-egg" "github project page") ".")) (section 2 "Authors" (ul (li "John J Foerch"))) (section 2 "Requirements" (section 3 "Chicken eggs" (ul (li (int-link "foreigners")) (li (int-link "imlib2")))) (section 3 "C headers" (ul (li "imlib2 development headers") (li "X11 development headers (libx11-dev)")))) (section 2 "API" (section 3 "Datatypes" (p "Image creation procedures return an imlib2 egg `image` record, and image operators expect one of these objects as their first argument.  Other datatypes used in this egg are listed here:") (ul (li "XID: Xlib XID (unsigned-long)") (li "Colormap: Xlib Colormap (XID)") (li "Display: Xlib Display* (c-pointer)") (li "Drawable: Xlib Drawable* (XID)") (li "Imlib_Image: Imlib2 image (c-pointer)") (li "Pixmap: Xlib Pixmap (XID)") (li "Screen: int") (li "Visual: Xlib Visual* (c-pointer)") (li "XImage: Xlib XImage (c-pointer)"))) (section 3 "Context setting" (ul (li "(imlib-context-set-display display)") (li "(imlib-context-disconnect-display)") (li "(imlib-context-set-visual visual)") (li "(imlib-context-set-colormap colormap)") (li "(imlib-context-set-drawable drawable)") (li "(imlib-context-set-mask pixmap)"))) (section 3 "Context getting" (ul (li "(imlib-context-get-display) => display") (li "(imlib-context-get-visual) => visual") (li "(imlib-context-get-colormap) => colormap") (li "(imlib-context-get-drawable) => drawable") (li "(imlib-context-get-mask) => pixmap") (li "(imlib-get-visual-depth display visual) => int") (li "(imlib-get-best-visual display screen) => (values visual depth)"))) (section 3 "Rendering functions" (ul (li "(imlib-pixmap-and-mask? object) => bool") (li "(imlib-pixmap-and-mask-pixmap ipm) => pixmap") (li "(imlib-pixmap-and-mask-mask ipm) => pixmap") (li "(imlib-render-pixmaps-for-whole-image img) => <imlib-pixmap-and-mask>") (li "(imlib-render-pixmaps-for-whole-image-at-size img width height) => <imlib-pixmap-and-mask>") (li "(imlib-render-image-on-drawable img x y)") (li "(imlib-render-image-on-drawable-at-size img x y width height)") (li "(imlib-render-image-part-on-drawable-at-size img source-x source-y source-width source-height x y width height)") (li "(imlib-render-get-pixel-color) => DATA32"))) (section 3 "Creation functions" (ul (li "(imlib-create-image-from-drawable mask-pixmap x y width height need-to-grab-x?) => image") (li "(imlib-create-image-from-ximage image-ximage mask-ximage x y width height need-to-grab-x?) => image") (li "(imlib-create-scaled-image-from-drawable mask-pixmap source-x source-y source-width source-height destination-width destination-height need-to-grab-x? get-mask-from-shape?) => image") (li "(imlib-copy-drawable-to-image img mask-pixmap x y width height destination-x destination-y need-to-grab-x?) => cbool"))) (section 3 "Rotation / skewing" (ul (li "(imlib-render-image-on-drawable-skewed img source-x source-y source-width source-height destination-x destination-y h-angle-x h-angle-y v-angle-x v-angle-y)") (li "(imlib-render-image-on-drawable-at-angle img source-x source-y source-width source-height destination-x destination-y angle-x angle-y)")))) (section 2 "Examples") (section 2 "License" (p "BSD")) (section 2 "Version History" (ul (li "1.0.0 (2017-12-17) initial release"))))