X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fpopup%2Fpopup-impl.h;h=6b2c19a4e06fff4ddb4027429f7f6496355f62b4;hb=b694e7e2ae624e206e1548b1a863c554eb9cd4d7;hp=91d68b787d392e93bc96c16394e93cb732e5622a;hpb=e5ca10134c73ca0588f893adde82694ad907dd8d;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/popup/popup-impl.h b/dali-toolkit/internal/controls/popup/popup-impl.h index 91d68b7..6b2c19a 100755 --- a/dali-toolkit/internal/controls/popup/popup-impl.h +++ b/dali-toolkit/internal/controls/popup/popup-impl.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_INTERNAL_POPUP_H__ -#define __DALI_TOOLKIT_INTERNAL_POPUP_H__ +#ifndef DALI_TOOLKIT_INTERNAL_POPUP_H +#define DALI_TOOLKIT_INTERNAL_POPUP_H /* - * Copyright (c) 2015 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. @@ -347,6 +347,11 @@ private: */ void SetExitAnimationData( const Property::Map& map ); + /** + * @briefs Updates the popup background's position and size. + */ + void UpdateBackgroundPositionAndSize(); + public: // Signals /** @@ -396,10 +401,10 @@ private: /** * Signal occurs when the dimmed backing for the Popup is touched. * @param[in] actor The Actor Touched - * @param[in] event The Touch Event. + * @param[in] touch The Touch Data. * @return Whether to consume event or not. */ - bool OnBackingTouched(Actor actor, const TouchEvent& event); + bool OnBackingTouched(Actor actor, const TouchData& touch); /** * Signal occurs when a mouse wheel event occurs on the dimmed backing. @@ -412,10 +417,10 @@ private: /** * Signal occurs when the dialog has been touched. * @param[in] actor The Actor Touched - * @param[in] event The Touch Event. + * @param[in] touch The Touch Data. * @return Whether to consume event or not. */ - bool OnDialogTouched(Actor actor, const TouchEvent& event); + bool OnDialogTouched( Actor actor, const TouchData& touch ); /** * @copydoc Toolkit::Control::OnInitialize() @@ -542,7 +547,7 @@ private: bool mBackingEnabled; ///< True if a dimmed backing will be used. Vector4 mBackingColor; ///< The color of the backing. Actor mPopupBackgroundImage; ///< Stores the background image. - Vector4 mBackgroundOuterBorder; ///< Background external border margin size + Rect mBackgroundBorder; ///< Background border. float mMargin; ///< Internal margin for popup contents. std::string mTailUpImage; ///< Image used for the tail for the up direction. std::string mTailDownImage; ///< Image used for the tail for the down direction. @@ -576,4 +581,4 @@ inline const Toolkit::Internal::Popup& GetImpl( const Toolkit::Popup& publicObje } // namespace Dali -#endif // __DALI_TOOLKIT_INTERNAL_POPUP_H__ +#endif // DALI_TOOLKIT_INTERNAL_POPUP_H