{
Impl::TestCustomActor* impl = new Impl::TestCustomActor( true );
TestCustomActor custom( *impl ); // takes ownership
- custom.SetName( "SizeNegotiationActor" );
+ custom.SetProperty( Dali::Actor::Property::NAME, "SizeNegotiationActor" );
impl->Initialize();
return custom;
}
-TestCustomActor TestCustomActor::NewVariant5()
+TestCustomActor TestCustomActor::NewVariant5(Integration::Scene scene)
{
- Impl::TestCustomActor* impl = new Impl::TestCustomActorVariant5();
+ Impl::TestCustomActor* impl = new Impl::TestCustomActorVariant5(scene);
TestCustomActor custom( *impl ); // takes ownership
impl->Initialize();
return custom;
}
-TestCustomActor TestCustomActor::NewVariant6()
+TestCustomActor TestCustomActor::NewVariant6(Integration::Scene scene)
{
- Impl::TestCustomActor* impl = new Impl::TestCustomActorVariant6();
+ Impl::TestCustomActor* impl = new Impl::TestCustomActorVariant6(scene);
TestCustomActor custom( *impl ); // takes ownership
impl->Initialize();
{
TestCustomActor::TestCustomActor()
-: CustomActorImpl( ActorFlags( REQUIRES_TOUCH_EVENTS | REQUIRES_WHEEL_EVENTS | REQUIRES_HOVER_EVENTS | DISABLE_SIZE_NEGOTIATION ) ),
+: CustomActorImpl( ActorFlags( DISABLE_SIZE_NEGOTIATION ) ),
mDaliProperty( Property::INVALID_INDEX ),
mSizeSet( Vector3::ZERO ),
mTargetSize( Vector3::ZERO ),
}
TestCustomActor::TestCustomActor(bool nego)
-: CustomActorImpl( ActorFlags( REQUIRES_TOUCH_EVENTS | REQUIRES_WHEEL_EVENTS | REQUIRES_HOVER_EVENTS ) ),
+: CustomActorImpl( ActorFlags() ),
mDaliProperty( Property::INVALID_INDEX ),
mSizeSet( Vector3::ZERO ),
mTargetSize( Vector3::ZERO ),
mMethodsCalled.push_back( method );
// Combine Actor name with method string
- std::string nameAndMethod( Self().GetName() );
+ std::string nameAndMethod( Self().GetProperty< std::string >( Dali::Actor::Property::NAME ) );
if ( 0 == nameAndMethod.size() )
{
nameAndMethod = "Unknown: ";
}
// From CustomActorImpl
-void TestCustomActor::OnStageConnection( int depth )
+void TestCustomActor::OnSceneConnection( int depth )
{
- AddToCallStacks("OnStageConnection");
+ AddToCallStacks("OnSceneConnection");
mDepth = depth;
}
-void TestCustomActor::OnStageDisconnection()
+void TestCustomActor::OnSceneDisconnection()
{
- AddToCallStacks("OnStageDisconnection");
+ AddToCallStacks("OnSceneDisconnection");
}
void TestCustomActor::OnChildAdd(Actor& child)
{
mTargetSize = targetSize;
AddToCallStacks("OnSizeAnimation");
}
-bool TestCustomActor::OnTouchEvent(const TouchEvent& event)
-{
- AddToCallStacks("OnTouchEvent");
- return true;
-}
-bool TestCustomActor::OnHoverEvent(const HoverEvent& event)
-{
- AddToCallStacks("OnHoverEvent");
- return true;
-}
-bool TestCustomActor::OnWheelEvent(const WheelEvent& event)
-{
- AddToCallStacks("OnWheelEvent");
- return true;
-}
-bool TestCustomActor::OnKeyEvent(const KeyEvent& event)
-{
- AddToCallStacks("OnKeyEvent");
- return true;
-}
void TestCustomActor::OnKeyInputFocusGained()
{
AddToCallStacks("OnKeyInputFocusGained");