1 #ifndef DALI_TOOLKIT_SCROLL_VIEW_SCROLL_MODE_H
2 #define DALI_TOOLKIT_SCROLL_VIEW_SCROLL_MODE_H
5 * Copyright (c) 2017 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.
27 * @addtogroup dali_toolkit_controls_scroll_view
32 * @brief Properties to use in a Property::MAP when setting a ScrollView's scroll mode.
39 * @brief Properties to use in a Property::MAP when setting a ScrollView's scroll mode.
45 * @brief Whether the content can be scrolled along the X axis or not.
46 * @details Name "xAxisScrollEnabled", type Property::BOOLEAN.
49 X_AXIS_SCROLL_ENABLED,
52 * @brief When set, causes scroll view to snap to multiples of the
53 * value of the interval while flicking along the X axis.
54 * @details Name "xAxisSnapToInterval", type Property::FLOAT
56 * @note By default, there is no snapping.
58 X_AXIS_SNAP_TO_INTERVAL,
61 * @brief When set, the scroll view is unable to scroll beyond the
62 * value of the boundary along the X axis.
63 * @details Name "xAxisScrollBoundary", type Property::FLOAT.
65 * @note By default, there is no boundary.
67 X_AXIS_SCROLL_BOUNDARY,
70 * @brief Whether the content can be scrolled along the Y axis or not.
71 * @details Name "yAxisScrollEnabled", type Property::BOOLEAN
74 Y_AXIS_SCROLL_ENABLED,
77 * @brief When set, causes scroll view to snap to multiples of the
78 * value of the interval while flicking along the Y axis.
79 * @details Name "yAxisSnapToInterval", type Property::FLOAT.
81 * @note By default, there is no snapping.
83 Y_AXIS_SNAP_TO_INTERVAL,
86 * @brief When set, the scroll view is unable to scroll beyond the
87 * value of the boundary along the Y axis.
88 * @details Name "yAxisScrollBoundary", type Property::FLOAT.
90 * @note By default, there is no boundary.
92 Y_AXIS_SCROLL_BOUNDARY
101 } // namespace Toolkit
105 #endif // DALI_TOOLKIT_SCROLL_VIEW_SCROLL_MODE_H