4 #include <gwenhywfar/gwenhywfar.h> 5 #include <gwenhywfar/debug.h> 6 #include <gwenhywfar/xml.h> 7 #include <gwenhywfar/syncio_file.h> 32 for (i=0; i<indent; i++)
34 fprintf(stderr,
"Object type: %d [%s] flags: %08x\n",
42 for (i=0; i<indent+2; i++)
44 fprintf(stderr,
"fgcol=%06x, bgcol=%06x, fontsize=%d, fontflags=%08x, fontname=[%s]\n",
51 c=HtmlObject_Tree_GetFirstChild(o);
54 c=HtmlObject_Tree_GetNext(c);
60 int test1(
int argc,
char **argv)
70 fprintf(stderr,
"Name of testfile needed.\n");
106 o=HtmlObject_Tree_GetFirst(ot);
120 int main(
int argc,
char **argv)
122 return test1(argc, argv);
const char * HtmlFont_GetFontName(const HTML_FONT *fnt)
int HtmlFont_GetFontSize(const HTML_FONT *fnt)
void HtmlCtx_SetStandardProps(GWEN_XML_CONTEXT *ctx, HTML_PROPS *pr)
int GWEN_SyncIo_Connect(GWEN_SYNCIO *sio)
int test1(int argc, char **argv)
uint32_t HtmlProps_GetBackgroundColor(const HTML_PROPS *pr)
HTML_OBJECT_TYPE HtmlObject_GetObjectType(const HTML_OBJECT *o)
void HtmlProps_free(HTML_PROPS *pr)
#define GWEN_SYNCIO_FILE_FLAGS_READ
int main(int argc, char **argv)
HTML_PROPS * HtmlProps_new(void)
void HtmlProps_SetFont(HTML_PROPS *pr, HTML_FONT *fnt)
uint32_t HtmlProps_GetForegroundColor(const HTML_PROPS *pr)
void HtmlFont_free(HTML_FONT *fnt)
const char * HtmlObject_GetText(const HTML_OBJECT *o)
HTML_PROPS * HtmlObject_GetProperties(const HTML_OBJECT *o)
void GWEN_XmlCtx_free(GWEN_XML_CONTEXT *ctx)
struct GWEN_SYNCIO GWEN_SYNCIO
struct HTML_FONT HTML_FONT
void dumpObject(HTML_OBJECT *o, FILE *f, int indent)
struct HTML_PROPS HTML_PROPS
void GWEN_SyncIo_free(GWEN_SYNCIO *sio)
void GWEN_SyncIo_AddFlags(GWEN_SYNCIO *sio, uint32_t fl)
#define DBG_ERROR(dbg_logger, format, args...)
int GWEN_SyncIo_Disconnect(GWEN_SYNCIO *sio)
GWEN_XML_CONTEXT * HtmlCtx_new(uint32_t flags)
GWENHYWFAR_API int GWEN_XMLContext_ReadFromIo(GWEN_XML_CONTEXT *ctx, GWEN_SYNCIO *io)
HTML_FONT * HtmlProps_GetFont(const HTML_PROPS *pr)
#define DBG_INFO(dbg_logger, format, args...)
HTML_FONT * HtmlCtx_GetFont(GWEN_XML_CONTEXT *ctx, const char *fontName, int fontSize, uint32_t fontFlags)
uint32_t HtmlObject_GetFlags(const HTML_OBJECT *o)
GWENHYWFAR_API GWEN_SYNCIO * GWEN_SyncIo_File_new(const char *path, GWEN_SYNCIO_FILE_CREATIONMODE cm)
HTML_OBJECT_TREE * HtmlCtx_GetObjects(const GWEN_XML_CONTEXT *ctx)
uint32_t HtmlFont_GetFontFlags(const HTML_FONT *fnt)
struct GWEN_XML_CONTEXT GWEN_XML_CONTEXT
struct HTML_OBJECT HTML_OBJECT