Dillo
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
dw::core::Content Struct Reference

#include <types.hh>

Public Types

enum  Type {
  START = 1 << 0, END = 1 << 1, TEXT = 1 << 2, WIDGET_IN_FLOW = 1 << 3,
  WIDGET_OOF_CONT = 1 << 4, WIDGET_OOF_REF = 1 << 5, BREAK = 1 << 6, INVALID = 1 << 7,
  ALL = 0xff, REAL_CONTENT = 0xff ^ (START | END), SELECTION_CONTENT = TEXT | BREAK, ANY_WIDGET = WIDGET_IN_FLOW | WIDGET_OOF_CONT | WIDGET_OOF_REF
}
 

Public Member Functions

WidgetgetWidget ()
 

Static Public Member Functions

static Content::Type maskForSelection (bool followReferences)
 
static void intoStringBuffer (Content *content, lout::misc::StringBuffer *sb)
 
static void maskIntoStringBuffer (Type mask, lout::misc::StringBuffer *sb)
 
static void print (Content *content)
 
static void printMask (Type mask)
 

Public Attributes

short type
 
bool space
 
union {
   const char *   text
 
   Widget *   widget
 
   WidgetReference *   widgetReference
 
   int   breakSpace
 
}; 
 

Member Enumeration Documentation

Enumerator
START 
END 
TEXT 
WIDGET_IN_FLOW 

widget in normal flow, so that this widget (containing this content) is both container (parent) and generator

WIDGET_OOF_CONT 

widget out of flow (OOF); this widget (containing this content) is only the container (parent), but not generator

WIDGET_OOF_REF 

reference to a widget out of flow (OOF); this widget (containing this content) is only the generator (parent), but not container

BREAK 
INVALID 

can be used internally, but should never be exposed, e. g. by iterators

ALL 
REAL_CONTENT 
SELECTION_CONTENT 
ANY_WIDGET 

Member Function Documentation

Widget* dw::core::Content::getWidget ( )
inline
void dw::core::Content::intoStringBuffer ( Content content,
lout::misc::StringBuffer sb 
)
static
Content::Type dw::core::Content::maskForSelection ( bool  followReferences)
static
void dw::core::Content::maskIntoStringBuffer ( Type  mask,
lout::misc::StringBuffer sb 
)
static
void dw::core::Content::print ( Content content)
static
void dw::core::Content::printMask ( Type  mask)
static

Member Data Documentation

union { ... }
int dw::core::Content::breakSpace
bool dw::core::Content::space
const char* dw::core::Content::text
short dw::core::Content::type

Referenced by dw::Textblock::accumulateWordForLine(), dw::Textblock::addLinebreak(), dw::Textblock::addParbreak(), dw::Textblock::addText0(), dw::Textblock::addWidget(), dw::Textblock::alignLine(), dw::Textblock::changeLinkColor(), dw::Textblock::cleanupWord(), dw::core::EmptyIterator::compareTo(), dw::core::TextIterator::compareTo(), dw::Textblock::containerSizeChangedForChildren(), dw::core::SelectionState::copy(), dw::core::SelectionState::correctCharPos(), dw::core::DeepIterator::DeepIterator(), dw::Textblock::drawLevel(), dw::Textblock::drawLine(), dw::core::EmptyIterator::EmptyIterator(), dw::Textblock::fillSpace(), dw::Textblock::TextblockIterator::getAllocation(), dw::Table::TableIterator::getContentInFlow(), dw::oof::OOFAwareWidget::OOFAwareWidgetIterator::getPart(), dw::Textblock::getWidgetAtPointLevel(), dw::Textblock::getWidgetRegardingBorderForLine(), dw::Textblock::getWordExtremes(), dw::core::CharIterator::highlight(), dw::core::SelectionState::highlight0(), dw::Textblock::hyphenateWord(), dw::Textblock::initLine1Offset(), intoStringBuffer(), dw::Textblock::isHyphenationCandidate(), dw::core::EmptyIterator::next(), dw::core::TextIterator::next(), dw::core::DeepIterator::next(), dw::core::EmptyIterator::prev(), dw::core::TextIterator::prev(), dw::core::DeepIterator::prev(), dw::Textblock::rewrap(), dw::core::DeepIterator::searchDownward(), dw::core::DeepIterator::searchSideward(), dw::Textblock::sendSelectionEvent(), dw::Textblock::sizeAllocateImpl(), dw::core::TextIterator::TextIterator(), dw::AlignedTableCell::wordWrap(), dw::Textblock::wordWrap(), dw::Textblock::wrapWordInFlow(), and dw::Textblock::wrapWordOofRef().

Widget* dw::core::Content::widget
WidgetReference* dw::core::Content::widgetReference

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