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
Fix minor coverity issues
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
controls
/
scrollable
/
item-view
/
depth-layout.h
diff --git
a/dali-toolkit/internal/controls/scrollable/item-view/depth-layout.h
b/dali-toolkit/internal/controls/scrollable/item-view/depth-layout.h
index
6ce8c73
..
0f9f263
100644
(file)
--- a/
dali-toolkit/internal/controls/scrollable/item-view/depth-layout.h
+++ b/
dali-toolkit/internal/controls/scrollable/item-view/depth-layout.h
@@
-1,8
+1,8
@@
-#ifndef
__DALI_TOOLKIT_DEPTH_LAYOUT_H__
-#define
__DALI_TOOLKIT_DEPTH_LAYOUT_H__
+#ifndef
DALI_TOOLKIT_DEPTH_LAYOUT_H
+#define
DALI_TOOLKIT_DEPTH_LAYOUT_H
/*
/*
- * Copyright (c) 20
15
Samsung Electronics Co., Ltd.
+ * Copyright (c) 20
21
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.
@@
-23,13
+23,10
@@
namespace Dali
{
namespace Dali
{
-
namespace Toolkit
{
namespace Toolkit
{
-
namespace Internal
{
namespace Internal
{
-
class DepthLayout;
typedef IntrusivePtr<DepthLayout> DepthLayoutPtr;
class DepthLayout;
typedef IntrusivePtr<DepthLayout> DepthLayoutPtr;
@@
-40,7
+37,6
@@
typedef IntrusivePtr<DepthLayout> DepthLayoutPtr;
class DepthLayout : public ItemLayout
{
public:
class DepthLayout : public ItemLayout
{
public:
-
/**
* Create a new spiral layout
*/
/**
* Create a new spiral layout
*/
@@
-52,6
+48,12
@@
public:
virtual ~DepthLayout();
/**
virtual ~DepthLayout();
/**
+ * Apply depth layout Properties.
+ * @param[in] properties The properties of the layout.
+ */
+ void SetDepthLayoutProperties(const Property::Map& properties);
+
+ /**
* Set the number of columns in the layout.
* @param[in] columns The number of columns.
*/
* Set the number of columns in the layout.
* @param[in] columns The number of columns.
*/
@@
-136,92
+138,88
@@
public:
/**
* @copydoc ItemLayout::GetScrollSpeedFactor()
*/
/**
* @copydoc ItemLayout::GetScrollSpeedFactor()
*/
-
virtual float GetScrollSpeedFactor() const
;
+
float GetScrollSpeedFactor() const override
;
/**
* @copydoc ItemLayout::GetMaximumSwipeSpeed()
*/
/**
* @copydoc ItemLayout::GetMaximumSwipeSpeed()
*/
-
virtual float GetMaximumSwipeSpeed() const
;
+
float GetMaximumSwipeSpeed() const override
;
/**
* @copydoc ItemLayout::GetItemFlickAnimationDuration()
*/
/**
* @copydoc ItemLayout::GetItemFlickAnimationDuration()
*/
-
virtual float GetItemFlickAnimationDuration() const
;
+
float GetItemFlickAnimationDuration() const override
;
/**
* @copydoc ItemLayout::GetClosestOnScreenLayoutPosition()
*/
/**
* @copydoc ItemLayout::GetClosestOnScreenLayoutPosition()
*/
-
virtual float GetClosestOnScreenLayoutPosition(int itemID, float currentLayoutPosition, const Vector3& layoutSize)
;
+
float GetClosestOnScreenLayoutPosition(int itemID, float currentLayoutPosition, const Vector3& layoutSize) override
;
/**
* @copydoc ItemLayout::GetNextFocusItemID()
*/
/**
* @copydoc ItemLayout::GetNextFocusItemID()
*/
-
virtual int GetNextFocusItemID(int itemID, int maxItems, Dali::Toolkit::Control::KeyboardFocus::Direction direction, bool loopEnabled)
;
+
int GetNextFocusItemID(int itemID, int maxItems, Dali::Toolkit::Control::KeyboardFocus::Direction direction, bool loopEnabled) override
;
private:
private:
-
/**
* @copydoc ItemLayout::GetMinimumLayoutPosition()
*/
/**
* @copydoc ItemLayout::GetMinimumLayoutPosition()
*/
-
virtual float GetMinimumLayoutPosition(unsigned int numberOfItems, Vector3 layoutSize) const
;
+
float GetMinimumLayoutPosition(unsigned int numberOfItems, Vector3 layoutSize) const override
;
/**
* @copydoc ItemLayout::GetClosestAnchorPosition()
*/
/**
* @copydoc ItemLayout::GetClosestAnchorPosition()
*/
-
virtual float GetClosestAnchorPosition(float layoutPosition) const
;
+
float GetClosestAnchorPosition(float layoutPosition) const override
;
/**
* @copydoc ItemLayout::GetItemScrollToPosition()
*/
/**
* @copydoc ItemLayout::GetItemScrollToPosition()
*/
-
virtual float GetItemScrollToPosition(unsigned int itemId) const
;
+
float GetItemScrollToPosition(unsigned int itemId) const override
;
/**
* @copydoc ItemLayout::GetItemsWithinArea()
*/
/**
* @copydoc ItemLayout::GetItemsWithinArea()
*/
-
virtual ItemRange GetItemsWithinArea(float firstItemPosition, Vector3 layoutSize) const
;
+
ItemRange GetItemsWithinArea(float firstItemPosition, Vector3 layoutSize) const override
;
/**
* @copydoc ItemLayout::GetReserveItemCount()
*/
/**
* @copydoc ItemLayout::GetReserveItemCount()
*/
-
virtual unsigned int GetReserveItemCount(Vector3 layoutSize) const
;
+
unsigned int GetReserveItemCount(Vector3 layoutSize) const override
;
/**
* @copydoc ItemLayout::GetDefaultItemSize()
*/
/**
* @copydoc ItemLayout::GetDefaultItemSize()
*/
- v
irtual void GetDefaultItemSize( unsigned int itemId, const Vector3& layoutSize, Vector3& itemSize ) const
;
+ v
oid GetDefaultItemSize(unsigned int itemId, const Vector3& layoutSize, Vector3& itemSize) const override
;
/**
* @copydoc ItemLayout::GetScrollDirection()
*/
/**
* @copydoc ItemLayout::GetScrollDirection()
*/
-
virtual Degree GetScrollDirection() const
;
+
Degree GetScrollDirection() const override
;
/**
* @copydoc ItemLayout::ApplyConstraints()
*/
/**
* @copydoc ItemLayout::ApplyConstraints()
*/
- v
irtual void ApplyConstraints( Actor& actor, const int itemId, const Vector3& layoutSize, const Actor& itemViewActor )
;
+ v
oid ApplyConstraints(Actor& actor, const int itemId, const Vector3& layoutSize, const Actor& itemViewActor) override
;
/**
* @copydoc ItemLayout::GetItemPosition()
*/
/**
* @copydoc ItemLayout::GetItemPosition()
*/
-
virtual Vector3 GetItemPosition( int itemID, float currentLayoutPosition, const Vector3& layoutSize ) const
;
+
Vector3 GetItemPosition(int itemID, float currentLayoutPosition, const Vector3& layoutSize) const override
;
protected:
protected:
-
/**
* Protected constructor; see also DepthLayout::New()
*/
DepthLayout();
private:
/**
* Protected constructor; see also DepthLayout::New()
*/
DepthLayout();
private:
-
// Undefined
// Undefined
- DepthLayout(
const DepthLayout& depthLayout
);
+ DepthLayout(
const DepthLayout& depthLayout
);
// Undefined
// Undefined
- DepthLayout& operator=(
const DepthLayout& depthLayout
);
+ DepthLayout& operator=(
const DepthLayout& depthLayout
);
private:
private:
-
struct Impl;
Impl* mImpl;
};
struct Impl;
Impl* mImpl;
};
@@
-232,4
+230,4
@@
private:
} // namespace Dali
} // namespace Dali
-#endif //
__DALI_TOOLKIT_DEPTH_LAYOUT_H__
+#endif //
DALI_TOOLKIT_DEPTH_LAYOUT_H