Tizen Native API
Dali::Toolkit::ItemRange Struct Reference

A support class for managing ranges of items. More...

Public Member Functions

 ItemRange (unsigned int beginItem, unsigned int endItem)
 Create a range of item identifiers.
 ItemRange (const ItemRange &copy)
 Copy Constructor.
ItemRangeoperator= (const ItemRange &range)
 Assignment operator.
bool Within (unsigned int itemId)
 Test whether an item is within the range.
ItemRange Intersection (const ItemRange &second)
 Create the intersection of two ranges.

Public Attributes

unsigned int begin
 The start of the range.
unsigned int end
 The end of the range.

Detailed Description

A support class for managing ranges of items.

Since :
2.4

Constructor & Destructor Documentation

Dali::Toolkit::ItemRange::ItemRange ( unsigned int  beginItem,
unsigned int  endItem 
)

Create a range of item identifiers.

Since :
2.4
Parameters:
[in]beginItemThe first item within the range
[in]endItemThe past-the-end item

Copy Constructor.

Since :
2.4
Parameters:
[in]copyItemRange we should copy from.

Member Function Documentation

Create the intersection of two ranges.

Since :
2.4
Parameters:
[in]secondThe second range
Returns:
The intersection
ItemRange& Dali::Toolkit::ItemRange::operator= ( const ItemRange range)

Assignment operator.

Since :
2.4
Parameters:
[in]rangeThe Range to assign from
Returns:
The updated range
bool Dali::Toolkit::ItemRange::Within ( unsigned int  itemId)

Test whether an item is within the range.

Since :
2.4
Parameters:
[in]itemIdThe item identifier
Returns:
True if the item is within the range.