Dillo v3.1.1-91-g6d5b3ee3
Loading...
Searching...
No Matches
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. 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

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

Macros

#define PRINTF(...)
 
#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

◆ DBG_MSG_WORD

#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 D_STMT_START
Definition dlib.h:62
#define D_STMT_END
Definition dlib.h:63

Definition at line 981 of file textblock.hh.

◆ DBG_OBJ_ARRATTRSET_WREF

#define DBG_OBJ_ARRATTRSET_WREF (   var,
  ind,
  attr,
  wref 
)    STMT_NOP

Definition at line 931 of file textblock.hh.

◆ DBG_SET_WORD

#define DBG_SET_WORD (   n)

Definition at line 934 of file textblock.hh.

◆ DBG_SET_WORD_PENALTY

#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"); \
else \
DBG_OBJ_ARRATTRSET_NUM ("words", n, "penalty." is, \
words->getRef(n)->badnessAndPenalty \
.getPenalty (i)); \

Definition at line 914 of file textblock.hh.

◆ DBG_SET_WORD_SIZE

#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); \

Definition at line 971 of file textblock.hh.

◆ PRINTF

#define PRINTF (   ...)

Definition at line 11 of file textblock.hh.

◆ PUTCHAR

#define PUTCHAR (   ch)

Definition at line 12 of file textblock.hh.