/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 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.
#include <dali.h>
#include <dali-toolkit/dali-toolkit.h>
-#include <dali-toolkit/devel-api/controls/scrollable/item-view/default-item-layout-property.h>
#include <dali-toolkit/internal/controls/scrollable/item-view/grid-layout.h>
-#include <dali-toolkit/devel-api/controls/scrollable/item-view/item-view-devel.h>
-
using namespace Dali;
using namespace Toolkit;
layoutArray.PushBack(gridLayoutProperty);
- view.SetProperty( DevelItemView::Property::LAYOUT, layoutArray);
+ view.SetProperty( ItemView::Property::LAYOUT, layoutArray );
Dali::Toolkit::Internal::GridLayout* gridLayout = dynamic_cast<Dali::Toolkit::Internal::GridLayout*>(view.GetLayout(0).Get());
/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 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.
#include <dali.h>
#include <dali-toolkit/dali-toolkit.h>
-#include <dali-toolkit/devel-api/controls/scrollable/item-view/default-item-layout-property.h>
-
using namespace Dali;
using namespace Toolkit;
/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 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.
#include <dali-toolkit/dali-toolkit.h>
#include <dali/integration-api/events/touch-event-integ.h>
#include <dali/integration-api/events/pan-gesture-event.h>
-#include <dali-toolkit/devel-api/controls/scrollable/item-view/default-item-layout-property.h>
-#include <dali-toolkit/devel-api/controls/scrollable/item-view/item-view-devel.h>
-
using namespace Dali;
using namespace Toolkit;
DALI_TEST_EQUALS( view.GetProperty(ItemView::Property::REFRESH_INTERVAL).Get<float>(), 11.0f, TEST_LOCATION );
// Test "layout" property
- DALI_TEST_CHECK( view.GetPropertyIndex("layout") == DevelItemView::Property::LAYOUT );
+ DALI_TEST_CHECK( view.GetPropertyIndex("layout") == ItemView::Property::LAYOUT );
Property::Map gridLayoutProperty;
gridLayoutProperty.Insert( DefaultItemLayoutProperty::TYPE, Dali::Property::Value((int)DefaultItemLayout::GRID) );
gridLayoutProperty.Insert( DefaultItemLayoutProperty::ITEM_SIZE, Dali::Property::Value(Vector3(200, 200,50)) );
layoutArray.PushBack(spiralLayoutPrperty);
layoutArray.PushBack(listLayoutPrperty);
- view.SetProperty( DevelItemView::Property::LAYOUT, layoutArray);
+ view.SetProperty( ItemView::Property::LAYOUT, layoutArray);
Property::Array getLayoutArray;
- DALI_TEST_CHECK( view.GetProperty(DevelItemView::Property::LAYOUT ).Get( getLayoutArray ) );
+ DALI_TEST_CHECK( view.GetProperty( ItemView::Property::LAYOUT ).Get( getLayoutArray ) );
//Check that the result is the same as
DALI_TEST_EQUALS( layoutArray.Count(), getLayoutArray.Count(), TEST_LOCATION );
DALI_TEST_EQUALS(number, 4, TEST_LOCATION );
}
}
- view.SetProperty( DevelItemView::Property::LAYOUT, layoutArray);
+ view.SetProperty( ItemView::Property::LAYOUT, layoutArray);
// Test "overshootEnabled" property
develapieffectsviewdir = $(develapicontrolsdir)/effects-view
develapigaussianblurviewdir = $(develapicontrolsdir)/gaussian-blur-view
develapimagnifierdir = $(develapicontrolsdir)/magnifier
-develapiitemviewdir = $(develapicontrolsdir)/scrollable/item-view
develapiscrollviewdir = $(develapicontrolsdir)/scrollable/scroll-view
develapiscrollbardir = $(develapicontrolsdir)/scroll-bar
develapinavigationviewdir = $(develapicontrolsdir)/navigation-view
develapifocusmanager_HEADERS = $(devel_api_focus_manager_header_files)
develapigaussianblurview_HEADERS = $(devel_api_gaussian_blur_view_header_files)
develapiimageloader_HEADERS = $(devel_api_image_loader_header_files)
-develapiitemview_HEADERS = $(devel_api_item_view_header_files)
develapiscrollview_HEADERS = $(devel_api_scroll_view_header_files)
develapiscrollbar_HEADERS = $(devel_api_scroll_bar_header_files)
develapimagnifier_HEADERS = $(devel_api_magnifier_header_files)
#include <dali-toolkit/public-api/controls/progress-bar/progress-bar.h>
#include <dali-toolkit/public-api/controls/scroll-bar/scroll-bar.h>
#include <dali-toolkit/public-api/controls/scrollable/item-view/default-item-layout.h>
+#include <dali-toolkit/public-api/controls/scrollable/item-view/default-item-layout-property.h>
#include <dali-toolkit/public-api/controls/scrollable/item-view/item-factory.h>
#include <dali-toolkit/public-api/controls/scrollable/item-view/item-layout.h>
#include <dali-toolkit/public-api/controls/scrollable/item-view/item-view.h>
+++ /dev/null
-#ifndef DALI_TOOLKIT_ITEM_VIEW_DEVEL_H
-#define DALI_TOOLKIT_ITEM_VIEW_DEVEL_H
-
-/*
- * Copyright (c) 2016 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.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-// INTERNAL INCLUDES
-#include <dali-toolkit/public-api/controls/scrollable/item-view/item-view.h>
-
-namespace Dali
-{
-
-namespace Toolkit
-{
-
-namespace DevelItemView
-{
-
-namespace Property
-{
-
-enum
-{
- // Event side properties
- MINIMUM_SWIPE_SPEED = Dali::Toolkit::ItemView::Property::MINIMUM_SWIPE_SPEED,
- MINIMUM_SWIPE_DISTANCE = Dali::Toolkit::ItemView::Property::MINIMUM_SWIPE_DISTANCE,
- WHEEL_SCROLL_DISTANCE_STEP = Dali::Toolkit::ItemView::Property::WHEEL_SCROLL_DISTANCE_STEP,
- SNAP_TO_ITEM_ENABLED = Dali::Toolkit::ItemView::Property::SNAP_TO_ITEM_ENABLED,
- REFRESH_INTERVAL = Dali::Toolkit::ItemView::Property::REFRESH_INTERVAL,
-
- /**
- * @brief The layout used.
- * @details Name "layout", type Property::ARRAY
- * @see SetLayout()
- */
- LAYOUT = REFRESH_INTERVAL + 1,
-
- // Animatable properties
- LAYOUT_POSITION = Dali::Toolkit::ItemView::Property::LAYOUT_POSITION,
- SCROLL_SPEED = Dali::Toolkit::ItemView::Property::SCROLL_SPEED,
- OVERSHOOT = Dali::Toolkit::ItemView::Property::OVERSHOOT,
- SCROLL_DIRECTION = Dali::Toolkit::ItemView::Property::SCROLL_DIRECTION,
- LAYOUT_ORIENTATION = Dali::Toolkit::ItemView::Property::LAYOUT_ORIENTATION,
- SCROLL_CONTENT_SIZE = Dali::Toolkit::ItemView::Property::SCROLL_CONTENT_SIZE
-};
-
-} // namespace Property
-
-} // namespace DevelItemView
-
-} // namespace Toolkit
-
-} // namespace Dali
-
-#endif // DALI_TOOLKIT_ITEM_VIEW_DEVEL_H
devel_api_effects_view_header_files = \
$(devel_api_src_dir)/controls/effects-view/effects-view.h
-devel_api_item_view_header_files = \
- $(devel_api_src_dir)/controls/scrollable/item-view/default-item-layout-property.h \
- $(devel_api_src_dir)/controls/scrollable/item-view/item-view-devel.h
-
devel_api_scroll_bar_header_files = \
$(devel_api_src_dir)/controls/scroll-bar/scroll-bar-devel.h
/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 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.
// INTERNAL INCLUDES
#include <dali-toolkit/public-api/controls/scrollable/item-view/item-view.h>
-#include <dali-toolkit/devel-api/controls/scrollable/item-view/default-item-layout-property.h>
+#include <dali-toolkit/public-api/controls/scrollable/item-view/default-item-layout-property.h>
using namespace Dali;
using namespace Dali::Toolkit;
/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 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.
// INTERNAL INCLUDES
#include <dali-toolkit/public-api/controls/scrollable/item-view/item-view.h>
-#include <dali-toolkit/devel-api/controls/scrollable/item-view/default-item-layout-property.h>
+#include <dali-toolkit/public-api/controls/scrollable/item-view/default-item-layout-property.h>
using namespace Dali;
using namespace Dali::Toolkit;
#include <dali-toolkit/public-api/controls/scroll-bar/scroll-bar.h>
#include <dali-toolkit/public-api/controls/scrollable/item-view/item-factory.h>
#include <dali-toolkit/public-api/controls/scrollable/item-view/default-item-layout.h>
-#include <dali-toolkit/devel-api/controls/scrollable/item-view/default-item-layout-property.h>
-#include <dali-toolkit/devel-api/controls/scrollable/item-view/item-view-devel.h>
+#include <dali-toolkit/public-api/controls/scrollable/item-view/default-item-layout-property.h>
#include <dali-toolkit/internal/controls/scrollable/item-view/grid-layout.h>
#include <dali-toolkit/internal/controls/scrollable/item-view/depth-layout.h>
#include <dali-toolkit/internal/controls/scrollable/item-view/spiral-layout.h>
DALI_PROPERTY_REGISTRATION( Toolkit, ItemView, "wheelScrollDistanceStep", FLOAT, WHEEL_SCROLL_DISTANCE_STEP )
DALI_PROPERTY_REGISTRATION( Toolkit, ItemView, "snapToItemEnabled", BOOLEAN, SNAP_TO_ITEM_ENABLED )
DALI_PROPERTY_REGISTRATION( Toolkit, ItemView, "refreshInterval", FLOAT, REFRESH_INTERVAL )
-DALI_DEVEL_PROPERTY_REGISTRATION( Toolkit, ItemView, "layout", ARRAY, LAYOUT )
+DALI_PROPERTY_REGISTRATION( Toolkit, ItemView, "layout", ARRAY, LAYOUT )
DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ItemView, "layoutPosition", FLOAT, LAYOUT_POSITION)
itemViewImpl.SetMinimumSwipeSpeed( value.Get<float>() );
break;
}
+
case Toolkit::ItemView::Property::MINIMUM_SWIPE_DISTANCE:
{
itemViewImpl.SetMinimumSwipeDistance( value.Get<float>() );
break;
}
+
case Toolkit::ItemView::Property::WHEEL_SCROLL_DISTANCE_STEP:
{
itemViewImpl.SetWheelScrollDistanceStep( value.Get<float>() );
break;
}
+
case Toolkit::ItemView::Property::SNAP_TO_ITEM_ENABLED:
{
itemViewImpl.SetAnchoring( value.Get<bool>() );
break;
}
+
case Toolkit::ItemView::Property::REFRESH_INTERVAL:
{
itemViewImpl.SetRefreshInterval( value.Get<float>() );
break;
}
- case Toolkit::DevelItemView::Property::LAYOUT:
+
+ case Toolkit::ItemView::Property::LAYOUT:
{
// Get a Property::Array from the property if possible.
Property::Array layoutArray;
value = itemViewImpl.GetMinimumSwipeSpeed();
break;
}
+
case Toolkit::ItemView::Property::MINIMUM_SWIPE_DISTANCE:
{
value = itemViewImpl.GetMinimumSwipeDistance();
break;
}
+
case Toolkit::ItemView::Property::WHEEL_SCROLL_DISTANCE_STEP:
{
value = itemViewImpl.GetWheelScrollDistanceStep();
break;
}
+
case Toolkit::ItemView::Property::SNAP_TO_ITEM_ENABLED:
{
value = itemViewImpl.GetAnchoring();
break;
}
+
case Toolkit::ItemView::Property::REFRESH_INTERVAL:
{
value = itemViewImpl.GetRefreshInterval();
break;
}
- case Toolkit::DevelItemView::Property::LAYOUT:
+
+ case Toolkit::ItemView::Property::LAYOUT:
{
Property::Array layouts= itemViewImpl.GetLayoutArray();
value = layouts;
break;
}
-
}
}
/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 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.
// INTERNAL INCLUDES
#include <dali-toolkit/public-api/controls/scrollable/item-view/item-view.h>
-#include <dali-toolkit/devel-api/controls/scrollable/item-view/default-item-layout-property.h>
+#include <dali-toolkit/public-api/controls/scrollable/item-view/default-item-layout-property.h>
using namespace Dali;
using namespace Dali::Toolkit;
#define DALI_TOOLKIT_DEFAULT_ITEM_LAYOUT_PROPERTY_H
/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 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.
/**
* @brief Default item layout property.
+ * @SINCE_1_2.60
*/
namespace DefaultItemLayoutProperty
{
/**
* @brief The properties of each type of item layout.
+ * @SINCE_1_2.60
*/
enum Property
{
/**
* @brief The type of the Layout.
- * @details Name "type", type(Dali::Toolkit::DefaultItemLayout::Type),Property::INTEGER
+ * @details Name "type", type Dali::Toolkit::DefaultItemLayout::Type (Property::INTEGER).
+ * @SINCE_1_2.60
* @note Mandatory.
*/
TYPE = 0,
/**
* @brief The size of each item in the Layout.
- * @details Name "itemSize",Property::VECTOR3
+ * @details Name "itemSize", type Property::VECTOR3
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, see ItemLayout::GetDefaultItemSize().
*/
/**
* @brief The internal orientation of the Layout.
- * @details Name "orientation",type(@ref Dali::Toolkit::ControlOrientation::Type),Property::INTEGER
+ * @details Name "orientation", type Dali::Toolkit::ControlOrientation::Type (Property::INTEGER).
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, the default is ControlOrientation::Up, The contents of control are in a vertical layout, from top to bottom.
*/
/**
* @brief The number of columns in the GridLayout.
- * @details Name "gridColumnNumber",Property::INTEGER.
+ * @details Name "gridColumnNumber", type Property::INTEGER.
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, the default is 4.
*/
/**
* @brief The spacing between rows in the GridLayout.
- * @details Name "gridRowSpacing",Property::FLOAT
+ * @details Name "gridRowSpacing", type Property::FLOAT.
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, the default is 20.0f.
*/
/**
* @brief The spacing between columns in the GridLayout.
- * @details Name "gridColumnSpacing",Property::FLOAT
+ * @details Name "gridColumnSpacing", type Property::FLOAT
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, the default is 20.0f.
*/
/**
* @brief The margin in the top of the GridLayout.
- * @details Name "gridTopMargin",Property::FLOAT
+ * @details Name "gridTopMargin", type Property::FLOAT
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, the default is 95.0f.
*/
/**
* @brief The margin in the bottom of the GridLayout.
- * @details Name "gridBottomMargin",Property::FLOAT
+ * @details Name "gridBottomMargin", type Property::FLOAT
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, the default is 20.0f.
*/
/**
* @brief The margin in the left and right of the GridLayout.
- * @details Name "gridSideMargin",Property::FLOAT
+ * @details Name "gridSideMargin", type Property::FLOAT.
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, the default is 20.0f.
*/
/**
* @brief The factor used to customise the scroll speed while dragging and swiping the GridLayout.
- * @details Name "gridScrollSpeedFactor",Property::FLOAT
+ * @details Name "gridScrollSpeedFactor", type Property::FLOAT.
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, the default is 0.03f.
*/
/**
* @brief The maximum swipe speed in pixels per second of GridLayout.
- * @details Name "gridMaximumSwipSpeed",Property::FLOAT
+ * @details Name "gridMaximumSwipSpeed", type Property::FLOAT.
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, the default is 100.0f.
*/
/**
* @brief The duration of the flick animation in seconds of GridLayout.
- * @details Name "gridItemFlickAnimationDuration",Property::FLOAT
+ * @details Name "gridItemFlickAnimationDuration", type Property::FLOAT.
+ * @SINCE_1_2.60
* @note Optional.
* @note This is the time taken to animate each item to its next layout position (e.g. from 1.0 to 2.0) when a flick animation is triggered by a swipe gesture.
* @note Must be greater than zero;If not supplied, the default is 0.015f.
/**
* @brief The number of columns in the DepthLayout.
- * @details Name "depthColumnNumber",Property::INTEGER
+ * @details Name "depthColumnNumber", type Property::INTEGER.
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, the default is 3.
*/
/**
* @brief The number of rows in the DepthLayout.
- * @details Name "depthRowNumber",Property::INTEGER
+ * @details Name "depthRowNumber", type Property::INTEGER.
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, the default is 26.
*/
/**
* @brief The spacing between rows in the DepthLayout.
- * @details Name "depthRowSpacing",Property::FLOAT
+ * @details Name "depthRowSpacing", type Property::FLOAT.
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, the default is 55.0f.
*/
/**
* @brief The factor used to customise the scroll speed while dragging and swiping the DepthLayout.
- * @details Name "depthScrollSpeedFactor",Property::FLOAT
+ * @details Name "depthScrollSpeedFactor", type Property::FLOAT.
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, the default is 0.02f.
*/
/**
* @brief The maximumSwipSpeed of the DepthLayout.
- * @details Name "depthMaximumSwipSpeed",Property::FLOAT
+ * @details Name "depthMaximumSwipSpeed", type Property::FLOAT.
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, the default is 50.0f.
*/
/**
* @brief The duration of the flick animation in seconds of DepthLayout.
- * @details Name "depthItemFlickAnimationDuration",Property::FLOAT
+ * @details Name "depthItemFlickAnimationDuration", type Property::FLOAT.
+ * @SINCE_1_2.60
* @note Optional.
* @note This is the time taken to animate each item to its next layout position (e.g. from 1.0 to 2.0) when a flick animation is triggered by a swipe gesture.
* @note Must be greater than zero; If not supplied, the default is 0.03f.
/**
* @brief The tilt angle of DepthLayout.
* @details Name "depthTiltAngle",Property::FLOAT
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, the default is (Math::PI)*0.15f.
* @note This is clamped between -45 & 45 degrees.
/**
* @brief The tilt angle of the individual items in the DepthLayout.
- * @details Name "depthItemTiltAngle",Property::FLOAT
+ * @details Name "depthItemTiltAngle", type Property::FLOAT.
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, the default is -(Math::PI)*0.025f.
*/
/**
* @brief The spacing angle between items in the SpiralLayout.
- * @details Name "spiralItemSpacing",Property::FLOAT
+ * @details Name "spiralItemSpacing", type Property::FLOAT.
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, the default is 9.5f.
*/
/**
* @brief The factor used to customise the scroll speed while dragging and swiping the SpiralLayout.
- * @details Name "spiralScrollSpeedFactor",Property::FLOAT
+ * @details Name "spiralScrollSpeedFactor", type Property::FLOAT.
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, the default is 0.01f.
*/
/**
* @brief The maximum swipe speed in pixels per second of the SpiralLayout.
- * @details Name "spiralMaximumSwipSpeed",Property::FLOAT
+ * @details Name "spiralMaximumSwipSpeed", type Property::FLOAT.
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, the default is 30.0f.
*/
/**
* @brief The duration of the flick animation in seconds of the SpiralLayout.
- * @details Name "spiralItemFlickAnimationDuration",Property::FLOAT
+ * @details Name "spiralItemFlickAnimationDuration", type Property::FLOAT.
+ * @SINCE_1_2.60
* @note Optional.
* @note This is the time taken to animate each item to its next layout position (e.g. from 1.0 to 2.0) when a flick animation is triggered by a swipe gesture.
* @note Must be greater than zero; If not supplied, the default is 0.1f.
/**
* @brief The vertical distance for one revolution of the SpiralLayout.
- * @details Name "spiralRevolutionDistance",Property::FLOAT
+ * @details Name "spiralRevolutionDistance", type Property::FLOAT.
+ * @SINCE_1_2.60
* @note Optional.
* @note If not supplied, the default is 190.0f.
*/
/**
* @brief The alignment of the top-item, when at the beginning of the SpiralLayout.
- * @details Name "spiralTopItemAlignment",Property::FLOAT
+ * @details Name "spiralTopItemAlignment", type Property::FLOAT.
+ * @SINCE_1_2.60
* @note Optional.
* @note When at the beginning of the spiral (with a first-item layout-position of zero).A value of 0 indicates that the top-item is centered in the middle of the layout.
* A value of -0.5 or 0.5 indicates that the top-item is centred at the top or bottom of the layout respectively.
/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 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.
// INTERNAL INCLUDES
#include <dali-toolkit/public-api/controls/scrollable/item-view/item-view.h>
-#include <dali-toolkit/devel-api/controls/scrollable/item-view/default-item-layout-property.h>
+#include <dali-toolkit/public-api/controls/scrollable/item-view/default-item-layout-property.h>
namespace Dali
{
#define __DALI_TOOLKIT_ITEM_VIEW_H__
/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 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.
*/
enum
{
- // Event side properties
- MINIMUM_SWIPE_SPEED = PROPERTY_START_INDEX, ///< Property, name "minimumSwipeSpeed", @see SetMinimumSwipeSpeed(), type float, @SINCE_1_1.18
- MINIMUM_SWIPE_DISTANCE, ///< Property, name "minimumSwipeDistance", @see SetMinimumSwipeDistance(), type float, @SINCE_1_1.18
- WHEEL_SCROLL_DISTANCE_STEP, ///< Property, name "wheelScrollDistanceStep", @see SetWheelScrollDistanceStep(), type float, @SINCE_1_1.18
- SNAP_TO_ITEM_ENABLED, ///< Property, name "snapToItemEnabled", @see SetAnchoring(), type bool, @SINCE_1_1.18
- REFRESH_INTERVAL, ///< Property, name "refreshInterval", @see SetRefreshInterval(), type float, @SINCE_1_1.18
-
- // Animatable properties
- LAYOUT_POSITION = ANIMATABLE_PROPERTY_START_INDEX, ///< Property, name "layoutPosition", type float @SINCE_1_0.0
- SCROLL_SPEED, ///< Property, name "scrollSpeed", type float @SINCE_1_0.0
- OVERSHOOT, ///< Property, name "overshoot", type float @SINCE_1_0.0
- SCROLL_DIRECTION, ///< Property, name "scrollDirection", type Vector2 @SINCE_1_0.0
- LAYOUT_ORIENTATION, ///< Property, name "layoutOrientation", type integer @SINCE_1_0.0
- SCROLL_CONTENT_SIZE ///< Property, name "scrollContentSize", type float @SINCE_1_0.0
+ ///////////////////////////////////////////////////////////////////////////////
+ // Event side (non-animatable) properties
+ ///////////////////////////////////////////////////////////////////////////////
+
+ /**
+ * @brief The minimum swipe speed in pixels per second.
+ * @details Name "minimumSwipeSpeed", type Property::FLOAT.
+ * @SINCE_1_1.18
+ * @see SetMinimumSwipeSpeed()
+ */
+ MINIMUM_SWIPE_SPEED = PROPERTY_START_INDEX,
+
+ /**
+ * @brief The minimum swipe distance in actor coordinates.
+ * @details Name "minimumSwipeDistance", type Property::FLOAT.
+ * @SINCE_1_1.18
+ * @see SetMinimumSwipeDistance()
+ */
+ MINIMUM_SWIPE_DISTANCE,
+
+ /**
+ * @brief The step of scroll distance in actor coordinates for each wheel event received.
+ * @details Name "wheelScrollDistanceStep", type Property::FLOAT.
+ * @SINCE_1_1.18
+ * @see SetWheelScrollDistanceStep()
+ */
+ WHEEL_SCROLL_DISTANCE_STEP,
+
+ /**
+ * @brief Whether the animation for the layout to scroll to its anchor position after dragging or swiping is enabled.
+ * @details Name "snapToItemEnabled", type Property::BOOLEAN.
+ * @SINCE_1_1.18
+ * @see SetAnchoring()
+ */
+ SNAP_TO_ITEM_ENABLED,
+
+ /**
+ * @brief The interval between refreshes.
+ * @details Name "refreshInterval", type Property::FLOAT.
+ * @SINCE_1_1.18
+ * @see SetRefreshInterval()
+ */
+ REFRESH_INTERVAL,
+
+ /**
+ * @brief The layout used.
+ * @details Name "layout", type Property::ARRAY.
+ * @SINCE_1_2.60
+ * @see Dali::Toolkit::DefaultItemLayoutProperty
+ */
+ LAYOUT,
+
+ ///////////////////////////////////////////////////////////////////////////////
+ // Animatable Properties
+ ///////////////////////////////////////////////////////////////////////////////
+
+ /**
+ * @brief The current logical position within the layout.
+ * @details Name "layoutPosition", type Property::FLOAT.
+ * @SINCE_1_0.0
+ */
+ LAYOUT_POSITION = ANIMATABLE_PROPERTY_START_INDEX,
+
+ /**
+ * @brief The scrolling speed when playing the flick animation.
+ * @details Name "scrollSpeed", type Property::FLOAT.
+ * @SINCE_1_0.0
+ */
+ SCROLL_SPEED,
+
+ /**
+ * @brief The amount that we can scroll beyond the boundary.
+ * @details Name "overshoot", type Property::FLOAT.
+ * @SINCE_1_0.0
+ */
+ OVERSHOOT,
+
+ /**
+ * @brief The current scrolling direction.
+ * @details Name "scrollDirection", type Property::FLOAT.
+ * @SINCE_1_0.0
+ */
+ SCROLL_DIRECTION,
+
+ /**
+ * @brief The current orientation of the layout.
+ * @details Name "layoutOrientation", type Property::INTEGER.
+ * @SINCE_1_0.0
+ */
+ LAYOUT_ORIENTATION,
+
+ /**
+ * @brief The size of the content.
+ * @details Name "scrollContentSize", type Property::FLOAT.
+ * @SINCE_1_0.0
+ */
+ SCROLL_CONTENT_SIZE,
};
};
public_api_item_view_header_files = \
$(public_api_src_dir)/controls/scrollable/item-view/default-item-layout.h \
+ $(public_api_src_dir)/controls/scrollable/item-view/default-item-layout-property.h \
$(public_api_src_dir)/controls/scrollable/item-view/item-factory.h \
$(public_api_src_dir)/controls/scrollable/item-view/item-layout.h \
$(public_api_src_dir)/controls/scrollable/item-view/item-view-declarations.h \