News

Documentation

Engrave Library Documentation

Introduction

Engrave is a designed to allow you the ability to easily create and edit Edje EDJ files.

As an example of how easy Engrave is to work with, the following example will read in either an EDC file or an EDJ file and attempt to write out an EDJ and EDC version of the given file.

 #include "Engrave.h"
 
 int
 main(int argc, char ** argv)
 {
     Engrave_File *ef = NULL;

     if (argc < 2) {
         printf("need file\n");
         return 1;
     }

     if (strstr(argv[1], ".edj"))
         ef = engrave_load_edj(argv[1]);
     else {
         if (argc < 4) {
             printf("need img and font dirs with .edc file\n");
             return 1;
         }
         ef = engrave_load_edc(argv[1], argv[2], argv[3]);
     }
 
     if (!engrave_edj_output(ef, "test.edj"))
         printf("failed to write test.edj\n");
 
     if (!engrave_edc_output(ef, "test.out"))
         printf("failed to write test.out\n"); 

     return 0;
 }

Compiling with the Engrave library is pretty simple, assuming you've named your app engrave_test.c the following command will do the trick:

 gcc -o engrave_test `engrave-config --cflags --libs` engrave_test.c

Conclusion

Engrave has been designed to make it easy to open and maniuplate Edje files, be they EDJ or EDC.

If you have any questions or comments about Engrave please email enlightenment-devel at lists dot sourceforge dot net


Copyright © Enlightenment.org

Engrave Documentation Generated: Sat Apr 7 18:28:00 2007