Exemple #1
0
 public static void SetRectangle(this SvgRectangle r, RectangleF bounds)
 {
     r.X      = bounds.X;
     r.Y      = bounds.Y;
     r.Width  = bounds.Width;
     r.Height = bounds.Height;
 }
Exemple #2
0
        public SvgWidget(string name)
        {
            Name = name;
            Background = new SvgRectangle();
            Background.CustomAttributes["class"] = "menu";

            this.Children.Add(Background);
            this.Visible = true;
        }
Exemple #3
0
 public static RectangleF GetRectangle(this SvgRectangle r)
 {
     return(new RectangleF(r.X, r.Y, r.Width, r.Height));
 }