Dillo v3.1.1-46-g8a360e32
|
Public Member Functions | |
TableIterator (Table *table, core::Content::Type mask, bool atEnd) | |
lout::object::Object * | clone () |
Return an exact copy of the object. | |
void | highlight (int start, int end, core::HighlightLayer layer) |
Extend highlighted region to contain part of the current content. | |
void | unhighlight (int direction, core::HighlightLayer layer) |
Shrink highlighted region to no longer contain the current content. | |
void | getAllocation (int start, int end, core::Allocation *allocation) |
Return the shape, which a part of the item, the iterator points on, allocates. | |
![]() | |
OOFAwareWidgetIterator (OOFAwareWidget *widget, core::Content::Type mask, bool atEnd, int numContentsInFlow) | |
void | intoStringBuffer (lout::misc::StringBuffer *sb) |
Store a textual representation of the object in a misc::StringBuffer. | |
int | compareTo (lout::object::Comparable *other) |
Compare two objects, this and other. | |
bool | next () |
Move iterator forward and store content it. | |
bool | prev () |
Move iterator backward and store content it. | |
![]() | |
bool | equals (Object *other) |
Returns, whether two objects are equal. | |
Widget * | getWidget () |
Content * | getContent () |
Content::Type | getMask () |
virtual void | unref () |
Delete the iterator. | |
Iterator * | cloneIterator () |
![]() | |
virtual | ~Object () |
The destructor is defined as virtual (but not abstract), so that destruction of Object's works properly. | |
virtual int | hashValue () |
Return a hash value for the object. | |
const char * | toString () |
Use object::Object::intoStringBuffer to return a textual representation of the object. | |
virtual size_t | sizeOf () |
Return the number of bytes, this object totally uses. | |
Protected Member Functions | |
int | numContentsInFlow () |
void | getContentInFlow (int index, core::Content *content) |
![]() | |
void | setValues (int sectionIndex, int index) |
void | cloneValues (OOFAwareWidgetIterator *other) |
bool | inFlow () |
int | getInFlowIndex () |
void | highlightOOF (int start, int end, core::HighlightLayer layer) |
void | unhighlightOOF (int direction, core::HighlightLayer layer) |
void | getAllocationOOF (int start, int end, core::Allocation *allocation) |
![]() | |
Iterator (Widget *widget, Content::Type mask, bool atEnd) | |
Iterator (Iterator &it) | |
~Iterator () | |
Additional Inherited Members | |
![]() | |
static void | scrollTo (Iterator *it1, Iterator *it2, int start, int end, HPosition hpos, VPosition vpos) |
Scrolls the viewport, so that the region between it1 and it2 is seen, according to hpos and vpos. | |
![]() | |
Content | content |
dw::Table::TableIterator::TableIterator | ( | Table * | table, |
core::Content::Type | mask, | ||
bool | atEnd | ||
) |
Definition at line 29 of file table_iterator.cc.
|
virtual |
Return an exact copy of the object.
Reimplemented from lout::object::Object.
Definition at line 35 of file table_iterator.cc.
|
virtual |
Return the shape, which a part of the item, the iterator points on, allocates.
The parameters start and end have the same meaning as in DwIterator::highlight().
Implements dw::core::Iterator.
Definition at line 62 of file table_iterator.cc.
References dw::core::Widget::allocation.
|
protectedvirtual |
Implements dw::oof::OOFAwareWidget::OOFAwareWidgetIterator.
Definition at line 76 of file table_iterator.cc.
References dw::Table::Child::CELL, dw::Table::children, dw::core::Content::INVALID, dw::core::Content::type, dw::core::Content::widget, and dw::core::Content::WIDGET_IN_FLOW.
|
virtual |
Extend highlighted region to contain part of the current content.
For text, start and end define the characters, otherwise, the shape is defined as [0, 1], i.e. for highlighting a whole dw::core::Content, pass 0 and >= 1. To unhighlight see also dw::core::Iterator::unhighlight.
todo Needs this an implementation?
Implements dw::core::Iterator.
Definition at line 44 of file table_iterator.cc.
|
protectedvirtual |
Implements dw::oof::OOFAwareWidget::OOFAwareWidgetIterator.
Definition at line 71 of file table_iterator.cc.
|
virtual |
Shrink highlighted region to no longer contain the current content.
The direction parameter indicates whether the highlighted region should be reduced from the start (direction > 0) or from the end (direction < 0). If direction is 0 all content is unhighlighted.
Implements dw::core::Iterator.
Definition at line 53 of file table_iterator.cc.