dillo  3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java).
  Fossies Dox: dillo-3.0.5.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

dw::Table::TableIterator Class Reference
Inheritance diagram for dw::Table::TableIterator:
[legend]
Collaboration diagram for dw::Table::TableIterator:
[legend]

Public Member Functions

 TableIterator (Table *table, core::Content::Type mask, bool atEnd)
 
 TableIterator (Table *table, core::Content::Type mask, int index)
 
lout::object::Objectclone ()
 Return an exact copy of the object. More...
 
int compareTo (lout::object::Comparable *other)
 Compare two objects c1 and c2. More...
 
bool next ()
 Move iterator forward and store content it. More...
 
bool prev ()
 Move iterator backward and store content it. More...
 
void highlight (int start, int end, core::HighlightLayer layer)
 Extend highlighted region to contain part of the current content. More...
 
void unhighlight (int direction, core::HighlightLayer layer)
 Shrink highlighted region to no longer contain the current content. More...
 
void getAllocation (int start, int end, core::Allocation *allocation)
 Return the shape, which a part of the item, the iterator points on, allocates. More...
 
- Public Member Functions inherited from dw::core::Iterator
bool equals (Object *other)
 Returns, whether two objects are equal. More...
 
WidgetgetWidget ()
 
ContentgetContent ()
 
Content::Type getMask ()
 
virtual void unref ()
 Delete the iterator. More...
 
IteratorcloneIterator ()
 
- Public Member Functions inherited from lout::object::Object
virtual ~Object ()
 The destructor is defined as virtual (but not abstract), so that destruction of Object's works properly. More...
 
virtual int hashValue ()
 Return a hash value for the object. More...
 
virtual void intoStringBuffer (misc::StringBuffer *sb)
 Store a textual representation of the object in a misc::StringBuffer. More...
 
const char * toString ()
 Use object::Object::intoStringBuffer to return a textual representation of the object. More...
 
virtual size_t sizeOf ()
 Return the number of bytes, this object totally uses. More...
 

Private Attributes

int index
 

Additional Inherited Members

- Static Public Member Functions inherited from dw::core::Iterator
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. More...
 
- Static Public Member Functions inherited from lout::object::Comparable
static int compareFun (const void *p1, const void *p2)
 This static method may be used as compare function for qsort(3) and bsearch(3), for an array of Object* (Object*[] or Object**). More...
 
- Protected Member Functions inherited from dw::core::Iterator
 Iterator (Widget *widget, Content::Type mask, bool atEnd)
 
 Iterator (Iterator &it)
 
 ~Iterator ()
 
- Protected Attributes inherited from dw::core::Iterator
Content content
 

Detailed Description

Definition at line 337 of file table.hh.

Constructor & Destructor Documentation

◆ TableIterator() [1/2]

dw::Table::TableIterator::TableIterator ( Table table,
core::Content::Type  mask,
bool  atEnd 
)

◆ TableIterator() [2/2]

dw::Table::TableIterator::TableIterator ( Table table,
core::Content::Type  mask,
int  index 
)

Member Function Documentation

◆ clone()

object::Object * dw::Table::TableIterator::clone ( )
virtual

Return an exact copy of the object.

Reimplemented from lout::object::Object.

Definition at line 1138 of file table.cc.

References dw::core::Iterator::getMask(), dw::core::Iterator::getWidget(), index, and TableIterator().

◆ compareTo()

int dw::Table::TableIterator::compareTo ( lout::object::Comparable other)
virtual

Compare two objects c1 and c2.

Return a value < 0, when c1 is less than c2, a value > 0, when c1 is greater than c2, or 0, when c1 and c2 are equal.

If c1.equals(c2) (as defined in Object), c1.compareTo(c2) must be 0, but, unlike you may expect, the reversed is not necessarily true. This method returns 0, if, according to the rules for sorting, there is no difference, but there may still be differences (not relevant for sorting), which "equals" will care about.

Implements lout::object::Comparable.

Definition at line 1143 of file table.cc.

◆ getAllocation()

void dw::Table::TableIterator::getAllocation ( int  start,
int  end,
core::Allocation allocation 
)
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().

Bug:
Not implemented.

Implements dw::core::Iterator.

Definition at line 1213 of file table.cc.

◆ highlight()

void dw::Table::TableIterator::highlight ( int  start,
int  end,
core::HighlightLayer  layer 
)
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 1202 of file table.cc.

◆ next()

bool dw::Table::TableIterator::next ( )
virtual

Move iterator forward and store content it.

Returns true on success.

Implements dw::core::Iterator.

Definition at line 1148 of file table.cc.

References dw::Table::Child::CELL, dw::Table::children, dw::core::Content::END, and dw::core::Content::WIDGET.

◆ prev()

bool dw::Table::TableIterator::prev ( )
virtual

Move iterator backward and store content it.

Returns true on success.

Implements dw::core::Iterator.

Definition at line 1175 of file table.cc.

References dw::Table::Child::CELL, dw::Table::children, dw::core::Content::START, and dw::core::Content::WIDGET.

◆ unhighlight()

void dw::Table::TableIterator::unhighlight ( int  direction,
core::HighlightLayer  layer 
)
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 1208 of file table.cc.

Member Data Documentation

◆ index

int dw::Table::TableIterator::index
private

Definition at line 340 of file table.hh.

Referenced by clone(), and TableIterator().


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