X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Fscrollable%2Fscroll-view%2Fscroll-view-constraints.h;h=3116169b393615362930a5c92d8709580104ff28;hb=969855f52a7c30ea6309d41b416100b47161bc66;hp=ef93f54edfbd9d4da7ab48bbf92b5916257cb0db;hpb=e2eda444afbe82e9591fe198eef339227f90a616;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-constraints.h b/dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-constraints.h index ef93f54..3116169 100644 --- a/dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-constraints.h +++ b/dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-constraints.h @@ -1,27 +1,27 @@ #ifndef __DALI_TOOLKIT_SCROLL_VIEW_CONSTRAINTS_H__ #define __DALI_TOOLKIT_SCROLL_VIEW_CONSTRAINTS_H__ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.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://floralicense.org/license/ -// -// 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. -// +/* + * Copyright (c) 2015 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. + * + */ // EXTERNAL INCLUDES +#include -// INTERNAL INCLUDES - -namespace Dali DALI_IMPORT_API +namespace Dali { struct Vector2; @@ -31,6 +31,10 @@ class PropertyInput; namespace Toolkit { +/** + * @addtogroup dali_toolkit_controls_scroll_view + * @{ + */ // Constraints //////////////////////////////////////////////////////////////////////////////////// @@ -39,43 +43,28 @@ namespace Toolkit */ /** - * Move Actor constraint. + * @brief Move Actor constraint. * * Moves an Actor in accordance to scroll position. + * @param[in] current Current position + * @param[in] inputs The position input that Actor will move + * @SINCE_1_0.0 */ -Vector3 MoveActorConstraint(const Vector3& current, - const PropertyInput& scrollPositionProperty); +DALI_IMPORT_API void MoveActorConstraint( Vector3& current, const PropertyInputContainer& inputs ); /** - * Move-Scaled Actor constraint. + * @brief Wrap Actor constraint. * - * Moves an Actor in accordance to scroll position (and scroll scale). - */ -Vector3 MoveScaledActorConstraint(const Vector3& current, - const PropertyInput& scrollPositionProperty, - const PropertyInput& scrollScaleProperty); - -/** - * Scale Actor constraint. - * - * Scales an Actor in accordance to scroll scale. + * Wraps an Actors position in accordance to min/max bounds of domain. + * @param[in] position Position to be wrapped + * @param[in] inputs The input that Actor's position will be wrapped + * @SINCE_1_0.0 */ -Vector3 ScaleActorConstraint(const Vector3& current, - const PropertyInput& scrollScaleProperty); +DALI_IMPORT_API void WrapActorConstraint( Vector3& position, const PropertyInputContainer& inputs ); /** - * Wrap Actor constraint. - * - * Wraps an Actors position in accordance to min/max bounds of domain. + * @} */ -Vector3 WrapActorConstraint(const Vector3& current, - const PropertyInput& actorScaleProperty, - const PropertyInput& actorAnchorPointProperty, - const PropertyInput& actorSizeProperty, - const PropertyInput& scrollPositionMin, - const PropertyInput& scrollPositionMax, - const PropertyInput& scrollWrap); - } // namespace Toolkit } // namespace Dali