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

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

Public Member Functions

 ItemRange (unsigned int beginItem, unsigned int endItem)
 Creates a range of item identifiers.
 ItemRange (const ItemRange &copy)
 Copy Constructor.
ItemRangeoperator= (const ItemRange &range)
 Assignment operator.
bool Within (unsigned int itemId)
 Tests whether an item is within the range.
ItemRange Intersection (const ItemRange &second)
 Creates 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:
3.0, DALi version 1.0.0

Constructor & Destructor Documentation

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

Creates a range of item identifiers.

Since:
3.0, DALi version 1.0.0
Parameters:
[in]beginItemThe first item within the range
[in]endItemThe past-the-end item

Copy Constructor.

Since:
3.0, DALi version 1.0.0
Parameters:
[in]copyItemRange we should copy from

Member Function Documentation

Creates the intersection of two ranges.

Since:
3.0, DALi version 1.0.0
Parameters:
[in]secondThe second range
Returns:
The intersection
ItemRange& Dali::Toolkit::ItemRange::operator= ( const ItemRange range)

Assignment operator.

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

Tests whether an item is within the range.

Since:
3.0, DALi version 1.0.0
Parameters:
[in]itemIdThe item identifier
Returns:
true if the item is within the range