X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fscrollable%2Fscrollable-impl.h;h=ee1e02c6c2e802bb775b97733afa8f873915f693;hb=f546dd5d83a968e573f8f053a01ce43df32c71a0;hp=0b349f5477d50ac6ad7718b07dfb42a15d9b5487;hpb=2071317d301e9d5af326a3a2efcd2996263fbead;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/scrollable/scrollable-impl.h b/dali-toolkit/internal/controls/scrollable/scrollable-impl.h index 0b349f5..ee1e02c 100644 --- a/dali-toolkit/internal/controls/scrollable/scrollable-impl.h +++ b/dali-toolkit/internal/controls/scrollable/scrollable-impl.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_INTERNAL_SCROLLABLE_H__ -#define __DALI_TOOLKIT_INTERNAL_SCROLLABLE_H__ +#ifndef DALI_TOOLKIT_INTERNAL_SCROLLABLE_H +#define DALI_TOOLKIT_INTERNAL_SCROLLABLE_H /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 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. @@ -18,6 +18,9 @@ * */ +// EXTERNAL INCLUDES +#include + // INTERNAL INCLUDES #include #include @@ -52,12 +55,6 @@ public: void SetOvershootEnabled(bool enable); /** - * Gets the size of the domain (minimum/maximum extents for each axis to scroll to) - * @return the domain size - */ - virtual Vector2 GetDomainSize() const = 0; - - /** * Adds actor as an Overlay to Scrollable * This method is called by Add-on UI components * such as scroll bars, page indicators. @@ -110,6 +107,24 @@ public: */ float GetOvershootAnimationSpeed() const; + /** + * @copydoc Dali::Toolkit::Scrollable::GetOvershootSize() + */ + const Vector2& GetOvershootSize() const; + + /** + * Set the size of the overshoot effect. + * @parm[in] size The size of the overshoot effect + */ + virtual void SetOvershootSize( const Vector2& size ) = 0; + +protected: // From Control + + /** + * @copydoc Control::OnInitialize + */ + virtual void OnInitialize() override; + private: /** @@ -168,9 +183,9 @@ public: //Signals protected: /** - * Construct a new Scrollable. + * Removed default constructor. */ - Scrollable(); + Scrollable() = delete; /** * @brief Construct a new Scrollable. @@ -205,6 +220,9 @@ protected: Vector4 mOvershootEffectColor; ///