Tizen Native API
6.0
|
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 Constructor. | |
ItemRange & | operator= (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] beginItem The first item within the range [in] endItem The past-the-end item
Dali::Toolkit::ItemRange::ItemRange | ( | const ItemRange & | copy | ) |
Member Function Documentation
ItemRange Dali::Toolkit::ItemRange::Intersection | ( | const ItemRange & | second | ) |
Creates the intersection of two ranges.
- Since:
- 3.0, DALi version 1.0.0
- Parameters:
-
[in] second The second range
- Returns:
- The intersection
Assignment operator.
- Since:
- 3.0, DALi version 1.0.0
- Parameters:
-
[in] range The 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] itemId The item identifier
- Returns:
- true if the item is within the range