internal override TransitionItemBase CreateTransition(View view, bool appearingTransition, TimePeriod timePeriod, AlphaFunction alphaFunction) { TransitionGroupItem group = new TransitionGroupItem(view, transitionList, UseGroupTimePeriod, StepTransition, UseGroupAlphaFunction, appearingTransition, timePeriod, alphaFunction); return(group); }
/// <summary> /// Creates an initialized fade.<br /> /// </summary> /// <remarks>DurationmSeconds must be greater than zero.</remarks> public TransitionGroupItem(View view, List <TransitionBase> transitionList, bool useGroupTimePeriod, bool stepTransition, bool useGroupAlphaFunction, bool appearingTransition, TimePeriod timePeriod, AlphaFunction alphaFunction) : base(view, appearingTransition, timePeriod, alphaFunction) { if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } this.useGroupTimePeriod = useGroupTimePeriod; this.stepTransition = stepTransition; this.useGroupAlphaFunction = useGroupAlphaFunction; transitionView = view; transitionItemList = new List <TransitionItemBase>(); for (int index = 0; index < transitionList.Count; ++index) { TimePeriod localTimePeriod = new TimePeriod(transitionList[index].GetTimePeriod().DelayMilliseconds, transitionList[index].GetTimePeriod().DurationMilliseconds); AlphaFunction localAlphaFunction = transitionList[index].GetAlphaFunction(); if (useGroupTimePeriod) { int stepMilliseconds = 0; if (stepTransition) { stepMilliseconds = TimePeriod.DurationMilliseconds / transitionList.Count; } localTimePeriod.DelayMilliseconds += TimePeriod.DelayMilliseconds + stepMilliseconds * index; } if (useGroupAlphaFunction) { localAlphaFunction = AlphaFunction; } transitionItemList.Add(transitionList[index].CreateTransition(transitionView, AppearingTransition, localTimePeriod, localAlphaFunction)); } }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TimePeriod obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr); }
internal override TransitionItemBase CreateTransition(View view, bool appearingTransition, TimePeriod timePeriod, AlphaFunction alphaFunction) { FadeTransitionItem fade = new FadeTransitionItem(view, Opacity, appearingTransition, timePeriod, alphaFunction); return(fade); }
/// <summary> /// Creates an initialized ScaleTransition.<br /> /// </summary> /// <remarks>Delay and duration of timePeriod must be greater than zero.</remarks> public ScaleTransitionItem(View view, Vector2 scale, bool appearingTransition, TimePeriod timePeriod, AlphaFunction alphaFunction) : this(Interop.ScaleTransitionItem.New(view.SwigCPtr, scale.SwigCPtr, timePeriod.SwigCPtr), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } AppearingTransition = appearingTransition; AlphaFunction = alphaFunction; }
internal virtual TransitionItemBase CreateTransition(View view, bool appearingTransition, TimePeriod timePeriod, AlphaFunction alphaFunction) { return(new TransitionItemBase(view, appearingTransition, timePeriod, alphaFunction)); }
internal override TransitionItemBase CreateTransition(View view, bool appearingTransition, TimePeriod timePeriod, AlphaFunction alphaFunction) { SlideTransitionItem slide = new SlideTransitionItem(view, Direction, appearingTransition, timePeriod, alphaFunction); return(slide); }
internal override TransitionItemBase CreateTransition(View view, bool appearingTransition, TimePeriod timePeriod, AlphaFunction alphaFunction) { ScaleTransitionItem scale = new ScaleTransitionItem(view, ScaleFactor, appearingTransition, timePeriod, alphaFunction); return(scale); }