gwenhywfar
4.8.0beta
|
#include <fox16_htmltext.hpp>
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. More... | |
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. More... | |
~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_HtmlCtx * | m_htmlCtx |
int | m_maxDefaultWidth |
int | m_minWidth |
FXString | m_text |
FXint | marginbottom |
FXint | marginleft |
FXint | marginright |
FXint | margintop |
Definition at line 22 of file fox16_htmltext.hpp.
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.
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.
~FOX16_HtmlText | ( | ) |
Definition at line 70 of file fox16_htmltext.cpp.
References m_htmlCtx.
|
protected |
Definition at line 60 of file fox16_htmltext.cpp.
|
protected |
Definition at line 89 of file fox16_htmltext.cpp.
References BORDER, FOX16_HtmlCtx::getHeight(), FOX16_HtmlCtx::getWidth(), FOX16_HtmlCtx::layout(), m_defaultHeight, m_defaultWidth, m_haveDefaultDims, m_htmlCtx, and m_maxDefaultWidth.
Referenced by getContentHeight(), and getContentWidth().
|
virtual |
Definition at line 123 of file fox16_htmltext.cpp.
References calcDefaultDims(), FOX16_HtmlCtx::getHeight(), m_haveDefaultDims, m_htmlCtx, NULL, and updateHtml().
Referenced by makePositionVisible().
|
virtual |
Definition at line 110 of file fox16_htmltext.cpp.
References barwidth, calcDefaultDims(), FOX16_HtmlCtx::getWidth(), FOX16_HtmlCtx::layout(), m_haveDefaultDims, m_htmlCtx, marginleft, marginright, NULL, and updateHtml().
|
inline |
Get the text for this label.
Definition at line 43 of file fox16_htmltext.hpp.
Referenced by FOX16_GuiDialog::getCharProperty(), and FOX16_GuiDialog::setCharProperty().
void layout | ( | ) |
Definition at line 198 of file fox16_htmltext.cpp.
References barwidth, FLAGS_NO_WORDWRAP, FOX16_HtmlCtx::layout(), m_haveDefaultDims, m_htmlCtx, marginbottom, marginleft, marginright, margintop, NULL, and updateHtml().
Referenced by setText().
void makePositionVisible | ( | FXint | pos) |
Definition at line 231 of file fox16_htmltext.cpp.
References getContentHeight().
Referenced by FOX16_GuiDialog::setCharProperty().
long onPaint | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 135 of file fox16_htmltext.cpp.
References barwidth, DBG_ERROR, GWEN_LOGDOMAIN, m_htmlCtx, marginbottom, marginleft, marginright, margintop, and FOX16_HtmlCtx::paintAt().
|
inline |
Definition at line 49 of file fox16_htmltext.hpp.
void setText | ( | const FXString & | text) |
Set the text for this label.
Definition at line 77 of file fox16_htmltext.cpp.
References layout(), m_haveDefaultDims, m_text, and updateHtml().
Referenced by FOX16_GuiDialog::setCharProperty().
|
protected |
Definition at line 220 of file fox16_htmltext.cpp.
References m_htmlCtx, m_text, FOX16_HtmlCtx::setBackgroundColor(), FOX16_HtmlCtx::setForegroundColor(), and FOX16_HtmlCtx::setText().
Referenced by getContentHeight(), getContentWidth(), layout(), and setText().
|
protected |
Definition at line 71 of file fox16_htmltext.hpp.
Referenced by getContentWidth(), layout(), and onPaint().
|
protected |
Definition at line 65 of file fox16_htmltext.hpp.
Referenced by calcDefaultDims().
|
protected |
Definition at line 64 of file fox16_htmltext.hpp.
Referenced by calcDefaultDims().
|
protected |
Definition at line 63 of file fox16_htmltext.hpp.
Referenced by calcDefaultDims(), getContentHeight(), getContentWidth(), layout(), and setText().
|
protected |
Definition at line 58 of file fox16_htmltext.hpp.
Referenced by calcDefaultDims(), getContentHeight(), getContentWidth(), layout(), onPaint(), updateHtml(), and ~FOX16_HtmlText().
|
protected |
Definition at line 61 of file fox16_htmltext.hpp.
Referenced by calcDefaultDims().
|
protected |
Definition at line 60 of file fox16_htmltext.hpp.
|
protected |
Definition at line 59 of file fox16_htmltext.hpp.
Referenced by setText(), and updateHtml().
|
protected |
Definition at line 68 of file fox16_htmltext.hpp.
|
protected |
Definition at line 69 of file fox16_htmltext.hpp.
Referenced by getContentWidth(), layout(), and onPaint().
|
protected |
Definition at line 70 of file fox16_htmltext.hpp.
Referenced by getContentWidth(), layout(), and onPaint().
|
protected |
Definition at line 67 of file fox16_htmltext.hpp.