[LinuxBrit]

giblib

Introduction

giblib is a utility library used by many of the applications I write. It incorporates doubly linked lists, some string functions, and a wrapper for imlib2. The wrapper does two things. It gives you access to fontstyles, which can be loaded from files, saved to files or defined dynamically through the API. It also, and more importantly, wraps imlib2's context API changing this:

imlib_context_set_image(image);
imlib_context_set_blend(1);
imlib_context_set_dither(0);
imlib_context_set_anti_alias(1);
imlib_context_set_operation(IMLIB_OP_COPY);
imlib_blend_image_onto_image(src,0,0,0,w,h,0,0,w,h);
imlib_context_set_image(image2);
imlib_context_set_color(255,255,255,255);
imlib_image_draw_rectangle(0,0,50,50);

to this:

gib_imlib_blend_image_onto_image(image,src,0,0,0,w,h,0,0,w,h,0,1,1);
gib_imlib_image_draw_rectangle(image2,0,0,50,50,255,255,255,255);

Use

To use giblib in your own applications, simply #include <giblib/giblib.h>, and compile using CFLAGS=`giblib-config --cflags` LIBS=`giblib-config --libs`.

Download

Grab the 1.2.4 tarball here.