The "xi" Package

These routines are meant to provide a more generic interface to the X Windows System XImage structures. These routines allow simple creation of standard and shared-memory XImage data structures, as well as the transmission of these to the X server.

Library: karmaX11
Link With: -lkarmaX11

Functions

xi_check_shared_images_availableTest if shared memory XImages may be use with an X server.
xi_create_imageCreate an XImage structure for a window.
xi_create_shm_imageCreate a shared-memory XImage structure.
xi_destroy_imageDestroy all the memory allocated for an XImage structure.
xi_put_imageWrite an XImage structure to a drawable.


Functions


flag xi_check_shared_images_available (Display *display)

Test if shared memory XImages may be use with an X server.

Parameters:

Returns: TRUE if shared images are available, else FALSE.
Multithreading Level: Unsafe


XImage * xi_create_image (Display *display, Window window, unsigned int image_width, unsigned int image_height, flag *share)

Create an XImage structure for a window.

Parameters:

Returns: A pointer to the image structure on success, else NULL.
Multithreading Level: Unsafe
Note:


XImage * xi_create_shm_image (Display *display, Visual *visual, int depth, unsigned int width, unsigned int height, flag quiet)

Create a shared-memory XImage structure.

Parameters:

Returns: An XImage pointer on success, else NULL.
Multithreading Level: Unsafe


void xi_destroy_image (Display *display, XImage *ximage, flag shared_memory)

Destroy all the memory allocated for an XImage structure.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


void xi_put_image (Display *display, Drawable drawable, GC gc, XImage *ximage, int src_x, int src_y, int dest_x, int dest_y, unsigned int width, unsigned int height, flag shared_memory, flag wait)

Write an XImage structure to a drawable.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


Contact: Richard Gooch
Web Development: Ariel Internet Services