Dillo
Classes | Namespaces | Macros
textblock.hh File Reference
#include <limits.h>
#include "regardingborder.hh"
#include "../lout/misc.hh"
Include dependency graph for textblock.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  dw::Textblock
 A Widget for rendering text blocks, i.e. paragraphs or sequences of paragraphs. More...
 
class  dw::Textblock::BadnessAndPenalty
 
struct  dw::Textblock::DivChar
 
class  dw::Textblock::WordImgRenderer
 Implementation used for words. More...
 
class  dw::Textblock::SpaceImgRenderer
 
struct  dw::Textblock::Paragraph
 
struct  dw::Textblock::Line
 
struct  dw::Textblock::Word
 
struct  dw::Textblock::Anchor
 
class  dw::Textblock::TextblockIterator
 

Namespaces

 dw
 Dw is in this namespace, or sub namespaces of this one.
 

Macros

#define PRINTF(fmt,...)
 
#define PUTCHAR(ch)
 
#define DBG_SET_WORD_PENALTY(n, i, is)
 
#define DBG_OBJ_ARRATTRSET_WREF(var, ind, attr, wref)   STMT_NOP
 
#define DBG_SET_WORD(n)
 
#define DBG_SET_WORD_SIZE(n)
 
#define DBG_MSG_WORD(aspect, prio, prefix, n, suffix)
 

Macro Definition Documentation

#define DBG_MSG_WORD (   aspect,
  prio,
  prefix,
  n,
  suffix 
)
Value:
if ((n) < 0 || (n) >= words->size ()) \
DBG_OBJ_MSG (aspect, prio, prefix "undefined (wrong index)" suffix); \
else { \
switch (words->getRef(n)->content.type) { \
case ::dw::core::Content::TEXT: \
DBG_OBJ_MSGF (aspect, prio, prefix "TEXT / \"%s\"" suffix, \
words->getRef(n)->content.text); \
break; \
case ::dw::core::Content::WIDGET_IN_FLOW: \
DBG_OBJ_MSGF (aspect, prio, prefix "WIDGET_IN_FLOW / %p" suffix, \
words->getRef(n)->content.widget); \
break; \
case ::dw::core::Content::WIDGET_OOF_REF: \
DBG_OBJ_MSGF (aspect, prio, \
prefix "WIDGET_OOF_REF / %p (%p, %d)" suffix,\
words->getRef(n)->content.widgetReference, \
words->getRef(n)->content.widgetReference->widget, \
words->getRef(n)->content.widgetReference \
->parentRef); \
break; \
case ::dw::core::Content::BREAK: \
DBG_OBJ_MSGF (aspect, prio, prefix "BREAK / %d" suffix, \
words->getRef(n)->content.breakSpace); \
break; \
default: \
DBG_OBJ_MSG (aspect, prio, prefix "??? / ???" suffix); \
} \
} \
#define DBG_OBJ_MSGF(aspect, prio, fmt,...)
Definition: debug_rtfl.hh:392
#define D_STMT_END
Definition: debug.hh:18
#define DBG_OBJ_MSG(aspect, prio, msg)
Definition: debug_rtfl.hh:390
#define D_STMT_START
Definition: debug.hh:17

Referenced by dw::Textblock::accumulateWordData(), dw::Textblock::accumulateWordForLine(), dw::Textblock::addLine(), dw::Textblock::drawLine(), dw::Textblock::getLineStretchability(), dw::Textblock::getWidgetRegardingBorderForLine(), dw::Textblock::handleWordExtremes(), dw::Textblock::processWord(), dw::Textblock::searchBreakPos(), dw::Textblock::searchMinBap(), dw::Textblock::sendSelectionEvent(), dw::Textblock::sizeAllocateImpl(), dw::Textblock::wordWrap(), and dw::Textblock::wrapWordInFlow().

#define DBG_OBJ_ARRATTRSET_WREF (   var,
  ind,
  attr,
  wref 
)    STMT_NOP
#define DBG_SET_WORD (   n)
#define DBG_SET_WORD_PENALTY (   n,
  i,
  is 
)
Value:
if (words->getRef(n)->badnessAndPenalty.getPenalty (i) == INT_MIN) \
DBG_OBJ_ARRATTRSET_SYM ("words", n, "penalty." is, "-inf"); \
else if (words->getRef(n)->badnessAndPenalty.getPenalty (i) == INT_MAX) \
DBG_OBJ_ARRATTRSET_SYM ("words", n, "penalty." is, "inf"); \
DBG_OBJ_ARRATTRSET_NUM ("words", n, "penalty." is, \
words->getRef(n)->badnessAndPenalty \
.getPenalty (i)); \
#define D_STMT_END
Definition: debug.hh:18
#define D_STMT_START
Definition: debug.hh:17
#define DBG_OBJ_ARRATTRSET_NUM(var, ind, attr, val)
Definition: debug_rtfl.hh:444
#define DBG_OBJ_ARRATTRSET_SYM(var, ind, attr, val)
Definition: debug_rtfl.hh:446
#define DBG_SET_WORD_SIZE (   n)
Value:
DBG_OBJ_ARRATTRSET_NUM ("words", n, "size.width", \
words->getRef(n)->size.width); \
DBG_OBJ_ARRATTRSET_NUM ("words", n, "size.ascent", \
words->getRef(n)->size.ascent); \
DBG_OBJ_ARRATTRSET_NUM ("words", n, "size.descent", \
words->getRef(n)->size.descent); \
#define D_STMT_END
Definition: debug.hh:18
#define D_STMT_START
Definition: debug.hh:17
#define DBG_OBJ_ARRATTRSET_NUM(var, ind, attr, val)
Definition: debug_rtfl.hh:444

Referenced by dw::Textblock::fillWord(), and dw::Textblock::rewrap().

#define PRINTF (   fmt,
  ... 
)
#define PUTCHAR (   ch)