Tizen(Headed) Native API  6.5
Dali::Toolkit::ItemFactory Class Reference

ItemFactory is for providing actors to ItemView. More...

Public Member Functions

virtual DALI_TOOLKIT_API ~ItemFactory ()
 Forward declare future extension interface.
virtual unsigned int GetNumberOfItems ()=0
 Queries the number of items available from the factory.
virtual Actor NewItem (unsigned int itemId)=0
 Creates an Actor to represent a visible item.
virtual void ItemReleased (unsigned int itemId, Actor actor)
 Notifies the factory the actor representing the item is removed from ItemView.
virtual Extension * GetExtension ()
 Retrieves the extension for this control.

Detailed Description

ItemFactory is for providing actors to ItemView.

Each actor is identified by a unique ID, and has a linear order from 0 to GetNumberOfItems()-1.

Since:
2.4, DALi version 1.0.0

Constructor & Destructor Documentation

virtual DALI_TOOLKIT_API Dali::Toolkit::ItemFactory::~ItemFactory ( ) [virtual]

Forward declare future extension interface.

Virtual destructor.

Since:
2.4, DALi version 1.0.0

Member Function Documentation

virtual Extension* Dali::Toolkit::ItemFactory::GetExtension ( ) [virtual]

Retrieves the extension for this control.

Since:
2.4, DALi version 1.0.0
Returns:
The extension if available, NULL otherwise
virtual unsigned int Dali::Toolkit::ItemFactory::GetNumberOfItems ( ) [pure virtual]

Queries the number of items available from the factory.

The maximum available item has an ID of GetNumberOfItems() - 1.

Since:
2.4, DALi version 1.0.0
Returns:
The number of items
virtual void Dali::Toolkit::ItemFactory::ItemReleased ( unsigned int  itemId,
Actor  actor 
) [virtual]

Notifies the factory the actor representing the item is removed from ItemView.

Since:
2.4, DALi version 1.0.0
Parameters:
[in]itemIdThe ID of the released item
[in]actorThe actor that represents the released item
virtual Actor Dali::Toolkit::ItemFactory::NewItem ( unsigned int  itemId) [pure virtual]

Creates an Actor to represent a visible item.

Since:
2.4, DALi version 1.0.0
Parameters:
[in]itemIdThe ID of the newly visible item
Returns:
An actor, or an uninitialized pointer if the ID is out of range