#ifndef __DALI_INTERNAL_CUSTOM_ACTOR_H__
#define __DALI_INTERNAL_CUSTOM_ACTOR_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
#include <dali/internal/event/actors/actor-impl.h>
#include <dali/internal/event/actors/actor-declarations.h>
#include <dali/public-api/actors/custom-actor.h>
+#include <dali/public-api/animation/animation.h>
namespace Dali
{
/**
* @copydoc Internal::Actor::OnStageConnectionExternal
*/
- virtual void OnStageConnectionExternal()
+ virtual void OnStageConnectionExternal( int depth )
{
- mImpl->OnStageConnection();
+ mImpl->OnStageConnection( depth );
}
/**
}
/**
+ * @copydoc Internal::Actor::OnHoverEvent
+ */
+ virtual bool OnHoverEvent(const HoverEvent& event)
+ {
+ return mImpl->OnHoverEvent(event);
+ }
+
+ /**
* @copydoc Internal::Actor::OnKeyEvent
*/
virtual bool OnKeyEvent(const KeyEvent& event)
}
/**
- * @copydoc Internal::Actor::OnMouseWheelEvent
+ * @copydoc Internal::Actor::OnWheelEvent
+ */
+ virtual bool OnWheelEvent(const WheelEvent& event)
+ {
+ return mImpl->OnWheelEvent(event);
+ }
+
+ /**
+ * @copydoc Internal::Actor::OnRelayout
+ */
+ virtual void OnRelayout( const Vector2& size, RelayoutContainer& container )
+ {
+ mImpl->OnRelayout( size, container );
+ }
+
+ /**
+ * @copydoc Internal::Actor::OnSetResizePolicy
+ */
+ virtual void OnSetResizePolicy( ResizePolicy::Type policy, Dimension::Type dimension )
+ {
+ mImpl->OnSetResizePolicy( policy, dimension );
+ }
+
+ /**
+ * @copydoc Internal::Actor::GetNaturalSize
+ */
+ virtual Vector3 GetNaturalSize() const
+ {
+ return mImpl->GetNaturalSize();
+ }
+
+ /**
+ * @copydoc Internal::Actor::CalculateChildSize
+ */
+ virtual float CalculateChildSize( const Dali::Actor& child, Dimension::Type dimension )
+ {
+ return mImpl->CalculateChildSize( child, dimension );
+ }
+
+ /**
+ * @copydoc Internal::Actor::GetHeightForWidth
+ */
+ virtual float GetHeightForWidth( float width )
+ {
+ return mImpl->GetHeightForWidth( width );
+ }
+
+ /**
+ * @copydoc Internal::Actor::GetWidthForHeight
+ */
+ virtual float GetWidthForHeight( float height )
+ {
+ return mImpl->GetWidthForHeight( height );
+ }
+
+ /**
+ * @copydoc Internal::Actor::RelayoutDependentOnChildren
+ */
+ virtual bool RelayoutDependentOnChildren( Dimension::Type dimension = Dimension::ALL_DIMENSIONS )
+ {
+ return mImpl->RelayoutDependentOnChildren( dimension );
+ }
+
+ /**
+ * @copydoc Internal::Actor::OnCalculateRelayoutSize
*/
- virtual bool OnMouseWheelEvent(const MouseWheelEvent& event)
+ virtual void OnCalculateRelayoutSize( Dimension::Type dimension )
{
- return mImpl->OnMouseWheelEvent(event);
+ return mImpl->OnCalculateRelayoutSize( dimension );
}
/**
- * @copydoc Internal::Actor::GetChildByAlias
+ * @copydoc Internal::Actor::OnLayoutNegotiated
*/
- virtual Dali::Actor GetChildByAlias(const std::string& actorAlias)
+ virtual void OnLayoutNegotiated( float size, Dimension::Type dimension )
{
- return mImpl->GetChildByAlias(actorAlias);
+ return mImpl->OnLayoutNegotiated( size, dimension );
}
/**