gwenhywfar
4.3.1
|
#include <gwenhywfar/htmlfont_be.h>
#include <gwenhywfar/htmlobject_be.h>
#include <gwenhywfar/htmlimage_be.h>
#include <gwenhywfar/xmlctx.h>
#include <gwenhywfar/stringlist.h>
Go to the source code of this file.
typedef uint32_t(* HTMLCTX_GET_COLOR_FROM_NAME_FN)(const GWEN_XML_CONTEXT *ctx, const char *s) |
Definition at line 36 of file htmlctx_be.h.
typedef HTML_FONT*(* HTMLCTX_GET_FONT_FN)(GWEN_XML_CONTEXT *ctx, const char *fontName, int fontSize, uint32_t fontFlags) |
Definition at line 39 of file htmlctx_be.h.
typedef HTML_IMAGE*(* HTMLCTX_GET_IMAGE_FN)(GWEN_XML_CONTEXT *ctx, const char *imageName) |
Definition at line 44 of file htmlctx_be.h.
typedef int(* HTMLCTX_GET_TEXT_HEIGHT_FN)(GWEN_XML_CONTEXT *ctx, HTML_FONT *fnt, const char *s) |
Definition at line 31 of file htmlctx_be.h.
typedef int(* HTMLCTX_GET_TEXT_WIDTH_FN)(GWEN_XML_CONTEXT *ctx, HTML_FONT *fnt, const char *s) |
Definition at line 27 of file htmlctx_be.h.
GWENHYWFAR_API void HtmlCtx_AddMediaPath | ( | GWEN_XML_CONTEXT * | ctx, |
const char * | s | ||
) |
Definition at line 166 of file htmlctx.c.
References GWEN_INHERIT_GETDATA, and GWEN_StringList_AppendString().
Referenced by FOX16_HtmlCtx::addMediaPath().
GWENHYWFAR_API HTML_FONT* HtmlCtx_GetFont | ( | GWEN_XML_CONTEXT * | ctx, |
const char * | fontName, | ||
int | fontSize, | ||
uint32_t | fontFlags | ||
) |
Definition at line 609 of file htmlctx.c.
References GWEN_INHERIT_GETDATA, and NULL.
Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx(), HtmlGroup_Box_StartTag(), and HtmlGroup_TableRow_StartTag().
GWENHYWFAR_API int HtmlCtx_GetHeight | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 814 of file htmlctx.c.
References HtmlCtx_GetRootObject(), and HtmlObject_GetHeight().
GWENHYWFAR_API HTML_IMAGE* HtmlCtx_GetImage | ( | GWEN_XML_CONTEXT * | ctx, |
const char * | imageName | ||
) |
The implementation must set width and height in the image returned.
Definition at line 627 of file htmlctx.c.
References GWEN_INHERIT_GETDATA, and NULL.
Referenced by HtmlGroup_Box_StartTag().
GWENHYWFAR_API GWEN_STRINGLIST* HtmlCtx_GetMediaPaths | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 154 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
Referenced by FOX16_HtmlCtx::getImage().
GWENHYWFAR_API int HtmlCtx_GetResolutionX | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 106 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
Referenced by HtmlObject_Box_Layout().
GWENHYWFAR_API int HtmlCtx_GetResolutionY | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 130 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
Referenced by HtmlObject_Box_Layout().
GWENHYWFAR_API HTML_OBJECT* HtmlCtx_GetRootObject | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 270 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
Referenced by FOX16_HtmlCtx::dump(), FOX16_HtmlCtx::getHeight(), FOX16_HtmlCtx::getWidth(), HtmlCtx_GetHeight(), HtmlCtx_GetWidth(), FOX16_HtmlCtx::paint(), and FOX16_HtmlCtx::paintAt().
GWENHYWFAR_API HTML_PROPS* HtmlCtx_GetStandardProps | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 354 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
GWENHYWFAR_API int HtmlCtx_GetWidth | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 802 of file htmlctx.c.
References HtmlCtx_GetRootObject(), and HtmlObject_GetWidth().
GWENHYWFAR_API int HtmlCtx_Layout | ( | GWEN_XML_CONTEXT * | ctx, |
int | width, | ||
int | height | ||
) |
Definition at line 725 of file htmlctx.c.
References DBG_ERROR, DBG_INFO, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, HtmlObject_Layout(), HtmlObject_SetHeight(), HtmlObject_SetWidth(), and NULL.
Referenced by FOX16_HtmlCtx::layout().
GWENHYWFAR_API GWEN_XML_CONTEXT* HtmlCtx_new | ( | uint32_t | flags | ) |
Definition at line 34 of file htmlctx.c.
References GWEN_INHERIT_SETDATA, GWEN_NEW_OBJECT, GWEN_StringList_new(), GWEN_XmlCtx_new(), GWEN_XmlCtx_SetAddAttrFn(), GWEN_XmlCtx_SetAddCommentFn(), GWEN_XmlCtx_SetAddDataFn(), GWEN_XmlCtx_SetEndTagFn(), GWEN_XmlCtx_SetStartTagFn(), HtmlCtx_AddAttr(), HtmlCtx_AddComment(), HtmlCtx_AddData(), HtmlCtx_EndTag(), HtmlCtx_FreeData(), HtmlCtx_SetCurrentGroup(), HtmlCtx_StartTag(), HtmlGroup_Box_new(), HtmlGroup_SetObject(), HtmlObject_Box_new(), and NULL.
Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx().
GWENHYWFAR_API HTMLCTX_GET_COLOR_FROM_NAME_FN HtmlCtx_SetGetColorFromNameFn | ( | GWEN_XML_CONTEXT * | ctx, |
HTMLCTX_GET_COLOR_FROM_NAME_FN | fn | ||
) |
Definition at line 676 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx().
GWENHYWFAR_API HTMLCTX_GET_FONT_FN HtmlCtx_SetGetFontFn | ( | GWEN_XML_CONTEXT * | ctx, |
HTMLCTX_GET_FONT_FN | fn | ||
) |
Definition at line 693 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx().
GWENHYWFAR_API HTMLCTX_GET_IMAGE_FN HtmlCtx_SetGetImageFn | ( | GWEN_XML_CONTEXT * | ctx, |
HTMLCTX_GET_IMAGE_FN | fn | ||
) |
Definition at line 709 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx().
GWENHYWFAR_API HTMLCTX_GET_TEXT_HEIGHT_FN HtmlCtx_SetGetTextHeightFn | ( | GWEN_XML_CONTEXT * | ctx, |
HTMLCTX_GET_TEXT_HEIGHT_FN | fn | ||
) |
Definition at line 659 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx().
GWENHYWFAR_API HTMLCTX_GET_TEXT_WIDTH_FN HtmlCtx_SetGetTextWidthFn | ( | GWEN_XML_CONTEXT * | ctx, |
HTMLCTX_GET_TEXT_WIDTH_FN | fn | ||
) |
Definition at line 642 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx().
GWENHYWFAR_API void HtmlCtx_SetResolutionX | ( | GWEN_XML_CONTEXT * | ctx, |
int | i | ||
) |
Definition at line 118 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
GWENHYWFAR_API void HtmlCtx_SetResolutionY | ( | GWEN_XML_CONTEXT * | ctx, |
int | i | ||
) |
Definition at line 142 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
GWENHYWFAR_API void HtmlCtx_SetStandardProps | ( | GWEN_XML_CONTEXT * | ctx, |
HTML_PROPS * | pr | ||
) |
Definition at line 366 of file htmlctx.c.
References GWEN_INHERIT_GETDATA, HtmlGroup_GetParent(), HtmlGroup_SetProperties(), HtmlObject_GetProperties(), HtmlObject_SetProperties(), HtmlProps_Attach(), HtmlProps_free(), and NULL.
Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx().
GWENHYWFAR_API void HtmlCtx_SetText | ( | GWEN_XML_CONTEXT * | ctx, |
const char * | s | ||
) |
Definition at line 753 of file htmlctx.c.
References DBG_INFO, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, GWEN_XMLContext_ReadFromString(), HtmlCtx_SetCurrentGroup(), HtmlGroup_Box_new(), HtmlGroup_SetObject(), HtmlGroup_SetProperties(), HtmlObject_Box_new(), HtmlObject_GetObjectType(), HtmlObject_GetText(), HtmlObject_SetProperties(), and NULL.