static public int get_width(IntPtr l) { try { AnimatedWidget self = (AnimatedWidget)checkSelf(l); pushValue(l, true); pushValue(l, self.width); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int set_height(IntPtr l) { try { AnimatedWidget self = (AnimatedWidget)checkSelf(l); System.Single v; checkType(l, 2, out v); self.height = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
void RemoveCore(AnimatedWidget widget, uint duration, Easing easing, Blocking blocking, bool use_easing, bool use_blocking) { if (duration > 0) { widget.Duration = duration; } if (use_easing) { widget.Easing = easing; } if (use_blocking) { widget.Blocking = blocking; } if (widget.AnimationState == AnimationState.Coming) { widget.AnimationState = AnimationState.IntendingToGo; } else { if (widget.Easing == Easing.QuadraticIn) { widget.Easing = Easing.QuadraticOut; } else if (widget.Easing == Easing.QuadraticOut) { widget.Easing = Easing.QuadraticIn; } else if (widget.Easing == Easing.ExponentialIn) { widget.Easing = Easing.ExponentialOut; } else if (widget.Easing == Easing.ExponentialOut) { widget.Easing = Easing.ExponentialIn; } widget.AnimationState = AnimationState.Going; stage.Add(widget, widget.Duration); } duration = widget.Duration; easing = widget.Easing; }
internal void AddAnimatedWidget(Widget widget, uint duration, Easing easing, Blocking blocking, int x, int y) { AnimatedWidget animated_widget = new AnimatedWidget(widget, duration, easing, blocking, false); animated_widget.Parent = this; animated_widget.WidgetDestroyed += OnWidgetDestroyed; stage.Add(animated_widget, duration); animated_widget.StartPadding = 0; animated_widget.EndPadding = widget.Allocation.Height; // animated_widget.Node = animated_widget; EditorContainerChild info = new EditorContainerChild(this, animated_widget); info.X = x; info.Y = y; info.FixedPosition = true; containerChildren.Add(info); }
void RemoveCore(AnimatedWidget widget) { RemoveCore(widget, widget.Duration, 0, 0, false, false); }