gwenhywfar  5.11.1beta
htmlctx_be.h
Go to the documentation of this file.
1 /***************************************************************************
2  begin : Mon Feb 22 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_BE_H
12 #define HTMLXMLCTX_BE_H
13 
14 #include <gwenhywfar/htmlfont_be.h>
17 
18 #include <gwenhywfar/xmlctx.h>
19 #include <gwenhywfar/stringlist.h>
20 
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 
28  HTML_FONT *fnt,
29  const char *s);
30 
32  HTML_FONT *fnt,
33  const char *s);
34 
35 
36 typedef uint32_t (*HTMLCTX_GET_COLOR_FROM_NAME_FN)(const GWEN_XML_CONTEXT *ctx, const char *s);
37 
38 
39 typedef HTML_FONT *(*HTMLCTX_GET_FONT_FN)(GWEN_XML_CONTEXT *ctx,
40  const char *fontName,
41  int fontSize,
42  uint32_t fontFlags);
43 
44 typedef HTML_IMAGE *(*HTMLCTX_GET_IMAGE_FN)(GWEN_XML_CONTEXT *ctx, const char *imageName);
45 
46 
47 
49 GWEN_XML_CONTEXT *HtmlCtx_new(uint32_t flags);
50 
52 void HtmlCtx_SetText(GWEN_XML_CONTEXT *ctx, const char *s);
53 
55 int HtmlCtx_Layout(GWEN_XML_CONTEXT *ctx, int width, int height);
56 
59 
60 
63  const char *fontName,
64  int fontSize,
65  uint32_t fontFlags);
66 
71 HTML_IMAGE *HtmlCtx_GetImage(GWEN_XML_CONTEXT *ctx, const char *imageName);
72 
75 
78 
79 
82 
85 
86 
89 
92 
95 
98 
99 
102 
104 void HtmlCtx_AddMediaPath(GWEN_XML_CONTEXT *ctx, const char *s);
105 
106 
110 
114 
115 
119 
123 
126 
127 #ifdef __cplusplus
128 }
129 #endif
130 
131 #endif
132 
#define GWENHYWFAR_API
Definition: gwenhywfarapi.h:67
GWENHYWFAR_API int HtmlCtx_Layout(GWEN_XML_CONTEXT *ctx, int width, int height)
HTML_IMAGE *(* HTMLCTX_GET_IMAGE_FN)(GWEN_XML_CONTEXT *ctx, const char *imageName)
Definition: htmlctx_be.h:44
int(* HTMLCTX_GET_TEXT_HEIGHT_FN)(GWEN_XML_CONTEXT *ctx, HTML_FONT *fnt, const char *s)
Definition: htmlctx_be.h:31
GWENHYWFAR_API HTML_PROPS * HtmlCtx_GetStandardProps(const GWEN_XML_CONTEXT *ctx)
GWENHYWFAR_API int HtmlCtx_GetHeight(const GWEN_XML_CONTEXT *ctx)
GWENHYWFAR_API void HtmlCtx_SetResolutionX(GWEN_XML_CONTEXT *ctx, int i)
GWENHYWFAR_API HTML_IMAGE * HtmlCtx_GetImage(GWEN_XML_CONTEXT *ctx, const char *imageName)
GWENHYWFAR_API HTMLCTX_GET_COLOR_FROM_NAME_FN HtmlCtx_SetGetColorFromNameFn(GWEN_XML_CONTEXT *ctx, HTMLCTX_GET_COLOR_FROM_NAME_FN fn)
GWENHYWFAR_API HTMLCTX_GET_IMAGE_FN HtmlCtx_SetGetImageFn(GWEN_XML_CONTEXT *ctx, HTMLCTX_GET_IMAGE_FN fn)
GWENHYWFAR_API GWEN_XML_CONTEXT * HtmlCtx_new(uint32_t flags)
GWENHYWFAR_API HTMLCTX_GET_TEXT_HEIGHT_FN HtmlCtx_SetGetTextHeightFn(GWEN_XML_CONTEXT *ctx, HTMLCTX_GET_TEXT_HEIGHT_FN fn)
GWENHYWFAR_API HTMLCTX_GET_FONT_FN HtmlCtx_SetGetFontFn(GWEN_XML_CONTEXT *ctx, HTMLCTX_GET_FONT_FN fn)
GWENHYWFAR_API HTMLCTX_GET_TEXT_WIDTH_FN HtmlCtx_SetGetTextWidthFn(GWEN_XML_CONTEXT *ctx, HTMLCTX_GET_TEXT_WIDTH_FN fn)
GWENHYWFAR_API int HtmlCtx_GetResolutionY(const GWEN_XML_CONTEXT *ctx)
HTML_FONT *(* HTMLCTX_GET_FONT_FN)(GWEN_XML_CONTEXT *ctx, const char *fontName, int fontSize, uint32_t fontFlags)
Definition: htmlctx_be.h:39
int(* HTMLCTX_GET_TEXT_WIDTH_FN)(GWEN_XML_CONTEXT *ctx, HTML_FONT *fnt, const char *s)
Definition: htmlctx_be.h:27
GWENHYWFAR_API void HtmlCtx_SetResolutionY(GWEN_XML_CONTEXT *ctx, int i)
GWENHYWFAR_API void HtmlCtx_SetStandardProps(GWEN_XML_CONTEXT *ctx, HTML_PROPS *pr)
GWENHYWFAR_API HTML_OBJECT * HtmlCtx_GetRootObject(const GWEN_XML_CONTEXT *ctx)
GWENHYWFAR_API int HtmlCtx_GetWidth(const GWEN_XML_CONTEXT *ctx)
GWENHYWFAR_API int HtmlCtx_GetResolutionX(const GWEN_XML_CONTEXT *ctx)
GWENHYWFAR_API void HtmlCtx_SetText(GWEN_XML_CONTEXT *ctx, const char *s)
GWENHYWFAR_API GWEN_STRINGLIST * HtmlCtx_GetMediaPaths(const GWEN_XML_CONTEXT *ctx)
uint32_t(* HTMLCTX_GET_COLOR_FROM_NAME_FN)(const GWEN_XML_CONTEXT *ctx, const char *s)
Definition: htmlctx_be.h:36
GWENHYWFAR_API void HtmlCtx_AddMediaPath(GWEN_XML_CONTEXT *ctx, const char *s)
GWENHYWFAR_API HTML_FONT * HtmlCtx_GetFont(GWEN_XML_CONTEXT *ctx, const char *fontName, int fontSize, uint32_t fontFlags)
struct HTML_FONT HTML_FONT
Definition: htmlfont_be.h:23
struct HTML_IMAGE HTML_IMAGE
Definition: htmlimage_be.h:23
struct HTML_OBJECT HTML_OBJECT
Definition: htmlobject_be.h:25
struct HTML_PROPS HTML_PROPS
Definition: htmlprops_be.h:15
struct GWEN_STRINGLISTSTRUCT GWEN_STRINGLIST
Definition: stringlist.h:56
struct GWEN_XML_CONTEXT GWEN_XML_CONTEXT
Definition: xmlctx.h:39