1 #ifndef DALI_TOOLKIT_SCROLL_VIEW_SCROLL_MODE_H
2 #define DALI_TOOLKIT_SCROLL_VIEW_SCROLL_MODE_H
5 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
25 * @addtogroup dali_toolkit_controls_scroll_view
30 * @brief Properties to use in a Property::MAP when setting a ScrollView's scroll mode.
36 * @brief Properties to use in a Property::MAP when setting a ScrollView's scroll mode.
42 * @brief Whether the content can be scrolled along the X axis or not.
43 * @details Name "xAxisScrollEnabled", type Property::BOOLEAN.
46 X_AXIS_SCROLL_ENABLED,
49 * @brief When set, causes scroll view to snap to multiples of the
50 * value of the interval while flicking along the X axis.
51 * @details Name "xAxisSnapToInterval", type Property::FLOAT
53 * @note By default, there is no snapping.
55 X_AXIS_SNAP_TO_INTERVAL,
58 * @brief When set, the scroll view is unable to scroll beyond the
59 * value of the boundary along the X axis.
60 * @details Name "xAxisScrollBoundary", type Property::FLOAT.
62 * @note By default, there is no boundary.
64 X_AXIS_SCROLL_BOUNDARY,
67 * @brief Whether the content can be scrolled along the Y axis or not.
68 * @details Name "yAxisScrollEnabled", type Property::BOOLEAN
71 Y_AXIS_SCROLL_ENABLED,
74 * @brief When set, causes scroll view to snap to multiples of the
75 * value of the interval while flicking along the Y axis.
76 * @details Name "yAxisSnapToInterval", type Property::FLOAT.
78 * @note By default, there is no snapping.
80 Y_AXIS_SNAP_TO_INTERVAL,
83 * @brief When set, the scroll view is unable to scroll beyond the
84 * value of the boundary along the Y axis.
85 * @details Name "yAxisScrollBoundary", type Property::FLOAT.
87 * @note By default, there is no boundary.
89 Y_AXIS_SCROLL_BOUNDARY
92 } // namespace ScrollMode
98 } // namespace Toolkit
102 #endif // DALI_TOOLKIT_SCROLL_VIEW_SCROLL_MODE_H