asimagexml.h

Go to the documentation of this file.
00001 #ifndef ASIMAGEXML_HEADER_FILE_INCLUDED
00002 #define ASIMAGEXML_HEADER_FILE_INCLUDED
00003 
00004 #include "asimage.h"
00005 
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif
00009 
00010 /* We don't trust the math library to actually provide this number.*/
00011 #undef PI
00012 #define PI 180
00013 
00014 
00015 #define ASIM_XML_ENABLE_SAVE    (0x01<<0)
00016 #define ASIM_XML_ENABLE_SHOW    (0x01<<1)
00017 
00018 
00019 struct ASImageManager ;
00020 struct ASFontManager ;
00021 struct xml_elem_t;
00022 
00023 void set_xml_image_manager( struct ASImageManager *imman );
00024 void set_xml_font_manager( struct ASFontManager *fontman );
00025 struct ASImageManager *create_generic_imageman(const char *path);                  
00026 struct ASFontManager *create_generic_fontman(Display *dpy, const char *path);
00027 
00028 
00029 ASImage *
00030 compose_asimage_xml(ASVisual *asv,
00031                     struct ASImageManager *imman,
00032                                         struct ASFontManager *fontman,
00033                                         char *doc_str, ASFlagType flags,
00034                                         int verbose, Window display_win,
00035                                         const char *path);
00036 
00037 
00038 #define ASXMLVAR_TargetWidth            "target.width"
00039 #define ASXMLVAR_TargetHeight           "target.height"
00040 
00041 
00042 ASImage *
00043 compose_asimage_xml_at_size(ASVisual *asv, 
00044                                                         struct ASImageManager *imman, 
00045                                                         struct ASFontManager *fontman, 
00046                                                         char *doc_str, 
00047                                                         ASFlagType flags, 
00048                                                         int verbose, 
00049                                                         Window display_win, 
00050                                                         const char *path, 
00051                                                         int target_width, 
00052                                                         int target_height);
00053 
00054 ASImage *
00055 compose_asimage_xml_from_doc(ASVisual *asv, 
00056                                                          struct ASImageManager *imman, 
00057                                                          struct ASFontManager *fontman, 
00058                                                          struct xml_elem_t* doc, 
00059                                                          ASFlagType flags, 
00060                                                          int verbose, 
00061                                                          Window display_win, 
00062                                                          const char *path, 
00063                                                          int target_width, int target_height);
00064 
00065 void show_asimage(ASVisual *asv, ASImage* im, Window w, long delay);
00066 ASImage* build_image_from_xml( ASVisual *asv,
00067                                struct ASImageManager *imman,
00068                                                            struct ASFontManager *fontman,
00069                                                            struct xml_elem_t* doc, struct xml_elem_t** rparm,
00070                                                            ASFlagType flags, int verbose, Window display_win);
00071 Bool save_asimage_to_file(const char* file2bsaved, ASImage *im,
00072                                       const char* strtype,
00073                                                   const char *compress,
00074                                                   const char *opacity,
00075                                                   int delay, int replace);
00076 
00077 
00078 #ifdef __cplusplus
00079 }
00080 #endif
00081 
00082 #endif /*#ifndef ASIMAGEXML_HEADER_FILE_INCLUDED*/
00083 
00084 

Generated on Tue Jul 5 14:13:26 2011 for ROOT_528-00b_version by  doxygen 1.5.1