gwenhywfar  4.6.0beta
fox16_htmlctx_p.hpp
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 #ifndef FOX16_HTMLCTX_P_HPP
11 #define FOX16_HTMLCTX_P_HPP
12 
13 
14 #include "fox16_htmlctx.hpp"
15 
16 
18  friend class FOX16_HtmlCtx;
19 
20  static int GetTextWidth(GWEN_XML_CONTEXT *ctx,
21  HTML_FONT *fnt,
22  const char *s);
23 
24  static int GetTextHeight(GWEN_XML_CONTEXT *ctx,
25  HTML_FONT *fnt,
26  const char *s);
27 
28  static uint32_t GetColorFromName(const GWEN_XML_CONTEXT *ctx,
29  const char *name);
30 
31  static HTML_FONT *GetFont(GWEN_XML_CONTEXT *ctx,
32  const char *fontName,
33  int fontSize,
34  uint32_t fontFlags);
35 
36  static HTML_IMAGE *GetImage(GWEN_XML_CONTEXT *ctx,
37  const char *imageName);
38 
39  static GWENHYWFAR_CB void freeData(void *bp, void *p);
40  static GWENHYWFAR_CB void freeFontData(void *bp, void *p);
41  static GWENHYWFAR_CB void freeImageData(void *bp, void *p);
42 
43 };
44 
45 
46 
47 
48 #endif
49 
50