public virtual void SetText(Sprite sprite, string text)
 {
     sprite.Draw = this;
     this.CallSurface("setText", JRawValue.From(sprite.Proxy), text);
 }
 public virtual void SetStyle(Sprite sprite, Dictionary<string, string> styles)
 {
     sprite.Draw = this;
     this.CallSurface("setStyle", JRawValue.From(sprite.Proxy), styles);
 }
 public virtual void RemoveCls(Sprite sprite, string[] className)
 {
     sprite.Draw = this;
     this.CallSurface("removeCls", JRawValue.From(sprite.Proxy), className);
 }
 public virtual void Remove(Sprite sprite)
 {
     sprite.Draw = this;
     this.CallSurface("remove", JRawValue.From(sprite.Proxy));
 }
 public virtual void Add(Sprite sprite)
 {
     sprite.Draw = this;
     this.CallSurface("add", JRawValue.From(new ClientConfig().Serialize(sprite, true, true)));
 }
 protected virtual void Items_AfterSpriteAdd(Sprite item)
 {
     item.Draw = this;
 }