projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Purge underscored header file barriers
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
public-api
/
controls
/
scrollable
/
item-view
/
item-factory.h
diff --git
a/dali-toolkit/public-api/controls/scrollable/item-view/item-factory.h
b/dali-toolkit/public-api/controls/scrollable/item-view/item-factory.h
index
e02c62b
..
49ed6d3
100644
(file)
--- a/
dali-toolkit/public-api/controls/scrollable/item-view/item-factory.h
+++ b/
dali-toolkit/public-api/controls/scrollable/item-view/item-factory.h
@@
-1,8
+1,8
@@
-#ifndef
__DALI_TOOLKIT_ITEM_FACTORY_H__
-#define
__DALI_TOOLKIT_ITEM_FACTORY_H__
+#ifndef
DALI_TOOLKIT_ITEM_FACTORY_H
+#define
DALI_TOOLKIT_ITEM_FACTORY_H
/*
/*
- * Copyright (c) 201
5
Samsung Electronics Co., Ltd.
+ * Copyright (c) 201
9
Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-21,52
+21,81
@@
// EXTERNAL INCLUDES
#include <dali/public-api/actors/actor.h>
// EXTERNAL INCLUDES
#include <dali/public-api/actors/actor.h>
+// INTERNAL INCLUDES
+#include <dali-toolkit/public-api/dali-toolkit-common.h>
+
namespace Dali
{
namespace Toolkit
{
namespace Dali
{
namespace Toolkit
{
+/**
+ * @addtogroup dali_toolkit_controls_item_view
+ * @{
+ */
/**
* @brief ItemFactory is for providing actors to ItemView.
/**
* @brief 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.
* Each actor is identified by a unique ID, and has a linear order from 0 to GetNumberOfItems()-1.
+ * @SINCE_1_0.0
*/
class ItemFactory
{
public:
*/
class ItemFactory
{
public:
+ class Extension; ///< Forward declare future extension interface
+
/**
* @brief Virtual destructor.
/**
* @brief Virtual destructor.
+ * @SINCE_1_0.0
*/
*/
- DALI_
EXPORT_API virtual ~ItemFactory() = 0
;
+ DALI_
TOOLKIT_API virtual ~ItemFactory() {}
;
/**
/**
- * @brief Quer
y
the number of items available from the factory.
+ * @brief Quer
ies
the number of items available from the factory.
*
* The maximum available item has an ID of GetNumberOfItems() - 1.
*
* The maximum available item has an ID of GetNumberOfItems() - 1.
- * @return the number of items
+ * @SINCE_1_0.0
+ * @return The number of items
*/
virtual unsigned int GetNumberOfItems() = 0;
/**
*/
virtual unsigned int GetNumberOfItems() = 0;
/**
- * @brief Create an Actor to represent a visible item.
+ * @brief Create
s
an Actor to represent a visible item.
*
*
- * @param[in] itemId The ID of the newly visible item.
- * @return An actor, or an uninitialized pointer if the ID is out of range.
+ * @SINCE_1_0.0
+ * @param[in] itemId The ID of the newly visible item
+ * @return An actor, or an uninitialized pointer if the ID is out of range
*/
virtual Actor NewItem(unsigned int itemId) = 0;
/**
*/
virtual Actor NewItem(unsigned int itemId) = 0;
/**
- * @brief Notif
y
the factory the actor representing the item is removed from ItemView.
+ * @brief Notif
ies
the factory the actor representing the item is removed from ItemView.
*
*
- * @param[in] itemId The ID of the released item.
- * @param[in] actor The actor that represents the released item.
+ * @SINCE_1_0.0
+ * @param[in] itemId The ID of the released item
+ * @param[in] actor The actor that represents the released item
*/
virtual void ItemReleased(unsigned int itemId, Actor actor) {};
*/
virtual void ItemReleased(unsigned int itemId, Actor actor) {};
+
+ /**
+ * @brief Retrieves the extension for this control.
+ *
+ * @SINCE_1_0.0
+ * @return The extension if available, NULL otherwise
+ */
+ virtual Extension* GetExtension()
+ {
+ return NULL;
+ }
};
};
+/**
+ * @}
+ */
} // namespace Toolkit
} // namespace Dali
} // namespace Toolkit
} // namespace Dali
-#endif //
__DALI_TOOLKIT_ITEM_FACTORY_H__
+#endif //
DALI_TOOLKIT_ITEM_FACTORY_H