Formatted API
[platform/core/uifw/dali-core.git] / dali / public-api / object / property-conditions.cpp
index e30c74d..46ee48f 100644 (file)
 #include <dali/public-api/object/property-conditions.h>
 
 // INTERNAL INCLUDES
-#include <dali/public-api/object/property-value.h>
 #include <dali/internal/event/common/property-conditions-impl.h>
+#include <dali/public-api/object/property-value.h>
 
 namespace Dali
 {
-
 PropertyCondition::PropertyCondition()
 : BaseHandle(new Internal::PropertyCondition())
 {
-
 }
 
 PropertyCondition::~PropertyCondition()
 {
-
 }
 
-PropertyCondition::PropertyCondition( const PropertyCondition& handle ) = default;
+PropertyCondition::PropertyCondition(const PropertyCondition& handle) = default;
 
-PropertyCondition& PropertyCondition::operator=( const PropertyCondition& rhs ) = default;
+PropertyCondition& PropertyCondition::operator=(const PropertyCondition& rhs) = default;
 
-PropertyCondition::PropertyCondition( PropertyCondition&& rhs ) = default;
+PropertyCondition::PropertyCondition(PropertyCondition&& rhs) = default;
 
-PropertyCondition& PropertyCondition::operator=( PropertyCondition&& rhs ) = default;
+PropertyCondition& PropertyCondition::operator=(PropertyCondition&& rhs) = default;
 
 std::size_t PropertyCondition::GetArgumentCount() const
 {
   return GetImplementation(*this).arguments.Count();
 }
 
-float PropertyCondition::GetArgument( std::size_t index ) const
+float PropertyCondition::GetArgument(std::size_t index) const
 {
-  return GetImplementation(*this).arguments[ index ];
+  return GetImplementation(*this).arguments[index];
 }
 
-PropertyCondition LessThanCondition( float arg )
+PropertyCondition LessThanCondition(float arg)
 {
-  PropertyCondition condition;
-  Internal::PropertyCondition& impl = GetImplementation( condition );
-  impl.type = Internal::PropertyCondition::LessThan;
-  impl.arguments.PushBack( arg );
+  PropertyCondition            condition;
+  Internal::PropertyCondition& impl = GetImplementation(condition);
+  impl.type                         = Internal::PropertyCondition::LessThan;
+  impl.arguments.PushBack(arg);
 
   return condition;
 }
 
-PropertyCondition GreaterThanCondition( float arg )
+PropertyCondition GreaterThanCondition(float arg)
 {
-  PropertyCondition condition;
-  Internal::PropertyCondition& impl = GetImplementation( condition );
-  impl.type = Internal::PropertyCondition::GreaterThan;
-  impl.arguments.PushBack( arg );
+  PropertyCondition            condition;
+  Internal::PropertyCondition& impl = GetImplementation(condition);
+  impl.type                         = Internal::PropertyCondition::GreaterThan;
+  impl.arguments.PushBack(arg);
 
   return condition;
 }
 
-PropertyCondition InsideCondition( float arg0, float arg1 )
+PropertyCondition InsideCondition(float arg0, float arg1)
 {
-  PropertyCondition condition;
-  Internal::PropertyCondition& impl = GetImplementation( condition );
-  impl.type = Internal::PropertyCondition::Inside;
-  impl.arguments.PushBack( arg0 );
-  impl.arguments.PushBack( arg1 );
+  PropertyCondition            condition;
+  Internal::PropertyCondition& impl = GetImplementation(condition);
+  impl.type                         = Internal::PropertyCondition::Inside;
+  impl.arguments.PushBack(arg0);
+  impl.arguments.PushBack(arg1);
 
   return condition;
 }
 
-PropertyCondition OutsideCondition( float arg0, float arg1 )
+PropertyCondition OutsideCondition(float arg0, float arg1)
 {
-  PropertyCondition condition;
-  Internal::PropertyCondition& impl = GetImplementation( condition );
-  impl.type = Internal::PropertyCondition::Outside;
-  impl.arguments.PushBack( arg0 );
-  impl.arguments.PushBack( arg1 );
+  PropertyCondition            condition;
+  Internal::PropertyCondition& impl = GetImplementation(condition);
+  impl.type                         = Internal::PropertyCondition::Outside;
+  impl.arguments.PushBack(arg0);
+  impl.arguments.PushBack(arg1);
 
   return condition;
 }
 
-PropertyCondition StepCondition( float stepAmount, float referenceValue )
+PropertyCondition StepCondition(float stepAmount, float referenceValue)
 {
-  PropertyCondition condition;
-  Internal::PropertyCondition& impl = GetImplementation( condition );
-  impl.type = Internal::PropertyCondition::Step;
-  impl.arguments.PushBack( referenceValue );
-  impl.arguments.PushBack( 1.0f / stepAmount );
-  impl.arguments.PushBack( 0.0f ); // current step
+  PropertyCondition            condition;
+  Internal::PropertyCondition& impl = GetImplementation(condition);
+  impl.type                         = Internal::PropertyCondition::Step;
+  impl.arguments.PushBack(referenceValue);
+  impl.arguments.PushBack(1.0f / stepAmount);
+  impl.arguments.PushBack(0.0f); // current step
 
   return condition;
 }
 
-PropertyCondition VariableStepCondition( const Dali::Vector<float>& stepAmount )
+PropertyCondition VariableStepCondition(const Dali::Vector<float>& stepAmount)
 {
-  PropertyCondition condition;
-  Internal::PropertyCondition& impl = GetImplementation( condition );
-  impl.type = Internal::PropertyCondition::VariableStep;
-  impl.arguments.PushBack( 0.0f ); // current step
+  PropertyCondition            condition;
+  Internal::PropertyCondition& impl = GetImplementation(condition);
+  impl.type                         = Internal::PropertyCondition::VariableStep;
+  impl.arguments.PushBack(0.0f); // current step
   Dali::Vector<float>::SizeType count = stepAmount.Count();
-  impl.arguments.PushBack( float( count ) ); // store number of steps
-  for( Dali::Vector<float>::SizeType index = 0; index < count; ++index )
+  impl.arguments.PushBack(float(count)); // store number of steps
+  for(Dali::Vector<float>::SizeType index = 0; index < count; ++index)
   {
-    impl.arguments.PushBack( stepAmount[index] );
+    impl.arguments.PushBack(stepAmount[index]);
   }
 
   return condition;