gwenhywfar 5.12.0
FOX16_HtmlCtx Class Reference

#include <fox16_htmlctx.hpp>

Public Member Functions

void addMediaPath (const char *s)
void dump ()
 FOX16_HtmlCtx (uint32_t flags)
HTML_FONTgetFont (const char *fontName, int fontSize, uint32_t fontFlags)
int getHeight ()
HTML_IMAGEgetImage (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

Detailed Description

Definition at line 22 of file fox16_htmlctx.hpp.

Constructor & Destructor Documentation

◆ FOX16_HtmlCtx()

◆ ~FOX16_HtmlCtx()

Definition at line 169 of file fox16_htmlctx.cpp.

References _context, FOX16_HtmlCtx(), GWEN_INHERIT_UNLINK, and GWEN_XmlCtx_free().

Here is the call graph for this function:

Member Function Documentation

◆ _getFoxFont()

FXFont * _getFoxFont ( HTML_FONT * fnt)
protected

◆ _paint()

void _paint ( FXDC * dc,
HTML_OBJECT * o,
int xOffset,
int yOffset )
protected

◆ _paintAt()

void _paintAt ( FXDC * dc,
HTML_OBJECT * o,
int xOffset,
int yOffset,
int xText,
int yText,
int w,
int h )
protected

◆ addMediaPath()

void addMediaPath ( const char * s)

Definition at line 291 of file fox16_htmlctx.cpp.

References _context, and HtmlCtx_AddMediaPath().

Referenced by FOX16_HtmlCtxLinker.

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

◆ dump()

void dump ( )

Definition at line 335 of file fox16_htmlctx.cpp.

References _context, dumpObject(), and HtmlCtx_GetRootObject().

Referenced by FOX16_HtmlCtxLinker, and test1().

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

◆ getColorFromName()

uint32_t getColorFromName ( const char * name)
protected

Definition at line 268 of file fox16_htmlctx.cpp.

◆ getFont()

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.

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

◆ getHeight()

int getHeight ( )

Definition at line 578 of file fox16_htmlctx.cpp.

References _context, HtmlCtx_GetRootObject(), and HtmlObject_GetHeight().

Referenced by FOX16_HtmlCtxLinker.

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

◆ getImage()

HTML_IMAGE * getImage ( const char * imageName)

◆ getTextHeight()

int getTextHeight ( HTML_FONT * fnt,
const char * s )
protected

Definition at line 248 of file fox16_htmlctx.cpp.

References _font, _getFoxFont(), DBG_ERROR, GWEN_LOGDOMAIN, and NULL.

Here is the call graph for this function:

◆ getTextWidth()

int getTextWidth ( HTML_FONT * fnt,
const char * s )
protected

Definition at line 228 of file fox16_htmlctx.cpp.

References _font, _getFoxFont(), DBG_ERROR, GWEN_LOGDOMAIN, and NULL.

Here is the call graph for this function:

◆ getWidth()

int getWidth ( )

Definition at line 566 of file fox16_htmlctx.cpp.

References _context, HtmlCtx_GetRootObject(), and HtmlObject_GetWidth().

Referenced by FOX16_HtmlCtxLinker.

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

◆ layout()

int layout ( int width,
int height )

Definition at line 274 of file fox16_htmlctx.cpp.

References _context, and HtmlCtx_Layout().

Referenced by FOX16_HtmlCtxLinker.

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

◆ paint()

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.

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

◆ paintAt()

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.

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

◆ setBackgroundColor()

void setBackgroundColor ( FXColor c)

Definition at line 651 of file fox16_htmlctx.cpp.

References _bgColor.

Referenced by FOX16_HtmlCtxLinker.

Here is the caller graph for this function:

◆ setForegroundColor()

void setForegroundColor ( FXColor c)

Definition at line 657 of file fox16_htmlctx.cpp.

References _fgColor.

Referenced by FOX16_HtmlCtxLinker.

Here is the caller graph for this function:

◆ setText()

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, and test1().

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

◆ FOX16_HtmlCtxLinker

Field Documentation

◆ _bgColor

FXColor _bgColor
protected

Definition at line 58 of file fox16_htmlctx.hpp.

Referenced by _paint(), _paintAt(), FOX16_HtmlCtx(), and setBackgroundColor().

◆ _context

◆ _fgColor

FXColor _fgColor
protected

Definition at line 57 of file fox16_htmlctx.hpp.

Referenced by _paint(), _paintAt(), FOX16_HtmlCtx(), and setForegroundColor().

◆ _font

FXFont* _font
protected

Definition at line 56 of file fox16_htmlctx.hpp.

Referenced by _getFoxFont(), FOX16_HtmlCtx(), getTextHeight(), and getTextWidth().

◆ m_iconSource

FXIconSource* m_iconSource
protected

Definition at line 59 of file fox16_htmlctx.hpp.

Referenced by FOX16_HtmlCtx(), and getImage().


The documentation for this class was generated from the following files: