gwenhywfar 5.12.0
FOX16_HtmlText Class Reference

#include <fox16_htmltext.hpp>

Inheritance diagram for FOX16_HtmlText:
Collaboration diagram for FOX16_HtmlText:

Public Types

enum  { FLAGS_NO_WORDWRAP = 0x00080000 }

Public Member Functions

 FOX16_HtmlText (FXComposite *p, const FXString &text, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
virtual FXint getContentHeight ()
virtual FXint getContentWidth ()
FXString getText () const
 Get the text for this label.
void layout ()
void makePositionVisible (FXint pos)
long onPaint (FXObject *, FXSelector, void *)
void setMinimumWidth (int i)
void setText (const FXString &text)
 Set the text for this label.
 ~FOX16_HtmlText ()

Protected Member Functions

void calcDefaultDims ()
 FOX16_HtmlText ()
void updateHtml ()

Protected Attributes

FXint barwidth
FXint m_defaultHeight
FXint m_defaultWidth
bool m_haveDefaultDims
FOX16_HtmlCtxm_htmlCtx
int m_maxDefaultWidth
int m_minWidth
FXString m_text
FXint marginbottom
FXint marginleft
FXint marginright
FXint margintop

Detailed Description

Definition at line 22 of file fox16_htmltext.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
FLAGS_NO_WORDWRAP 

don't wrap the text. If this flag is given as parameter to the constructor then you'll have to insert line-breaks into the text yourself.

Definition at line 27 of file fox16_htmltext.hpp.

Constructor & Destructor Documentation

◆ FOX16_HtmlText() [1/2]

FOX16_HtmlText ( FXComposite * p,
const FXString & text,
FXuint opts = 0,
FXint x = 0,
FXint y = 0,
FXint w = 0,
FXint h = 0 )

Definition at line 40 of file fox16_htmltext.cpp.

References barwidth, BORDER, FOX16_HtmlText(), m_haveDefaultDims, m_htmlCtx, m_maxDefaultWidth, m_minWidth, marginbottom, marginleft, marginright, margintop, MAX_DEFAULT_WIDTH, NULL, and setText().

Referenced by FOX16_HtmlText().

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

◆ ~FOX16_HtmlText()

Definition at line 68 of file fox16_htmltext.cpp.

References m_htmlCtx.

◆ FOX16_HtmlText() [2/2]

FOX16_HtmlText ( )
protected

Definition at line 59 of file fox16_htmltext.cpp.

References m_htmlCtx, m_minWidth, and NULL.

Member Function Documentation

◆ calcDefaultDims()

void calcDefaultDims ( )
protected

Definition at line 87 of file fox16_htmltext.cpp.

References BORDER, m_defaultHeight, m_defaultWidth, m_haveDefaultDims, m_htmlCtx, and m_maxDefaultWidth.

Referenced by getContentHeight(), and getContentWidth().

Here is the caller graph for this function:

◆ getContentHeight()

FXint getContentHeight ( )
virtual

Definition at line 121 of file fox16_htmltext.cpp.

References calcDefaultDims(), m_haveDefaultDims, m_htmlCtx, NULL, and updateHtml().

Referenced by makePositionVisible().

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

◆ getContentWidth()

FXint getContentWidth ( )
virtual

Definition at line 108 of file fox16_htmltext.cpp.

References barwidth, calcDefaultDims(), m_haveDefaultDims, m_htmlCtx, marginleft, marginright, NULL, and updateHtml().

Here is the call graph for this function:

◆ getText()

FXString getText ( ) const
inline

Get the text for this label.

Definition at line 43 of file fox16_htmltext.hpp.

References m_text.

Referenced by FOX16_GuiDialog::getCharProperty(), and FOX16_GuiDialog::setCharProperty().

Here is the caller graph for this function:

◆ layout()

void layout ( )

Definition at line 196 of file fox16_htmltext.cpp.

References barwidth, FLAGS_NO_WORDWRAP, m_haveDefaultDims, m_htmlCtx, marginbottom, marginleft, marginright, margintop, NULL, and updateHtml().

Referenced by setText().

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

◆ makePositionVisible()

void makePositionVisible ( FXint pos)

Definition at line 229 of file fox16_htmltext.cpp.

References getContentHeight().

Referenced by FOX16_GuiDialog::setCharProperty().

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

◆ onPaint()

long onPaint ( FXObject * ,
FXSelector ,
void * ptr )

Definition at line 133 of file fox16_htmltext.cpp.

References barwidth, DBG_ERROR, GWEN_LOGDOMAIN, m_htmlCtx, marginbottom, marginleft, marginright, and margintop.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ setMinimumWidth()

void setMinimumWidth ( int i)
inline

Definition at line 49 of file fox16_htmltext.hpp.

References m_minWidth.

◆ setText()

void setText ( const FXString & text)

Set the text for this label.

Definition at line 75 of file fox16_htmltext.cpp.

References layout(), m_haveDefaultDims, m_text, and updateHtml().

Referenced by FOX16_HtmlText(), and FOX16_GuiDialog::setCharProperty().

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

◆ updateHtml()

void updateHtml ( )
protected

Definition at line 218 of file fox16_htmltext.cpp.

References m_htmlCtx, and m_text.

Referenced by getContentHeight(), getContentWidth(), layout(), and setText().

Here is the caller graph for this function:

Field Documentation

◆ barwidth

FXint barwidth
protected

Definition at line 71 of file fox16_htmltext.hpp.

Referenced by FOX16_HtmlText(), getContentWidth(), layout(), and onPaint().

◆ m_defaultHeight

FXint m_defaultHeight
protected

Definition at line 65 of file fox16_htmltext.hpp.

Referenced by calcDefaultDims().

◆ m_defaultWidth

FXint m_defaultWidth
protected

Definition at line 64 of file fox16_htmltext.hpp.

Referenced by calcDefaultDims().

◆ m_haveDefaultDims

bool m_haveDefaultDims
protected

◆ m_htmlCtx

◆ m_maxDefaultWidth

int m_maxDefaultWidth
protected

Definition at line 61 of file fox16_htmltext.hpp.

Referenced by calcDefaultDims(), and FOX16_HtmlText().

◆ m_minWidth

int m_minWidth
protected

Definition at line 60 of file fox16_htmltext.hpp.

Referenced by FOX16_HtmlText(), FOX16_HtmlText(), and setMinimumWidth().

◆ m_text

FXString m_text
protected

Definition at line 59 of file fox16_htmltext.hpp.

Referenced by getText(), setText(), and updateHtml().

◆ marginbottom

FXint marginbottom
protected

Definition at line 68 of file fox16_htmltext.hpp.

Referenced by FOX16_HtmlText(), layout(), and onPaint().

◆ marginleft

FXint marginleft
protected

Definition at line 69 of file fox16_htmltext.hpp.

Referenced by FOX16_HtmlText(), getContentWidth(), layout(), and onPaint().

◆ marginright

FXint marginright
protected

Definition at line 70 of file fox16_htmltext.hpp.

Referenced by FOX16_HtmlText(), getContentWidth(), layout(), and onPaint().

◆ margintop

FXint margintop
protected

Definition at line 67 of file fox16_htmltext.hpp.

Referenced by FOX16_HtmlText(), layout(), and onPaint().


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