示例#1
0
 /// <summary>
 /// Displays component at specific xy position. A floating component (like a menu) is positioned relative to its ownerCt if any. Useful for popping up a context menu
 /// </summary>
 /// <param name="x">The new x position</param>
 /// <param name="y">The new y position</param>
 /// <param name="animate">Animation configuration</param>
 public void ShowAt(int x, int y, AnimConfig animate)
 {
     this.Call("showAt", x, y, new JRawValue(new ClientConfig().Serialize(animate)));
 }
 public virtual void SetPosition(int x, int y, AnimConfig animate)
 {
     this.Call("setPosition", x, y, new JRawValue(new ClientConfig().Serialize(animate)));
 }
 /// <summary>
 ///
 /// </summary>
 public virtual TBuilder DoAnimation(AnimConfig cfg)
 {
     this.ToComponent().DoAnimation(cfg);
     return(this as TBuilder);
 }
示例#4
0
 public virtual void SetPosition(int x, int y, AnimConfig animate)
 {
     this.Call("setPosition", x, y, new JRawValue(new ClientConfig().Serialize(animate)));
 }
 /// <summary>
 ///
 /// </summary>
 public virtual Sprite.Builder Animate(AnimConfig cfg)
 {
     this.ToComponent().Animate(cfg);
     return(this);
 }
示例#6
0
 public virtual void Animate(AnimConfig cfg)
 {
     this.CallTemplate("animate", new JRawValue(new ClientConfig().Serialize(cfg)));
 }
 /// <summary>
 ///
 /// </summary>
 public virtual TBuilder SetPosition(int x, int y, AnimConfig animate)
 {
     this.ToComponent().SetPosition(x, y, animate);
     return(this as TBuilder);
 }
示例#8
0
 ///<summary>
 /// Sets the active (visible) component in the layout to the previous card, optional wrap parameter to wrap to the last card when the beginning of the stack is reached.
 ///</summary>
 ///<param name="anim">Animation to use for the card transition</param>
 public virtual void PrevItem(AnimConfig anim)
 {
     this.Call("layout.prev", new JRawValue(new ClientConfig().Serialize(anim, true)));
 }
示例#9
0
 /// <summary>
 /// Displays component at specific xy position. A floating component (like a menu) is positioned relative to its ownerCt if any. Useful for popping up a context menu
 /// </summary>
 /// <param name="x">The new x position</param>
 /// <param name="y">The new y position</param>
 /// <param name="animate">Animation configuration</param>
 public void ShowAt(int x, int y, AnimConfig animate)
 {
     this.Call("showAt", x, y, new JRawValue(new ClientConfig().Serialize(animate)));
 }
示例#10
0
 public virtual Element Animate(AnimConfig args)
 {
     this.Call("animate", new JRawValue(new ClientConfig().Serialize(args)));
     return this;
 }
 /// <summary>
 ///
 /// </summary>
 public virtual TBuilder Animate(AnimConfig cfg)
 {
     this.ToComponent().Animate(cfg);
     return(this as TBuilder);
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="cfg"></param>
 void IAnimate.Animate(AnimConfig cfg)
 {
     this.DoAnimation(cfg);
 }
 public virtual void DoAnimation(AnimConfig cfg)
 {
     this.Call("animate", new JRawValue(new ClientConfig().Serialize(cfg)));
 }
 ///<summary>
 /// Sets the active (visible) component in the layout to the next card, optional wrap parameter to wrap to the first card when the end of the stack is reached.
 ///</summary>
 ///<param name="anim">Animation to use for the card transition</param>
 ///<param name="wrap">Wrap to the first card when the end of the stack is reached.</param>
 public virtual void NextItem(AnimConfig anim, bool wrap)
 {
     this.Call("layout.next", new JRawValue(new ClientConfig().Serialize(anim, true)), wrap);
 }
示例#15
0
 /// <summary>
 /// Animation config
 /// </summary>
 public virtual Chart.Builder AnimateConfig(AnimConfig animateConfig)
 {
     this.ToComponent().AnimateConfig = animateConfig;
     return(this as Chart.Builder);
 }
 ///<summary>
 /// Sets the active (visible) component in the layout to the previous card, optional wrap parameter to wrap to the last card when the beginning of the stack is reached.
 ///</summary>
 ///<param name="anim">Animation to use for the card transition</param>
 public virtual void PrevItem(AnimConfig anim)
 {
     this.Call("layout.prev", new JRawValue(new ClientConfig().Serialize(anim, true)));
 }
示例#17
0
 ///<summary>
 /// Sets the active (visible) component in the layout to the next card, optional wrap parameter to wrap to the first card when the end of the stack is reached.
 ///</summary>
 ///<param name="anim">Animation to use for the card transition</param>
 ///<param name="wrap">Wrap to the first card when the end of the stack is reached.</param>
 public virtual void NextItem(AnimConfig anim, bool wrap)
 {
     this.Call("layout.next", new JRawValue(new ClientConfig().Serialize(anim, true)), wrap);
 }