X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Factors%2Fcustom-actor-internal.h;h=c3b57b3111bb67c033bcf5adc7cdb8e44034bba5;hb=baad1726f5f7f05d98da7ca591f24dbe3c49dab2;hp=c195a2783d03922eae7e6edcb7818b9e2d66202b;hpb=92db3ebbbd3ae9298a4cc6e2d9d827b88ed999e0;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/actors/custom-actor-internal.h b/dali/internal/event/actors/custom-actor-internal.h index c195a27..c3b57b3 100644 --- a/dali/internal/event/actors/custom-actor-internal.h +++ b/dali/internal/event/actors/custom-actor-internal.h @@ -1,8 +1,8 @@ -#ifndef __DALI_INTERNAL_CUSTOM_ACTOR_H__ -#define __DALI_INTERNAL_CUSTOM_ACTOR_H__ +#ifndef DALI_INTERNAL_CUSTOM_ACTOR_H +#define DALI_INTERNAL_CUSTOM_ACTOR_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. @@ -58,6 +58,13 @@ public: return *mImpl; } + /** + * Get the type info associated with this object. + * + * @return The type info + */ + Dali::TypeInfo GetTypeInfo(); + protected: /** @@ -70,9 +77,9 @@ private: /** * @copydoc Internal::Actor::OnStageConnectionExternal */ - virtual void OnStageConnectionExternal() + virtual void OnStageConnectionExternal( int32_t depth ) { - mImpl->OnStageConnection(); + mImpl->OnStageConnection( depth ); } /** @@ -151,11 +158,11 @@ private: } /** - * @copydoc Internal::Actor::OnMouseWheelEvent + * @copydoc Internal::Actor::OnWheelEvent */ - virtual bool OnMouseWheelEvent(const MouseWheelEvent& event) + virtual bool OnWheelEvent(const WheelEvent& event) { - return mImpl->OnMouseWheelEvent(event); + return mImpl->OnWheelEvent(event); } /** @@ -233,17 +240,17 @@ private: /** * Private constructor; see also CustomActor::New() */ - CustomActor(CustomActorImpl& extension); + CustomActor( const SceneGraph::Node& node, CustomActorImpl& extension ); - // Undefined - CustomActor(const CustomActor&); - - // Undefined - CustomActor& operator=(const CustomActor& rhs); + // no default or copy constructor or assignment + CustomActor() = delete; + CustomActor( const CustomActor& ) = delete; + CustomActor& operator=( const CustomActor& rhs ) = delete; protected: CustomActorImplPtr mImpl; + }; } // namespace Internal @@ -270,4 +277,4 @@ inline const Internal::CustomActor& GetImpl(const Dali::CustomActor& actor) } // namespace Dali -#endif // __DALI_INTERNAL_CUSTOM_ACTOR_H__ +#endif // DALI_INTERNAL_CUSTOM_ACTOR_H