Dali 3D User Interface Engine
List of all members | Public Member Functions
anonymous_namespace{utc-Dali-ItemView.cpp}::TestItemFactory Class Reference
Inheritance diagram for anonymous_namespace{utc-Dali-ItemView.cpp}::TestItemFactory:
Inheritance graph
[legend]
Collaboration diagram for anonymous_namespace{utc-Dali-ItemView.cpp}::TestItemFactory:
Collaboration graph
[legend]

Public Member Functions

 TestItemFactory ()
 Constructor. More...
 
virtual unsigned int GetNumberOfItems ()
 Query the number of items available from the factory. More...
 
virtual Actor NewItem (unsigned int itemId)
 Create an Actor to represent a visible item. More...
 
- Public Member Functions inherited from Dali::Toolkit::ItemFactory
virtual DALI_EXPORT_API ~ItemFactory ()
 Forward declare future extension interface. More...
 
virtual void ItemReleased (unsigned int itemId, Actor actor)
 Notify the factory the actor representing the item is removed from ItemView. More...
 
virtual Extension * GetExtension ()
 Retrieve the extension for this control. More...
 

Detailed Description

Definition at line 86 of file utc-Dali-ItemView.cpp.

Constructor & Destructor Documentation

anonymous_namespace{utc-Dali-ItemView.cpp}::TestItemFactory::TestItemFactory ( )
inline

Constructor.

Parameters
applicationclass, stored as reference

Definition at line 94 of file utc-Dali-ItemView.cpp.

Member Function Documentation

virtual unsigned int anonymous_namespace{utc-Dali-ItemView.cpp}::TestItemFactory::GetNumberOfItems ( )
inlinevirtual

Query the number of items available from the factory.

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

Implements Dali::Toolkit::ItemFactory.

Definition at line 104 of file utc-Dali-ItemView.cpp.

References anonymous_namespace{utc-Dali-ItemLayout.cpp}::TOTAL_ITEM_NUMBER.

virtual Actor anonymous_namespace{utc-Dali-ItemView.cpp}::TestItemFactory::NewItem ( unsigned int  itemId)
inlinevirtual

Create an Actor to represent a visible item.

Parameters
itemId
Returns
the created actor.

Implements Dali::Toolkit::ItemFactory.

Definition at line 114 of file utc-Dali-ItemView.cpp.

References Dali::ResourceImage::New(), and Dali::ImageActor::New().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Dali Docs Home
Read more about Dali