[DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Transition_Assign")]
public static extern IntPtr Assign(HandleRef destination, HandleRef source);
-
- [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Transition_ShowSourceAfterFinished")]
- public static extern void ShowSourceAfterFinished(HandleRef transition, bool showSourceAfterFinished);
}
}
}
[DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TransitionBase_Assign")]
public static extern IntPtr Assign(HandleRef destination, HandleRef source);
- [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TransitionBase_SetDuration")]
- public static extern void SetDuration(HandleRef transition, float seconds);
-
- [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TransitionBase_GetDuration")]
- public static extern float GetDuration(HandleRef transition);
-
- [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TransitionBase_SetDelay")]
- public static extern void SetDelay(HandleRef transition, float seconds);
-
- [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TransitionBase_GetDelay")]
- public static extern float GetDelay(HandleRef transition);
-
[DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TransitionBase_SetTimePeriod")]
public static extern void SetTimePeriod(HandleRef transition, HandleRef seconds);
+ [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TransitionBase_GetTimePeriod")]
+ public static extern IntPtr GetTimePeriod(HandleRef transition);
+
[DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TransitionBase_SetAlphaFunction")]
public static extern void SetAlphaFunction(HandleRef transition, HandleRef seconds);
{
}
- /// <summary>
- /// Sets the source View will be shown after transition finished.
- /// </summary>
- public bool ShowSourceAfterFinished
- {
- set
- {
- Interop.TransitionItem.ShowSourceAfterFinished(SwigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- }
-
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TransitionItem obj)
{
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr;
}
/// <summary>
- /// Gets or sets the duration in milliseconds of the transition.
- /// </summary>
- public int Duration
- {
- set
- {
- Interop.TransitionItemBase.SetDuration(SwigCPtr, MilliSecondsToSeconds(value));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- float ret = Interop.TransitionItemBase.GetDuration(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return SecondsToMilliSeconds(ret);
- }
- }
-
- /// <summary>
- /// Gets or sets the delay in milliseconds of the transition.
+ /// Gets or sets the TimePeriod
/// </summary>
- public int Delay
+ public TimePeriod TimePeriod
{
set
{
- Interop.TransitionItemBase.SetDelay(SwigCPtr, MilliSecondsToSeconds(value));
+ Interop.TransitionItemBase.SetTimePeriod(SwigCPtr, value.SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- float ret = Interop.TransitionItemBase.GetDelay(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return SecondsToMilliSeconds(ret);
- }
- }
-
- /// <summary>
- /// Gets or sets the TimePeriod
- /// </summary>
- public TimePeriod TimePeriod
- {
- set
- {
- Interop.TransitionItemBase.SetTimePeriod(SwigCPtr, value.SwigCPtr);
+ TimePeriod ret = new TimePeriod(Interop.TransitionItemBase.GetTimePeriod(SwigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
}
}