gwenhywfar  4.8.0beta
Public Member Functions | Protected Member Functions | Protected Attributes | Friends
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 ( uint32_t  flags)

Definition at line 170 of file fox16_htmlctx.cpp.

References _context, GWEN_INHERIT_UNLINK, and GWEN_XmlCtx_free().

Member Function Documentation

FXFont * _getFoxFont ( HTML_FONT fnt)
protected
void _paint ( FXDC *  dc,
HTML_OBJECT o,
int  xOffset,
int  yOffset 
)
protected
void _paintAt ( FXDC *  dc,
HTML_OBJECT o,
int  xOffset,
int  yOffset,
int  xText,
int  yText,
int  w,
int  h 
)
protected
void addMediaPath ( const char *  s)

Definition at line 292 of file fox16_htmlctx.cpp.

References _context, and HtmlCtx_AddMediaPath().

Referenced by FOX16_HtmlLabel::updateHtml().

void dump ( )

Definition at line 336 of file fox16_htmlctx.cpp.

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

uint32_t getColorFromName ( const char *  name)
protected

Definition at line 269 of file fox16_htmlctx.cpp.

HTML_FONT * getFont ( const char *  fontName,
int  fontSize,
uint32_t  fontFlags 
)

Definition at line 591 of file fox16_htmlctx.cpp.

References FOX16_Gui::getFgGui(), and FOX16_Gui::getFont().

int getHeight ( )
HTML_IMAGE * getImage ( const char *  imageName)
int getTextHeight ( HTML_FONT fnt,
const char *  s 
)
protected

Definition at line 249 of file fox16_htmlctx.cpp.

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

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

Definition at line 229 of file fox16_htmlctx.cpp.

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

int getWidth ( )
int layout ( int  width,
int  height 
)
void paint ( FXDC *  dc,
int  xOffset,
int  yOffset 
)

Definition at line 544 of file fox16_htmlctx.cpp.

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

Referenced by FOX16_HtmlLabel::onPaint().

void paintAt ( FXDC *  dc,
int  xOffset,
int  yOffset,
int  xText,
int  yText,
int  w,
int  h 
)

Definition at line 554 of file fox16_htmlctx.cpp.

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

Referenced by FOX16_HtmlText::onPaint().

void setBackgroundColor ( FXColor  c)

Definition at line 652 of file fox16_htmlctx.cpp.

References _bgColor.

Referenced by FOX16_HtmlText::updateHtml(), and FOX16_HtmlLabel::updateHtml().

void setForegroundColor ( FXColor  c)

Definition at line 658 of file fox16_htmlctx.cpp.

References _fgColor.

Referenced by FOX16_HtmlText::updateHtml(), and FOX16_HtmlLabel::updateHtml().

void setText ( const char *  s)

Friends And Related Function Documentation

friend class FOX16_HtmlCtxLinker
friend

Definition at line 23 of file fox16_htmlctx.hpp.

Field Documentation

FXColor _bgColor
protected

Definition at line 58 of file fox16_htmlctx.hpp.

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

GWEN_XML_CONTEXT* _context
protected
FXColor _fgColor
protected

Definition at line 57 of file fox16_htmlctx.hpp.

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

FXFont* _font
protected

Definition at line 56 of file fox16_htmlctx.hpp.

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

FXIconSource* m_iconSource
protected

Definition at line 59 of file fox16_htmlctx.hpp.

Referenced by getImage().


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