gwenhywfar 5.14.1
htmlctx_be.h File Reference
#include <gwenhywfar/htmlfont_be.h>
#include <gwenhywfar/htmlobject_be.h>
#include <gwenhywfar/htmlimage_be.h>
#include <gwenhywfar/xmlctx.h>
#include <gwenhywfar/stringlist.h>
Include dependency graph for htmlctx_be.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef uint32_t(* HTMLCTX_GET_COLOR_FROM_NAME_FN) (const GWEN_XML_CONTEXT *ctx, const char *s)
typedef HTML_FONT *(* HTMLCTX_GET_FONT_FN) (GWEN_XML_CONTEXT *ctx, const char *fontName, int fontSize, uint32_t fontFlags)
typedef HTML_IMAGE *(* HTMLCTX_GET_IMAGE_FN) (GWEN_XML_CONTEXT *ctx, const char *imageName)
typedef int(* HTMLCTX_GET_TEXT_HEIGHT_FN) (GWEN_XML_CONTEXT *ctx, HTML_FONT *fnt, const char *s)
typedef int(* HTMLCTX_GET_TEXT_WIDTH_FN) (GWEN_XML_CONTEXT *ctx, HTML_FONT *fnt, const char *s)

Functions

GWENHYWFAR_API void HtmlCtx_AddMediaPath (GWEN_XML_CONTEXT *ctx, const char *s)
GWENHYWFAR_API HTML_FONTHtmlCtx_GetFont (GWEN_XML_CONTEXT *ctx, const char *fontName, int fontSize, uint32_t fontFlags)
GWENHYWFAR_API int HtmlCtx_GetHeight (const GWEN_XML_CONTEXT *ctx)
GWENHYWFAR_API HTML_IMAGEHtmlCtx_GetImage (GWEN_XML_CONTEXT *ctx, const char *imageName)
GWENHYWFAR_API GWEN_STRINGLISTHtmlCtx_GetMediaPaths (const GWEN_XML_CONTEXT *ctx)
GWENHYWFAR_API int HtmlCtx_GetResolutionX (const GWEN_XML_CONTEXT *ctx)
GWENHYWFAR_API int HtmlCtx_GetResolutionY (const GWEN_XML_CONTEXT *ctx)
GWENHYWFAR_API HTML_OBJECTHtmlCtx_GetRootObject (const GWEN_XML_CONTEXT *ctx)
GWENHYWFAR_API HTML_PROPSHtmlCtx_GetStandardProps (const GWEN_XML_CONTEXT *ctx)
GWENHYWFAR_API int HtmlCtx_GetWidth (const GWEN_XML_CONTEXT *ctx)
GWENHYWFAR_API int HtmlCtx_Layout (GWEN_XML_CONTEXT *ctx, int width, int height)
GWENHYWFAR_API GWEN_XML_CONTEXTHtmlCtx_new (uint32_t flags)
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_FONT_FN HtmlCtx_SetGetFontFn (GWEN_XML_CONTEXT *ctx, HTMLCTX_GET_FONT_FN fn)
GWENHYWFAR_API HTMLCTX_GET_IMAGE_FN HtmlCtx_SetGetImageFn (GWEN_XML_CONTEXT *ctx, HTMLCTX_GET_IMAGE_FN fn)
GWENHYWFAR_API HTMLCTX_GET_TEXT_HEIGHT_FN HtmlCtx_SetGetTextHeightFn (GWEN_XML_CONTEXT *ctx, HTMLCTX_GET_TEXT_HEIGHT_FN fn)
GWENHYWFAR_API HTMLCTX_GET_TEXT_WIDTH_FN HtmlCtx_SetGetTextWidthFn (GWEN_XML_CONTEXT *ctx, HTMLCTX_GET_TEXT_WIDTH_FN fn)
GWENHYWFAR_API void HtmlCtx_SetResolutionX (GWEN_XML_CONTEXT *ctx, int i)
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 void HtmlCtx_SetText (GWEN_XML_CONTEXT *ctx, const char *s)

Typedef Documentation

◆ HTMLCTX_GET_COLOR_FROM_NAME_FN

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.

◆ HTMLCTX_GET_FONT_FN

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.

◆ HTMLCTX_GET_IMAGE_FN

typedef HTML_IMAGE *(* HTMLCTX_GET_IMAGE_FN) (GWEN_XML_CONTEXT *ctx, const char *imageName)

Definition at line 44 of file htmlctx_be.h.

◆ HTMLCTX_GET_TEXT_HEIGHT_FN

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.

◆ HTMLCTX_GET_TEXT_WIDTH_FN

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.

Function Documentation

◆ HtmlCtx_AddMediaPath()

GWENHYWFAR_API void HtmlCtx_AddMediaPath ( GWEN_XML_CONTEXT * ctx,
const char * s )

Definition at line 173 of file htmlctx.c.

References GWEN_INHERIT_GETDATA, and GWEN_StringList_AppendString().

Referenced by FOX16_HtmlCtx::addMediaPath().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HtmlCtx_GetFont()

GWENHYWFAR_API HTML_FONT * HtmlCtx_GetFont ( GWEN_XML_CONTEXT * ctx,
const char * fontName,
int fontSize,
uint32_t fontFlags )

Definition at line 638 of file htmlctx.c.

References GWEN_INHERIT_GETDATA, and NULL.

Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx(), HtmlGroup_Box_StartTag(), and HtmlGroup_TableRow_StartTag().

Here is the caller graph for this function:

◆ HtmlCtx_GetHeight()

GWENHYWFAR_API int HtmlCtx_GetHeight ( const GWEN_XML_CONTEXT * ctx)

Definition at line 853 of file htmlctx.c.

References HtmlCtx_GetRootObject(), and HtmlObject_GetHeight().

Here is the call graph for this function:

◆ HtmlCtx_GetImage()

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 657 of file htmlctx.c.

References GWEN_INHERIT_GETDATA, and NULL.

Referenced by HtmlGroup_Box_StartTag().

Here is the caller graph for this function:

◆ HtmlCtx_GetMediaPaths()

GWENHYWFAR_API GWEN_STRINGLIST * HtmlCtx_GetMediaPaths ( const GWEN_XML_CONTEXT * ctx)

Definition at line 160 of file htmlctx.c.

References GWEN_INHERIT_GETDATA.

Referenced by FOX16_HtmlCtx::getImage().

Here is the caller graph for this function:

◆ HtmlCtx_GetResolutionX()

GWENHYWFAR_API int HtmlCtx_GetResolutionX ( const GWEN_XML_CONTEXT * ctx)

Definition at line 108 of file htmlctx.c.

References GWEN_INHERIT_GETDATA.

◆ HtmlCtx_GetResolutionY()

GWENHYWFAR_API int HtmlCtx_GetResolutionY ( const GWEN_XML_CONTEXT * ctx)

Definition at line 134 of file htmlctx.c.

References GWEN_INHERIT_GETDATA.

Referenced by HtmlObject_Box_Layout().

Here is the caller graph for this function:

◆ HtmlCtx_GetRootObject()

GWENHYWFAR_API HTML_OBJECT * HtmlCtx_GetRootObject ( const GWEN_XML_CONTEXT * ctx)

◆ HtmlCtx_GetStandardProps()

GWENHYWFAR_API HTML_PROPS * HtmlCtx_GetStandardProps ( const GWEN_XML_CONTEXT * ctx)

Definition at line 373 of file htmlctx.c.

References GWEN_INHERIT_GETDATA.

◆ HtmlCtx_GetWidth()

GWENHYWFAR_API int HtmlCtx_GetWidth ( const GWEN_XML_CONTEXT * ctx)

Definition at line 840 of file htmlctx.c.

References HtmlCtx_GetRootObject(), and HtmlObject_GetWidth().

Here is the call graph for this function:

◆ HtmlCtx_Layout()

GWENHYWFAR_API int HtmlCtx_Layout ( GWEN_XML_CONTEXT * ctx,
int width,
int height )

Definition at line 761 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HtmlCtx_new()

◆ HtmlCtx_SetGetColorFromNameFn()

Definition at line 709 of file htmlctx.c.

References GWEN_INHERIT_GETDATA.

Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx().

Here is the caller graph for this function:

◆ HtmlCtx_SetGetFontFn()

Definition at line 727 of file htmlctx.c.

References GWEN_INHERIT_GETDATA.

Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx().

Here is the caller graph for this function:

◆ HtmlCtx_SetGetImageFn()

Definition at line 744 of file htmlctx.c.

References GWEN_INHERIT_GETDATA.

Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx().

Here is the caller graph for this function:

◆ HtmlCtx_SetGetTextHeightFn()

Definition at line 691 of file htmlctx.c.

References GWEN_INHERIT_GETDATA.

Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx().

Here is the caller graph for this function:

◆ HtmlCtx_SetGetTextWidthFn()

Definition at line 673 of file htmlctx.c.

References GWEN_INHERIT_GETDATA.

Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx().

Here is the caller graph for this function:

◆ HtmlCtx_SetResolutionX()

GWENHYWFAR_API void HtmlCtx_SetResolutionX ( GWEN_XML_CONTEXT * ctx,
int i )

Definition at line 121 of file htmlctx.c.

References GWEN_INHERIT_GETDATA.

◆ HtmlCtx_SetResolutionY()

GWENHYWFAR_API void HtmlCtx_SetResolutionY ( GWEN_XML_CONTEXT * ctx,
int i )

Definition at line 147 of file htmlctx.c.

References GWEN_INHERIT_GETDATA.

◆ HtmlCtx_SetStandardProps()

GWENHYWFAR_API void HtmlCtx_SetStandardProps ( GWEN_XML_CONTEXT * ctx,
HTML_PROPS * pr )

Definition at line 386 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HtmlCtx_SetText()