gwenhywfar  5.10.1
htmlctx_l.h
Go to the documentation of this file.
1 /***************************************************************************
2  begin : Sat Feb 20 2010
3  copyright : (C) 2010 by Martin Preuss
4  email : martin@libchipcard.de
5 
6  ***************************************************************************
7  * Please see toplevel file COPYING for license details *
8  ***************************************************************************/
9 
10 
11 #ifndef HTMLXMLCTX_L_H
12 #define HTMLXMLCTX_L_H
13 
14 
15 #include "htmlctx_be.h"
16 #include "htmlgroup_l.h"
17 
18 #include <gwenhywfar/db.h>
19 
20 
21 
22 HTML_OBJECT_TREE *HtmlCtx_GetObjects(const GWEN_XML_CONTEXT *ctx);
23 HTML_OBJECT_TREE *HtmlCtx_TakeObjects(const GWEN_XML_CONTEXT *ctx);
24 
27 
28 const char *HtmlCtx_GetCurrentTagName(const GWEN_XML_CONTEXT *ctx);
29 void HtmlCtx_SetCurrentTagName(GWEN_XML_CONTEXT *ctx, const char *s);
30 
32 
34  const char *fontName,
35  int fontSize,
36  uint32_t fontFlags);
37 
38 
40  const char *data,
41  GWEN_BUFFER *buf);
42 
43 
44 uint32_t HtmlCtx_GetColorFromName(const GWEN_XML_CONTEXT *ctx,
45  const char *name);
46 
47 
49  HTML_FONT *fnt,
50  const char *s);
51 
53  HTML_FONT *fnt,
54  const char *s);
55 
56 #endif
57 
struct HTML_GROUP HTML_GROUP
Definition: htmlgroup_l.h:19
struct GWEN_DB_NODE GWEN_DB_NODE
Definition: db.h:228
HTML_FONT * HtmlCtx_FindFont(const GWEN_XML_CONTEXT *ctx, const char *fontName, int fontSize, uint32_t fontFlags)
int HtmlCtx_GetTextHeight(GWEN_XML_CONTEXT *ctx, HTML_FONT *fnt, const char *s)
Definition: htmlctx.c:603
const char * HtmlCtx_GetCurrentTagName(const GWEN_XML_CONTEXT *ctx)
Definition: htmlctx.c:214
uint32_t HtmlCtx_GetColorFromName(const GWEN_XML_CONTEXT *ctx, const char *name)
Definition: htmlctx.c:621
int HtmlCtx_GetTextWidth(GWEN_XML_CONTEXT *ctx, HTML_FONT *fnt, const char *s)
Definition: htmlctx.c:585
HTML_OBJECT_TREE * HtmlCtx_GetObjects(const GWEN_XML_CONTEXT *ctx)
Definition: htmlctx.c:257
struct HTML_FONT HTML_FONT
Definition: htmlfont_be.h:23
int HtmlCtx_SanitizeData(GWEN_XML_CONTEXT *ctx, const char *data, GWEN_BUFFER *buf)
void HtmlCtx_SetCurrentTagName(GWEN_XML_CONTEXT *ctx, const char *s)
Definition: htmlctx.c:227
struct GWEN_BUFFER GWEN_BUFFER
A dynamically resizeable text buffer.
Definition: buffer.h:38
HTML_GROUP * HtmlCtx_GetCurrentGroup(const GWEN_XML_CONTEXT *ctx)
Definition: htmlctx.c:188
HTML_OBJECT_TREE * HtmlCtx_TakeObjects(const GWEN_XML_CONTEXT *ctx)
Definition: htmlctx.c:270
GWEN_DB_NODE * HtmlCtx_GetCurrentAttributes(const GWEN_XML_CONTEXT *ctx)
Definition: htmlctx.c:244
struct GWEN_XML_CONTEXT GWEN_XML_CONTEXT
Definition: xmlctx.h:39
void HtmlCtx_SetCurrentGroup(GWEN_XML_CONTEXT *ctx, HTML_GROUP *g)
Definition: htmlctx.c:201