X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fmagnifier%2Fmagnifier-impl.h;h=4def3248e036fd2c364bd1eef2667640643d47db;hb=c95e793de54b10be70c3b6a68ec8952e430809c1;hp=d18fa246e3bfc8cd228bc54f995df55e1a0c4f4e;hpb=e2eda444afbe82e9591fe198eef339227f90a616;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/magnifier/magnifier-impl.h b/dali-toolkit/internal/controls/magnifier/magnifier-impl.h deleted file mode 100644 index d18fa24..0000000 --- a/dali-toolkit/internal/controls/magnifier/magnifier-impl.h +++ /dev/null @@ -1,162 +0,0 @@ -#ifndef __DALI_TOOLKIT_INTERNAL_MAGNIFIER_H__ -#define __DALI_TOOLKIT_INTERNAL_MAGNIFIER_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. -// - -// INTERNAL INCLUDES -#include -#include -#include - -namespace Dali -{ - -namespace Toolkit -{ - -namespace Internal -{ - -class Magnifier; - -typedef IntrusivePtr MagnifierPtr; - -/** - * @copydoc Toolkit::Magnifier - */ -class Magnifier : public ControlImpl -{ -public: - - /** - * Create a new Magnifier. - * @return A public handle to the newly allocated Magnifier. - */ - static Dali::Toolkit::Magnifier New(); - -public: - - /** - * @copydoc Toolkit::ImageView::SetSourceActor - */ - void SetSourceActor(Actor actor); - - /** - * @copydoc Toolkit::ImageView::SetSourcePosition - */ - void SetSourcePosition(const Vector3& position); - - /** - * @copydoc Toolkit::ImageView::GetFrameVisibility - */ - bool GetFrameVisibility() const; - - /** - * @copydoc Toolkit::ImageView::SetFrameVisibility - */ - void SetFrameVisibility(bool visible); - - /** - * @copydoc Toolkit::ImageView::GetMagnificationFactor - */ - float GetMagnificationFactor() const; - - /** - * @copydoc Toolkit::ImageView::SetMagnificationFactor - */ - void SetMagnificationFactor(float value); - - /** - * Update magnification - */ - void Update(); - -protected: - - /** - * Construct a new Magnifier. - */ - Magnifier(); - - /** - * 2nd-phase initialization. - */ - void Initialize(); - - /** - * A reference counted object may only be deleted by calling Unreference() - */ - virtual ~Magnifier(); - -private: - - /** - * Initializes the render task required to render contents. - */ - void InitializeRenderTask(); - -private: - - virtual void OnControlSizeSet(const Vector3& targetSize); - -private: - - // Undefined - Magnifier(const Magnifier&); - - // Undefined - Magnifier& operator=(const Magnifier& rhs); - -private: - - RenderTask mTask; ///< Render Task to render the source actor contents. - CameraActor mCameraActor; ///< CameraActor attached to RenderTask - Layer mFrameLayer; ///< Frame is placed on separate layer added to stage. - Property::Index mPropertySourcePosition; ///< Source Position ("source-position") - Actor mSourceActor; ///< Source Delegate Actor represents the source position to read. - float mDefaultCameraDistance; ///< Default RenderTask's camera distance from target. - Vector3 mActorSize; ///< The Actor size - float mMagnificationFactor; ///< Magnification factor 1.0f is default. same as content. -}; - -} // namespace Internal - -// Helpers for public-api forwarding methods - -inline Toolkit::Internal::Magnifier& GetImpl(Toolkit::Magnifier& pub) -{ - DALI_ASSERT_ALWAYS(pub); - - Dali::RefObject& handle = pub.GetImplementation(); - - return static_cast(handle); -} - -inline const Toolkit::Internal::Magnifier& GetImpl(const Toolkit::Magnifier& pub) -{ - DALI_ASSERT_ALWAYS(pub); - - const Dali::RefObject& handle = pub.GetImplementation(); - - return static_cast(handle); -} - -} // namespace Toolkit - -} // namespace Dali - -#endif // __DALI_TOOLKIT_INTERNAL_MAGNIFIER_H__