public GDIObjectContainer(GDIObjectContainer parent = null) : base(parent) { Items = new List<GDIObject>(); ScrollX = 0; ScrollY = 0; }
protected GDIObject getRootObject(GDIObjectContainer obj) { if (obj.Parent != null) { return(getRootObject(obj.Parent)); } else { return(obj); } }
public GDIObject(GDIObjectContainer parent = null) { X = 0; Y = 0; Width = 100; Height = 100; LineColor = new GDIColor(0, 0, 0); LineThickness = 1; LineAlpha = 255; FillAlpha = 255; FillColor = new GDIColor(255, 0, 0); Rotation = 0; Skew = PointF.Empty; Parent = parent; if (Parent != null) Parent.Items.Add(this); }
private void TestCaseContainer() { GDIObjectContainer container = new GDIObjectContainer(); container.Width = 200; container.Height = 200; container.FillColor = new GDIColor(0, 255, 0); container.X = 30; container.Y = 30; GDIObject objA = new GDIObject(container); objA.FillColor = new GDIColor(255, 0, 0); objA.X = 170; objA.Y = 170; canvas.Objects.Clear(); canvas.Objects.Add(container); pnlCanvas.Invalidate(); }
public GDIObject(GDIObjectContainer parent = null) { X = 0; Y = 0; Width = 100; Height = 100; LineColor = new GDIColor(0, 0, 0); LineThickness = 1; LineAlpha = 255; FillAlpha = 255; FillColor = new GDIColor(255, 0, 0); Rotation = 0; Skew = PointF.Empty; Parent = parent; if (Parent != null) { Parent.Items.Add(this); } }
public GDIBitmap(GDIObjectContainer parent = null) : base(parent) { ScaleY = 1; ScaleX = 1; }
public GDILine(GDIObjectContainer parent = null) : base(parent) { }
public GDIObjectContainer(GDIObjectContainer parent = null) : base(parent) { Items = new List <GDIObject>(); ScrollX = 0; ScrollY = 0; }
protected GDIObject getRootObject(GDIObjectContainer obj) { if (obj.Parent != null) return getRootObject(obj.Parent); else return obj; }