Dillo v3.1.1-46-g8a360e32
Loading...
Searching...
No Matches
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 
 
};  
 

Detailed Description

Definition at line 197 of file types.hh.

Member Enumeration Documentation

◆ Type

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 

Definition at line 199 of file types.hh.

Member Function Documentation

◆ getWidget()

◆ intoStringBuffer()

◆ maskForSelection()

Content::Type dw::core::Content::maskForSelection ( bool  followReferences)
static

◆ maskIntoStringBuffer()

void dw::core::Content::maskIntoStringBuffer ( Type  mask,
lout::misc::StringBuffer sb 
)
static

◆ print()

void dw::core::Content::print ( Content content)
static

Definition at line 344 of file types.cc.

References lout::misc::StringBuffer::getChars(), and intoStringBuffer().

◆ printMask()

void dw::core::Content::printMask ( Type  mask)
static

Definition at line 351 of file types.cc.

References lout::misc::StringBuffer::getChars(), and maskIntoStringBuffer().

Member Data Documentation

◆ [union]

union { ... } dw::core::Content

◆ breakSpace

◆ space

bool dw::core::Content::space

◆ text

◆ type

short dw::core::Content::type

Definition at line 233 of file types.hh.

Referenced by dw::Textblock::accumulateWordForLine(), dw::Textblock::addLine(), dw::Textblock::addLinebreak(), dw::Textblock::addParbreak(), 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::TextblockIterator::getAllocation(), dw::Table::TableIterator::getContentInFlow(), dw::Textblock::getGeneratorWidth(), dw::oof::OOFAwareWidget::OOFAwareWidgetIterator::getPart(), getWidget(), 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::oof::OOFAwareWidget::OOFAwareWidgetIterator::OOFAwareWidgetIterator(), 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::SimpleContainer::SimpleContainerIterator::SimpleContainerIterator(), dw::Textblock::sizeAllocateImpl(), dw::core::TextIterator::TextIterator(), dw::AlignedTableCell::wordWrap(), dw::Textblock::wordWrap(), and dw::Textblock::wrapWordInFlow().

◆ widget

◆ widgetReference


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