Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef FOX16_HTMLCTX_P_HPP
00011 #define FOX16_HTMLCTX_P_HPP
00012
00013
00014 #include "fox16_htmlctx.hpp"
00015
00016
00017 class FOX16_HtmlCtxLinker {
00018 friend class FOX16_HtmlCtx;
00019
00020 static int GetTextWidth(GWEN_XML_CONTEXT *ctx,
00021 HTML_FONT *fnt,
00022 const char *s);
00023
00024 static int GetTextHeight(GWEN_XML_CONTEXT *ctx,
00025 HTML_FONT *fnt,
00026 const char *s);
00027
00028 static uint32_t GetColorFromName(const GWEN_XML_CONTEXT *ctx,
00029 const char *name);
00030
00031 static HTML_FONT *GetFont(GWEN_XML_CONTEXT *ctx,
00032 const char *fontName,
00033 int fontSize,
00034 uint32_t fontFlags);
00035
00036 static HTML_IMAGE *GetImage(GWEN_XML_CONTEXT *ctx,
00037 const char *imageName);
00038
00039 static GWENHYWFAR_CB void freeData(void *bp, void *p);
00040 static GWENHYWFAR_CB void freeFontData(void *bp, void *p);
00041 static GWENHYWFAR_CB void freeImageData(void *bp, void *p);
00042
00043 };
00044
00045
00046
00047
00048 #endif
00049
00050