Using the libraryΒΆ

To use HPixLib in your C/C++ program, include the header file hpixlib/hpix.h at the beginning of your code:

#include <hpixlib/hpix.h>

To compile the library, you can use pkg-config:

cc my_program.c `pkg-config --cflags --libs libhpix`

Some parts of HPixLib can take advantage of the Cairo library. To use them, you need to refer to the pkg-config file libhpix_cairo (instead of just libhpix) and include the header file hpixlib/hpix-cairo.h as well:

#include <hpixlib/hpix.h>
#include <hpixlib/hpix-cairo.h>