|
gwenhywfar 5.14.1
|
#include <fox16_htmlctx.hpp>
Public Member Functions | |
| void | addMediaPath (const char *s) |
| void | dump () |
| FOX16_HtmlCtx (uint32_t flags) | |
| HTML_FONT * | getFont (const char *fontName, int fontSize, uint32_t fontFlags) |
| int | getHeight () |
| HTML_IMAGE * | getImage (const char *imageName) |
| int | getWidth () |
| int | layout (int width, int height) |
| void | paint (FXDC *dc, int xOffset, int yOffset) |
| void | paintAt (FXDC *dc, int xOffset, int yOffset, int xText, int yText, int w, int h) |
| void | setBackgroundColor (FXColor c) |
| void | setForegroundColor (FXColor c) |
| void | setText (const char *s) |
| ~FOX16_HtmlCtx () | |
Protected Member Functions | |
| FXFont * | _getFoxFont (HTML_FONT *fnt) |
| void | _paint (FXDC *dc, HTML_OBJECT *o, int xOffset, int yOffset) |
| void | _paintAt (FXDC *dc, HTML_OBJECT *o, int xOffset, int yOffset, int xText, int yText, int w, int h) |
| uint32_t | getColorFromName (const char *name) |
| int | getTextHeight (HTML_FONT *fnt, const char *s) |
| int | getTextWidth (HTML_FONT *fnt, const char *s) |
Protected Attributes | |
| FXColor | _bgColor |
| GWEN_XML_CONTEXT * | _context |
| FXColor | _fgColor |
| FXFont * | _font |
| FXIconSource * | m_iconSource |
Friends | |
| class | FOX16_HtmlCtxLinker |
Definition at line 22 of file fox16_htmlctx.hpp.
| FOX16_HtmlCtx | ( | uint32_t | flags | ) |
Definition at line 140 of file fox16_htmlctx.cpp.
References _bgColor, _context, _fgColor, _font, FOX16_HtmlCtx(), GWEN_INHERIT_SETDATA, HtmlCtx_GetFont(), HtmlCtx_new(), HtmlCtx_SetGetColorFromNameFn(), HtmlCtx_SetGetFontFn(), HtmlCtx_SetGetImageFn(), HtmlCtx_SetGetTextHeightFn(), HtmlCtx_SetGetTextWidthFn(), HtmlCtx_SetStandardProps(), HtmlProps_free(), HtmlProps_new(), HtmlProps_SetFont(), m_iconSource, and NULL.
Referenced by FOX16_HtmlCtx(), FOX16_HtmlCtxLinker, and ~FOX16_HtmlCtx().


| ~FOX16_HtmlCtx | ( | ) |
Definition at line 169 of file fox16_htmlctx.cpp.
References _context, FOX16_HtmlCtx(), GWEN_INHERIT_UNLINK, and GWEN_XmlCtx_free().

|
protected |
Definition at line 178 of file fox16_htmlctx.cpp.
References _font, DBG_DEBUG, DBG_ERROR, GWEN_INHERIT_GETDATA, GWEN_INHERIT_ISOFTYPE, GWEN_INHERIT_SETDATA, GWEN_LOGDOMAIN, HTML_FONT_FLAGS_ITALIC, HTML_FONT_FLAGS_STRONG, HtmlFont_GetFontFlags(), HtmlFont_GetFontName(), HtmlFont_GetFontSize(), and NULL.
Referenced by _paint(), _paintAt(), getTextHeight(), and getTextWidth().


|
protected |
Definition at line 345 of file fox16_htmlctx.cpp.
References _bgColor, _fgColor, _getFoxFont(), _paint(), GWEN_INHERIT_GETDATA, HTML_PROPS_NOCOLOR, HtmlObject_GetObjectType(), HtmlObject_GetProperties(), HtmlObject_GetText(), HtmlObject_GetX(), HtmlObject_GetY(), HtmlObject_Image_GetImage(), HtmlObjectType_Image, HtmlObjectType_Word, HtmlProps_GetBackgroundColor(), HtmlProps_GetFont(), and HtmlProps_GetForegroundColor().
Referenced by _paint(), and paint().


|
protected |
Definition at line 432 of file fox16_htmlctx.cpp.
References _bgColor, _fgColor, _getFoxFont(), _paintAt(), GWEN_INHERIT_GETDATA, HTML_PROPS_NOCOLOR, HtmlObject_GetHeight(), HtmlObject_GetObjectType(), HtmlObject_GetProperties(), HtmlObject_GetText(), HtmlObject_GetWidth(), HtmlObject_GetX(), HtmlObject_GetY(), HtmlObject_Image_GetImage(), HtmlObjectType_Grid, HtmlObjectType_Image, HtmlObjectType_Word, HtmlProps_GetBackgroundColor(), HtmlProps_GetFont(), and HtmlProps_GetForegroundColor().
Referenced by _paintAt(), and paintAt().


| void addMediaPath | ( | const char * | s | ) |
Definition at line 291 of file fox16_htmlctx.cpp.
References _context, and HtmlCtx_AddMediaPath().
Referenced by FOX16_HtmlCtxLinker.


| void dump | ( | ) |
Definition at line 335 of file fox16_htmlctx.cpp.
References _context, dumpObject(), and HtmlCtx_GetRootObject().
Referenced by FOX16_HtmlCtxLinker.


|
protected |
Definition at line 268 of file fox16_htmlctx.cpp.
| HTML_FONT * getFont | ( | const char * | fontName, |
| int | fontSize, | ||
| uint32_t | fontFlags ) |
Definition at line 590 of file fox16_htmlctx.cpp.
References FOX16_Gui::getFgGui(), and FOX16_Gui::getFont().
Referenced by FOX16_HtmlCtxLinker.


| int getHeight | ( | ) |
Definition at line 578 of file fox16_htmlctx.cpp.
References _context, HtmlCtx_GetRootObject(), and HtmlObject_GetHeight().
Referenced by FOX16_HtmlCtxLinker.


| HTML_IMAGE * getImage | ( | const char * | imageName | ) |
Definition at line 603 of file fox16_htmlctx.cpp.
References _context, DBG_ERROR, GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_Directory_FindFileInPaths(), GWEN_INHERIT_SETDATA, GWEN_LOGDOMAIN, HtmlCtx_GetMediaPaths(), HtmlImage_new(), HtmlImage_SetHeight(), HtmlImage_SetImageName(), HtmlImage_SetWidth(), m_iconSource, and NULL.
Referenced by FOX16_HtmlCtxLinker.


|
protected |
Definition at line 248 of file fox16_htmlctx.cpp.
References _font, _getFoxFont(), DBG_ERROR, GWEN_LOGDOMAIN, and NULL.

|
protected |
Definition at line 228 of file fox16_htmlctx.cpp.
References _font, _getFoxFont(), DBG_ERROR, GWEN_LOGDOMAIN, and NULL.

| int getWidth | ( | ) |
Definition at line 566 of file fox16_htmlctx.cpp.
References _context, HtmlCtx_GetRootObject(), and HtmlObject_GetWidth().
Referenced by FOX16_HtmlCtxLinker.


| int layout | ( | int | width, |
| int | height ) |
Definition at line 274 of file fox16_htmlctx.cpp.
References _context, and HtmlCtx_Layout().
Referenced by FOX16_HtmlCtxLinker.


| void paint | ( | FXDC * | dc, |
| int | xOffset, | ||
| int | yOffset ) |
Definition at line 543 of file fox16_htmlctx.cpp.
References _context, _paint(), and HtmlCtx_GetRootObject().
Referenced by FOX16_HtmlCtxLinker.


| void paintAt | ( | FXDC * | dc, |
| int | xOffset, | ||
| int | yOffset, | ||
| int | xText, | ||
| int | yText, | ||
| int | w, | ||
| int | h ) |
Definition at line 553 of file fox16_htmlctx.cpp.
References _context, _paintAt(), and HtmlCtx_GetRootObject().
Referenced by FOX16_HtmlCtxLinker.


| void setBackgroundColor | ( | FXColor | c | ) |
Definition at line 651 of file fox16_htmlctx.cpp.
References _bgColor.
Referenced by FOX16_HtmlCtxLinker.

| void setForegroundColor | ( | FXColor | c | ) |
Definition at line 657 of file fox16_htmlctx.cpp.
References _fgColor.
Referenced by FOX16_HtmlCtxLinker.

| void setText | ( | const char * | s | ) |
Definition at line 280 of file fox16_htmlctx.cpp.
References _context, DBG_INFO, GWEN_LOGDOMAIN, and GWEN_XMLContext_ReadFromString().
Referenced by FOX16_HtmlCtxLinker.


|
friend |
Definition at line 23 of file fox16_htmlctx.hpp.
References addMediaPath(), dump(), FOX16_HtmlCtx(), FOX16_HtmlCtxLinker, getFont(), getHeight(), getImage(), getWidth(), layout(), paint(), paintAt(), setBackgroundColor(), setForegroundColor(), and setText().
Referenced by FOX16_HtmlCtxLinker.
|
protected |
Definition at line 58 of file fox16_htmlctx.hpp.
Referenced by _paint(), _paintAt(), FOX16_HtmlCtx(), and setBackgroundColor().
|
protected |
Definition at line 55 of file fox16_htmlctx.hpp.
Referenced by addMediaPath(), dump(), FOX16_HtmlCtx(), getHeight(), getImage(), getWidth(), layout(), paint(), paintAt(), setText(), and ~FOX16_HtmlCtx().
|
protected |
Definition at line 57 of file fox16_htmlctx.hpp.
Referenced by _paint(), _paintAt(), FOX16_HtmlCtx(), and setForegroundColor().
|
protected |
Definition at line 56 of file fox16_htmlctx.hpp.
Referenced by _getFoxFont(), FOX16_HtmlCtx(), getTextHeight(), and getTextWidth().
|
protected |
Definition at line 59 of file fox16_htmlctx.hpp.
Referenced by FOX16_HtmlCtx(), and getImage().