namespace Tizen.NUI
{
-
- internal class PropertyCondition : BaseHandle
+ /// <summary>
+ /// A condition that can be evaluated on a Property Value
+ /// </summary>
+ public class PropertyCondition : BaseHandle
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- public PropertyCondition(PropertyCondition handle) : this(NDalicPINVOKE.new_PropertyCondition__SWIG_1(PropertyCondition.getCPtr(handle)), true)
+ /// <summary>
+ /// Retrieves the arguments that this condition uses.
+ /// </summary>
+ public uint GetArgumentCount()
{
+ uint ret = NDalicPINVOKE.PropertyCondition_GetArgumentCount(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ ///<summary>
+ /// Retrieves the arguments that this condition uses
+ ///</summary>
+ public float GetArgument(uint index)
+ {
+ float ret = NDalicPINVOKE.PropertyCondition_GetArgument(swigCPtr, index);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
}
- public PropertyCondition Assign(PropertyCondition rhs)
+ ///<summary>
+ /// LessThan condition compares whether property is less than arg.
+ ///</summary>
+ public static PropertyCondition LessThan(float arg)
{
- PropertyCondition ret = new PropertyCondition(NDalicPINVOKE.PropertyCondition_Assign(swigCPtr, PropertyCondition.getCPtr(rhs)), false);
+ PropertyCondition ret = new PropertyCondition(NDalicPINVOKE.LessThanCondition(arg), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
- public uint GetArgumentCount()
+ ///<summary>
+ /// GreaterThan condition compares whether property is greater than arg.
+ ///</summary>
+ public static PropertyCondition GreaterThan(float arg)
{
- uint ret = NDalicPINVOKE.PropertyCondition_GetArgumentCount(swigCPtr);
+ PropertyCondition ret = new PropertyCondition(NDalicPINVOKE.GreaterThanCondition(arg), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
- public float GetArgument(uint index)
+ ///<summary>
+ /// Inside condition compares whether property is greater than arg0 and less than arg1.
+ ///</summary>
+ public static PropertyCondition Inside(float arg0, float arg1)
{
- float ret = NDalicPINVOKE.PropertyCondition_GetArgument(swigCPtr, index);
+ PropertyCondition ret = new PropertyCondition(NDalicPINVOKE.InsideCondition(arg0, arg1), true);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ ///<summary>
+ /// Outside condition compares whether property is less than arg0 or greater than arg1
+ ///</summary>
+ public static PropertyCondition Outside(float arg0, float arg1)
+ {
+ PropertyCondition ret = new PropertyCondition(NDalicPINVOKE.OutsideCondition(arg0, arg1), true);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ ///<summary>
+ /// Detects when a property changes by stepAmount from initialValue, in both positive and negative directions. This will continue checking for multiples of stepAmount.
+ ///</summary>
+ public static PropertyCondition Step(float stepAmount, float initialValue)
+ {
+ PropertyCondition ret = new PropertyCondition(NDalicPINVOKE.StepCondition__SWIG_0(stepAmount, initialValue), true);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ ///<summary>
+ /// Receives notifications as a property goes above/below the inputted values. Values must be ordered and can be either ascending or descending.
+ ///</summary>
+ public static PropertyCondition Step(float stepAmount)
+ {
+ PropertyCondition ret = new PropertyCondition(NDalicPINVOKE.StepCondition__SWIG_1(stepAmount), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}