X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=base%2Fdali-toolkit%2Finternal%2Fcontrols%2Fscrollable%2Fscrollable-impl.h;h=43959fd404d8d5422853c31ea4cb7590634b0716;hb=refs%2Ftags%2Fdali_1.0.14;hp=e5af516ce5b122a3287789d9b4f22293d093e678;hpb=cf229fa2e4f00e5fe727eab2d215868bf79ac524;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/base/dali-toolkit/internal/controls/scrollable/scrollable-impl.h b/base/dali-toolkit/internal/controls/scrollable/scrollable-impl.h index e5af516..43959fd 100644 --- a/base/dali-toolkit/internal/controls/scrollable/scrollable-impl.h +++ b/base/dali-toolkit/internal/controls/scrollable/scrollable-impl.h @@ -1,25 +1,28 @@ #ifndef __DALI_TOOLKIT_INTERNAL_SCROLLABLE_H__ #define __DALI_TOOLKIT_INTERNAL_SCROLLABLE_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) 2014 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 +// EXTERNAL INCLUDES #include +#include +// INTERNAL INCLUDES #include #include #include @@ -44,7 +47,6 @@ class Scrollable : public Control public: static const std::string SCROLLABLE_CAN_SCROLL_VERTICAL; static const std::string SCROLLABLE_CAN_SCROLL_HORIZONTAL; - static const Vector4 DEFAULT_OVERSHOOT_COLOUR; /** * Create a new Scrollable. @@ -106,6 +108,18 @@ public: */ virtual void ScrollTo(const Vector3 &position, float duration) = 0; + /** + * Set the color of the overshoot effect. + * @parm[in] color The color of the overshoot effect + */ + virtual void SetOvershootEffectColor( const Vector4& color ) = 0; + + /** + * Retrieve the color of the overshoot effect. + * @return The color of the overshoot effect. + */ + Vector4 GetOvershootEffectColor() const; + private: /** @@ -148,6 +162,24 @@ public: //Signals */ static bool DoConnectSignal( BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor ); + //properties + + /** + * Called when a property of an object of this type is set. + * @param[in] object The object whose property is set. + * @param[in] index The property index. + * @param[in] value The new property value. + */ + static void SetProperty( BaseObject* object, Property::Index index, const Property::Value& value ); + + /** + * Called to retrieve a property of an object of this type. + * @param[in] object The object whose property is to be retrieved. + * @param[in] index The property index. + * @return The current value of the property. + */ + static Property::Value GetProperty( BaseObject* object, Property::Index index ); + protected: /** @@ -192,6 +224,8 @@ private: protected: + Vector4 mOvershootEffectColor; ///