// Start the animation
animation.Play();
- // Target value should be retrievable straight away
- DALI_TEST_EQUALS( actor.GetProperty< bool >( index ), finalValue, TEST_LOCATION );
-
bool signalReceived(false);
AnimationFinishCheck finishCheck(signalReceived);
animation.FinishedSignal().Connect(&application, finishCheck);
// Start the animation
animation.Play();
- // Target value should be retrievable straight away
- DALI_TEST_EQUALS( actor.GetProperty< float >( index ), targetValue, TEST_LOCATION );
-
bool signalReceived(false);
AnimationFinishCheck finishCheck(signalReceived);
animation.FinishedSignal().Connect(&application, finishCheck);
// Start the animation
animation.Play();
- // Target value should be retrievable straight away
- DALI_TEST_EQUALS( actor.GetProperty< int >( index ), targetValue, TEST_LOCATION );
-
bool signalReceived(false);
AnimationFinishCheck finishCheck(signalReceived);
animation.FinishedSignal().Connect(&application, finishCheck);
// Start the animation
animation.Play();
- // Target value should be retrievable straight away
- DALI_TEST_EQUALS( actor.GetProperty< Vector2 >( index ), targetValue, TEST_LOCATION );
-
bool signalReceived(false);
AnimationFinishCheck finishCheck(signalReceived);
animation.FinishedSignal().Connect(&application, finishCheck);
// Start the animation
animation.Play();
- // Target value should be retrievable straight away
- DALI_TEST_EQUALS( actor.GetProperty< Vector3 >( index ), targetValue, TEST_LOCATION );
-
bool signalReceived(false);
AnimationFinishCheck finishCheck(signalReceived);
animation.FinishedSignal().Connect(&application, finishCheck);
// Start the animation
animation.Play();
- // Target value should be retrievable straight away
- DALI_TEST_EQUALS( actor.GetProperty< Vector4 >( index ), targetValue, TEST_LOCATION );
-
bool signalReceived(false);
AnimationFinishCheck finishCheck(signalReceived);
animation.FinishedSignal().Connect(&application, finishCheck);
// Start the animation
animation.Play();
- // Target value should be retrievable straight away
- DALI_TEST_EQUALS( actor.GetProperty< Vector3 >( Actor::Property::POSITION ), targetPosition, TEST_LOCATION );
-
bool signalReceived(false);
AnimationFinishCheck finishCheck(signalReceived);
animation.FinishedSignal().Connect(&application, finishCheck);
// Start the animation
animation.Play();
- // Target value should be retrievable straight away
- DALI_TEST_EQUALS( actor.GetProperty< Quaternion >( Actor::Property::ORIENTATION ), Quaternion(relativeRotationRadians, Vector3::YAXIS), TEST_LOCATION );
-
bool signalReceived(false);
AnimationFinishCheck finishCheck(signalReceived);
animation.FinishedSignal().Connect(&application, finishCheck);
// Start the animation
animation.Play();
- // Target value should be retrievable straight away
- DALI_TEST_EQUALS( actor.GetProperty< Vector3 >( Actor::Property::SCALE ), targetScale, TEST_LOCATION );
-
bool signalReceived(false);
AnimationFinishCheck finishCheck(signalReceived);
animation.FinishedSignal().Connect(&application, finishCheck);
}
}
-/// Helper to adjust the current value of a variable from the given property-value
-/// Returns true if value adjusted, false otherwise
-template< typename PropertyType >
-inline bool AdjustValue( PropertyType& currentValue, const Property::Value& value )
-{
- PropertyType relativeValue;
- if( value.Get( relativeValue ) )
- {
- currentValue += relativeValue;
- return true;
- }
- return false;
-}
-
} // unnamed namespace
ActorPtr Actor::New()
return value;
}
-void Actor::OnNotifyDefaultPropertyAnimation( Animation& animation, Property::Index index, const Property::Value& value, PropertyChange::Type propertyChangeType )
+void Actor::OnNotifyDefaultPropertyAnimation( Animation& animation, Property::Index index, const Property::Value& value )
{
- if( propertyChangeType == Object::PropertyChange::SET )
+ switch( index )
{
- switch( index )
+ case Dali::Actor::Property::SIZE:
{
- case Dali::Actor::Property::SIZE:
- {
- if( value.Get( mTargetSize ) )
- {
- // Notify deriving classes
- OnSizeAnimation( animation, mTargetSize );
- }
- break;
- }
-
- case Dali::Actor::Property::SIZE_WIDTH:
- {
- if( value.Get( mTargetSize.width ) )
- {
- // Notify deriving classes
- OnSizeAnimation( animation, mTargetSize );
- }
- break;
- }
-
- case Dali::Actor::Property::SIZE_HEIGHT:
- {
- if( value.Get( mTargetSize.height ) )
- {
- // Notify deriving classes
- OnSizeAnimation( animation, mTargetSize );
- }
- break;
- }
-
- case Dali::Actor::Property::SIZE_DEPTH:
- {
- if( value.Get( mTargetSize.depth ) )
- {
- // Notify deriving classes
- OnSizeAnimation( animation, mTargetSize );
- }
- break;
- }
-
- case Dali::Actor::Property::POSITION:
- {
- value.Get( mTargetPosition );
- break;
- }
-
- case Dali::Actor::Property::POSITION_X:
- {
- value.Get( mTargetPosition.x );
- break;
- }
-
- case Dali::Actor::Property::POSITION_Y:
- {
- value.Get( mTargetPosition.y );
- break;
- }
-
- case Dali::Actor::Property::POSITION_Z:
- {
- value.Get( mTargetPosition.z );
- break;
- }
-
- case Dali::Actor::Property::ORIENTATION:
- {
- value.Get( mTargetOrientation );
- break;
- }
-
- case Dali::Actor::Property::SCALE:
- {
- value.Get( mTargetScale );
- break;
- }
-
- case Dali::Actor::Property::SCALE_X:
- {
- value.Get( mTargetScale.x );
- break;
- }
-
- case Dali::Actor::Property::SCALE_Y:
- {
- value.Get( mTargetScale.y );
- break;
- }
-
- case Dali::Actor::Property::SCALE_Z:
- {
- value.Get( mTargetScale.z );
- break;
- }
-
- case Dali::Actor::Property::VISIBLE:
- {
- SetVisibleInternal( value.Get< bool >(), SendMessage::FALSE );
- break;
- }
-
- case Dali::Actor::Property::COLOR:
- {
- value.Get( mTargetColor );
- break;
- }
-
- case Dali::Actor::Property::COLOR_RED:
- {
- value.Get( mTargetColor.r );
- break;
- }
-
- case Dali::Actor::Property::COLOR_GREEN:
+ if( value.Get( mTargetSize ) )
{
- value.Get( mTargetColor.g );
- break;
- }
-
- case Dali::Actor::Property::COLOR_BLUE:
- {
- value.Get( mTargetColor.b );
- break;
- }
-
- case Dali::Actor::Property::COLOR_ALPHA:
- case Dali::DevelActor::Property::OPACITY:
- {
- value.Get( mTargetColor.a );
- break;
- }
-
- default:
- {
- // Not an animatable property. Do nothing.
- break;
+ // Notify deriving classes
+ OnSizeAnimation( animation, mTargetSize );
}
+ break;
}
- }
- else
- {
- switch( index )
- {
- case Dali::Actor::Property::SIZE:
- {
- if( AdjustValue< Vector3 >( mTargetSize, value ) )
- {
- // Notify deriving classes
- OnSizeAnimation( animation, mTargetSize );
- }
- break;
- }
- case Dali::Actor::Property::SIZE_WIDTH:
+ case Dali::Actor::Property::SIZE_WIDTH:
+ {
+ if( value.Get( mTargetSize.width ) )
{
- if( AdjustValue< float >( mTargetSize.width, value ) )
- {
- // Notify deriving classes
- OnSizeAnimation( animation, mTargetSize );
- }
- break;
+ // Notify deriving classes
+ OnSizeAnimation( animation, mTargetSize );
}
+ break;
+ }
- case Dali::Actor::Property::SIZE_HEIGHT:
+ case Dali::Actor::Property::SIZE_HEIGHT:
+ {
+ if( value.Get( mTargetSize.height ) )
{
- if( AdjustValue< float >( mTargetSize.height, value ) )
- {
- // Notify deriving classes
- OnSizeAnimation( animation, mTargetSize );
- }
- break;
+ // Notify deriving classes
+ OnSizeAnimation( animation, mTargetSize );
}
+ break;
+ }
- case Dali::Actor::Property::SIZE_DEPTH:
+ case Dali::Actor::Property::SIZE_DEPTH:
+ {
+ if( value.Get( mTargetSize.depth ) )
{
- if( AdjustValue< float >( mTargetSize.depth, value ) )
- {
- // Notify deriving classes
- OnSizeAnimation( animation, mTargetSize );
- }
- break;
+ // Notify deriving classes
+ OnSizeAnimation( animation, mTargetSize );
}
+ break;
+ }
- case Dali::Actor::Property::POSITION:
- {
- AdjustValue< Vector3 >( mTargetPosition, value );
- break;
- }
+ case Dali::Actor::Property::POSITION:
+ {
+ value.Get( mTargetPosition );
+ break;
+ }
- case Dali::Actor::Property::POSITION_X:
- {
- AdjustValue< float >( mTargetPosition.x, value );
- break;
- }
+ case Dali::Actor::Property::POSITION_X:
+ {
+ value.Get( mTargetPosition.x );
+ break;
+ }
- case Dali::Actor::Property::POSITION_Y:
- {
- AdjustValue< float >( mTargetPosition.y, value );
- break;
- }
+ case Dali::Actor::Property::POSITION_Y:
+ {
+ value.Get( mTargetPosition.y );
+ break;
+ }
- case Dali::Actor::Property::POSITION_Z:
- {
- AdjustValue< float >( mTargetPosition.z, value );
- break;
- }
+ case Dali::Actor::Property::POSITION_Z:
+ {
+ value.Get( mTargetPosition.z );
+ break;
+ }
- case Dali::Actor::Property::ORIENTATION:
- {
- Quaternion relativeValue;
- if( value.Get( relativeValue ) )
- {
- mTargetOrientation *= relativeValue;
- }
- break;
- }
+ case Dali::Actor::Property::ORIENTATION:
+ {
+ value.Get( mTargetOrientation );
+ break;
+ }
- case Dali::Actor::Property::SCALE:
- {
- AdjustValue< Vector3 >( mTargetScale, value );
- break;
- }
+ case Dali::Actor::Property::SCALE:
+ {
+ value.Get( mTargetScale );
+ break;
+ }
- case Dali::Actor::Property::SCALE_X:
- {
- AdjustValue< float >( mTargetScale.x, value );
- break;
- }
+ case Dali::Actor::Property::SCALE_X:
+ {
+ value.Get( mTargetScale.x );
+ break;
+ }
- case Dali::Actor::Property::SCALE_Y:
- {
- AdjustValue< float >( mTargetScale.y, value );
- break;
- }
+ case Dali::Actor::Property::SCALE_Y:
+ {
+ value.Get( mTargetScale.y );
+ break;
+ }
- case Dali::Actor::Property::SCALE_Z:
- {
- AdjustValue< float >( mTargetScale.z, value );
- break;
- }
+ case Dali::Actor::Property::SCALE_Z:
+ {
+ value.Get( mTargetScale.z );
+ break;
+ }
- case Dali::Actor::Property::VISIBLE:
- {
- bool relativeValue = false;
- if( value.Get( relativeValue ) )
- {
- bool visible = mVisible || relativeValue;
- SetVisibleInternal( visible, SendMessage::FALSE );
- }
- break;
- }
+ case Dali::Actor::Property::VISIBLE:
+ {
+ SetVisibleInternal( value.Get< bool >(), SendMessage::FALSE );
+ break;
+ }
- case Dali::Actor::Property::COLOR:
- {
- AdjustValue< Vector4 >( mTargetColor, value );
- break;
- }
+ case Dali::Actor::Property::COLOR:
+ {
+ value.Get( mTargetColor );
+ break;
+ }
- case Dali::Actor::Property::COLOR_RED:
- {
- AdjustValue< float >( mTargetColor.r, value );
- break;
- }
+ case Dali::Actor::Property::COLOR_RED:
+ {
+ value.Get( mTargetColor.r );
+ break;
+ }
- case Dali::Actor::Property::COLOR_GREEN:
- {
- AdjustValue< float >( mTargetColor.g, value );
- break;
- }
+ case Dali::Actor::Property::COLOR_GREEN:
+ {
+ value.Get( mTargetColor.g );
+ break;
+ }
- case Dali::Actor::Property::COLOR_BLUE:
- {
- AdjustValue< float >( mTargetColor.b, value );
- break;
- }
+ case Dali::Actor::Property::COLOR_BLUE:
+ {
+ value.Get( mTargetColor.b );
+ break;
+ }
- case Dali::Actor::Property::COLOR_ALPHA:
- case Dali::DevelActor::Property::OPACITY:
- {
- AdjustValue< float >( mTargetColor.a, value );
- break;
- }
+ case Dali::Actor::Property::COLOR_ALPHA:
+ case Dali::DevelActor::Property::OPACITY:
+ {
+ value.Get( mTargetColor.a );
+ break;
+ }
- default:
- {
- // Not an animatable property. Do nothing.
- break;
- }
+ default:
+ {
+ // Not an animatable property. Do nothing.
+ break;
}
}
}
/**
* @copydoc Dali::Internal::Object::OnNotifyDefaultPropertyAnimation()
*/
- virtual void OnNotifyDefaultPropertyAnimation( Animation& animation, Property::Index index, const Property::Value& value, PropertyChange::Type propertyChangeType );
+ virtual void OnNotifyDefaultPropertyAnimation( Animation& animation, Property::Index index, const Property::Value& value );
/**
* @copydoc Dali::Internal::Object::GetPropertyOwner()
Object* object = connector->GetObject();
if( object )
{
- object->NotifyPropertyAnimation( *this, connector->GetPropertyIndex(), iter->targetValue, iter->propertyChangeType );
+ object->NotifyPropertyAnimation( *this, connector->GetPropertyIndex(), iter->targetValue );
}
}
}
ExtendDuration( period );
- // Store data to later notify the object that its property is being animated
- ConnectorTargetValues connectorPair;
- connectorPair.targetValue = relativeValue;
- connectorPair.connectorIndex = mConnectors.Count();
- connectorPair.timePeriod = period;
- connectorPair.propertyChangeType = Object::PropertyChange::ADJUST_VALUE_BY;
- mConnectorTargetValues.push_back( connectorPair );
-
switch ( targetType )
{
case Property::BOOLEAN:
connectorPair.targetValue = destinationValue;
connectorPair.connectorIndex = mConnectors.Count();
connectorPair.timePeriod = period;
- connectorPair.propertyChangeType = Object::PropertyChange::SET;
mConnectorTargetValues.push_back( connectorPair );
switch ( destinationType )
#include <dali/internal/event/animation/animator-connector-base.h>
#include <dali/internal/event/animation/key-frames-impl.h>
#include <dali/internal/event/animation/path-impl.h>
-#include <dali/internal/event/common/object-impl.h>
namespace Dali
{
ConnectorTargetValues()
: targetValue(),
timePeriod( 0.0f ),
- connectorIndex( 0 ),
- propertyChangeType( Object::PropertyChange::SET )
+ connectorIndex( 0 )
{
}
Property::Value targetValue;
TimePeriod timePeriod;
unsigned int connectorIndex;
- Object::PropertyChange::Type propertyChangeType;
};
private:
}
}
-void Object::NotifyPropertyAnimation( Animation& animation, Property::Index index, const Property::Value& value, PropertyChange::Type propertyChangeType )
+void Object::NotifyPropertyAnimation( Animation& animation, Property::Index index, const Property::Value& value )
{
if ( index < DEFAULT_PROPERTY_MAX_COUNT )
{
- OnNotifyDefaultPropertyAnimation( animation, index, value, propertyChangeType );
+ OnNotifyDefaultPropertyAnimation( animation, index, value );
}
else if ( ( index >= ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX ) && ( index <= ANIMATABLE_PROPERTY_REGISTRATION_MAX_INDEX ) )
{
AnimatablePropertyMetadata* animatableProperty = FindAnimatableProperty( index );
if( animatableProperty )
{
- switch( propertyChangeType )
- {
- case PropertyChange::SET:
- {
- // update the cached property value
- animatableProperty->SetPropertyValue( value );
- break;
- }
- case PropertyChange::ADJUST_VALUE_BY:
- {
- // adjust the cached property value
- animatableProperty->AdjustPropertyValueBy( value );
- break;
- }
- }
+ // update the cached property value
+ animatableProperty->SetPropertyValue( value );
}
}
else
CustomPropertyMetadata* custom = FindCustomProperty( index );
if( custom && custom->IsAnimatable() )
{
- switch( propertyChangeType )
- {
- case PropertyChange::SET:
- {
- // update the cached property value
- custom->SetPropertyValue( value );
- break;
- }
- case PropertyChange::ADJUST_VALUE_BY:
- {
- // adjust the cached property value
- custom->AdjustPropertyValueBy( value );
- break;
- }
- }
+ // update the cached property value
+ custom->SetPropertyValue( value );
}
}
}
{
public:
- /**
- * Used by NotifyPropertyAnimation to differentiate between an AnimateTo and AnimateBy call.
- */
- struct PropertyChange
- {
- enum Type
- {
- SET, ///< Animating to the given value.
- ADJUST_VALUE_BY ///< Animating by the given value.
- };
- };
-
typedef Dali::Handle::Capability Capability;
class Observer
* @param[in] animation The animation animating the property.
* @param[in] index The index of the property.
* @param[in] value The value of the property after the animation.
- * @param[in] propertyChangeType Whether the property value given should be set or changed by.
*/
- void NotifyPropertyAnimation( Animation& animation, Property::Index index, const Property::Value& value, PropertyChange::Type propertyChangeType );
+ void NotifyPropertyAnimation( Animation& animation, Property::Index index, const Property::Value& value );
/******************************** Uniform Mappings ********************************/
* @param[in] animation The animation animating the property.
* @param[in] index The index of the property.
* @param[in] value The value of the property after the animation.
- * @param[in] propertyChangeType Whether the property value given should be set or changed by.
*/
- virtual void OnNotifyDefaultPropertyAnimation( Animation& animation, Property::Index index, const Property::Value& value, PropertyChange::Type propertyChangeType )
+ virtual void OnNotifyDefaultPropertyAnimation( Animation& animation, Property::Index index, const Property::Value& value )
{ }
/**
#include <dali/internal/event/common/property-metadata.h>
// INTERNAL INCLUDES
-#include <dali/public-api/math/quaternion.h>
#include <dali/public-api/math/vector2.h>
#include <dali/public-api/math/vector3.h>
#include <dali/public-api/math/vector4.h>
namespace Internal
{
-namespace
-{
-
-/// Helper to adjust the property value by an amount specified in another property-value
-template < typename PropertyType >
-inline void AdjustProperty( Property::Value& currentPropertyValue, const Property::Value& relativePropertyValue )
-{
- PropertyType currentValue;
- PropertyType relativeValue;
- if( currentPropertyValue.Get( currentValue ) && relativePropertyValue.Get( relativeValue ) )
- {
- currentPropertyValue = currentValue + relativeValue;
- }
-}
-
-} // unnamed namespace
-
void PropertyMetadata::SetPropertyValue( const Property::Value& propertyValue )
{
switch ( GetType() )
return propertyValue;
}
-void PropertyMetadata::AdjustPropertyValueBy( const Property::Value& relativePropertyValue )
-{
- switch ( GetType() )
- {
- case Property::NONE:
- case Property::RECTANGLE:
- case Property::STRING:
- case Property::ARRAY:
- case Property::MAP:
- case Property::MATRIX:
- case Property::MATRIX3:
- {
- // Not animated
- break;
- }
-
- case Property::BOOLEAN:
- {
- bool currentValue = false;
- bool relativeValue = false;
- if( value.Get( currentValue ) && relativePropertyValue.Get( relativeValue ) )
- {
- value = currentValue || relativeValue;
- }
- break;
- }
-
- case Property::INTEGER:
- {
- AdjustProperty< int >( value, relativePropertyValue );
- break;
- }
-
- case Property::FLOAT:
- {
- AdjustProperty< float >( value, relativePropertyValue );
- break;
- }
-
- case Property::ROTATION:
- {
- Quaternion currentValue;
- Quaternion relativeValue;
- if( value.Get( currentValue ) && relativePropertyValue.Get( relativeValue ) )
- {
- value = currentValue * relativeValue;
- }
- break;
- }
-
- case Property::VECTOR2:
- {
- if( componentIndex == Property::INVALID_COMPONENT_INDEX )
- {
- AdjustProperty< Vector2 >( value, relativePropertyValue );
- }
- else
- {
- Vector2 vector2Value;
- value.Get( vector2Value );
-
- if( componentIndex == 0 )
- {
- vector2Value.x += relativePropertyValue.Get< float >();
- }
- else if( componentIndex == 1 )
- {
- vector2Value.y += relativePropertyValue.Get< float >();
- }
-
- value = vector2Value;
- }
-
- break;
- }
-
- case Property::VECTOR3:
- {
- if( componentIndex == Property::INVALID_COMPONENT_INDEX )
- {
- AdjustProperty< Vector3 >( value, relativePropertyValue );
- }
- else
- {
- Vector3 vector3Value;
- value.Get( vector3Value );
-
- if( componentIndex == 0 )
- {
- vector3Value.x += relativePropertyValue.Get< float >();
- }
- else if( componentIndex == 1 )
- {
- vector3Value.y += relativePropertyValue.Get< float >();
- }
- else if( componentIndex == 2 )
- {
- vector3Value.z += relativePropertyValue.Get< float >();
- }
-
- value = vector3Value;
- }
- break;
- }
-
- case Property::VECTOR4:
- {
- if( componentIndex == Property::INVALID_COMPONENT_INDEX )
- {
- AdjustProperty< Vector4 >( value, relativePropertyValue );
- }
- else
- {
- Vector4 vector4Value;
- value.Get( vector4Value );
-
- if( componentIndex == 0 )
- {
- vector4Value.x = relativePropertyValue.Get< float >();
- }
- else if( componentIndex == 1 )
- {
- vector4Value.y = relativePropertyValue.Get< float >();
- }
- else if( componentIndex == 2 )
- {
- vector4Value.z = relativePropertyValue.Get< float >();
- }
- else if( componentIndex == 3 )
- {
- vector4Value.w = relativePropertyValue.Get< float >();
- }
-
- value = vector4Value;
- }
- break;
- }
- }
-}
-
} // namespace Internal
} // namespace Dali
*/
Property::Value GetPropertyValue() const;
- /**
- * Modifies the stored value by the relativeValue.
- * @param[in] relativeValue The value to change by.
- */
- void AdjustPropertyValueBy( const Property::Value& relativeValue );
-
protected:
/**
SignalConnectorType signalConnector1( mType, SIGNAL_FINISHED, &RenderTask::DoConnectSignal );
-/// Helper to adjust the current value of a variable from the given property-value
-template< typename PropertyType >
-inline void AdjustValue( PropertyType& currentValue, const Property::Value& value )
-{
- PropertyType relativeValue;
- if( value.Get( relativeValue ) )
- {
- currentValue += relativeValue;
- }
-}
-
} // Unnamed namespace
RenderTask* RenderTask::New( bool isSystemLevel )
return value;
}
-void RenderTask::OnNotifyDefaultPropertyAnimation( Animation& animation, Property::Index index, const Property::Value& value, PropertyChange::Type propertyChangeType )
+void RenderTask::OnNotifyDefaultPropertyAnimation( Animation& animation, Property::Index index, const Property::Value& value )
{
- if( propertyChangeType == Object::PropertyChange::SET )
+ switch ( index )
{
- switch ( index )
+ case Dali::RenderTask::Property::VIEWPORT_POSITION:
{
- case Dali::RenderTask::Property::VIEWPORT_POSITION:
- {
- value.Get( mViewportPosition );
- break;
- }
- case Dali::RenderTask::Property::VIEWPORT_SIZE:
- {
- value.Get( mViewportSize );
- break;
- }
- case Dali::RenderTask::Property::CLEAR_COLOR:
- {
- value.Get( mClearColor );
- break;
- }
- case Dali::RenderTask::Property::REQUIRES_SYNC:
- default:
- {
- // Nothing to do as not animatable
- break;
- }
+ value.Get( mViewportPosition );
+ break;
}
- }
- else
- {
- switch ( index )
+ case Dali::RenderTask::Property::VIEWPORT_SIZE:
{
- case Dali::RenderTask::Property::VIEWPORT_POSITION:
- {
- AdjustValue< Vector2 >( mViewportPosition, value );
- break;
- }
- case Dali::RenderTask::Property::VIEWPORT_SIZE:
- {
- AdjustValue< Vector2 >( mViewportSize, value );
- break;
- }
- case Dali::RenderTask::Property::CLEAR_COLOR:
- {
- AdjustValue< Vector4 >( mClearColor, value );
- break;
- }
- case Dali::RenderTask::Property::REQUIRES_SYNC:
- default:
- {
- // Nothing to do as not animatable
- break;
- }
+ value.Get( mViewportSize );
+ break;
+ }
+ case Dali::RenderTask::Property::CLEAR_COLOR:
+ {
+ value.Get( mClearColor );
+ break;
+ }
+ case Dali::RenderTask::Property::REQUIRES_SYNC:
+ default:
+ {
+ // Nothing to do as not animatable
+ break;
}
}
}
/**
* @copydoc Dali::Internal::Object::OnNotifyDefaultPropertyAnimation()
*/
- virtual void OnNotifyDefaultPropertyAnimation( Animation& animation, Property::Index index, const Property::Value& value, PropertyChange::Type propertyChangeType );
+ virtual void OnNotifyDefaultPropertyAnimation( Animation& animation, Property::Index index, const Property::Value& value );
/**
* @copydoc Dali::Internal::Object::GetSceneObject()