public Rect(Point NewLocation, Point NewSize) { Location = NewLocation; Size = NewSize; if (Location == null) Location = new Point(0, 0); if (Size == null) Size = new Point(0, 0); }
public GuiLabs.Canvas.Point StringSize(string Text, IFontInfo theFont) { System.Drawing.SizeF s = new System.Drawing.SizeF(); s = mGraphics.MeasureString(Text, ((GDIPlusFontWrapper)theFont).Font); GuiLabs.Canvas.Point result = new GuiLabs.Canvas.Point((int)s.Width, (int)s.Height); return(result); }
public void DrawLine(GuiLabs.Canvas.Point p1, GuiLabs.Canvas.Point p2, ILineStyleInfo theStyle) { mGraphics.DrawLine(((GDIPlusLineStyle)theStyle).Pen, p1.X, p1.Y, p2.X, p2.Y); }
public Rect(int x, int y, int width, int height) { Location = new Point(x, y); Size = new Point(width, height); }
public Rect(Rect r) { Location = new Point(r.Location); Size = new Point(r.Size); }
public Rect(System.Drawing.Rectangle r) { Location = new Point(r.Left, r.Top); Size = new Point(r.Width, r.Height); }
public void Set(Point location, Point size) { this.Location.Set(location); this.Size.Set(size); }
public bool HitTest(Point HitPoint) { return HitTest(HitPoint.X, HitPoint.Y); }
public Rect() { Location = new Point(0, 0); Size = new Point(0, 0); }
public static Point operator -(Point p1, int i) { Point newPoint = new Point(p1.mx - i, p1.my - i); return newPoint; }
public void Add(Point p) { Add(p.X, p.Y); }
public static Point operator -(Point p1, Point p2) { Point newPoint = new Point(p1.X - p2.X, p1.Y - p2.Y); return newPoint; }
public static Point operator +(Point p1, int i) { Point newPoint = new Point(p1.X + i, p1.Y + i); return newPoint; }
public Point(Point CloneFrom) { X = CloneFrom.X; Y = CloneFrom.Y; }
public void Set(Point p) { Set(p.X, p.Y); }
public GuiLabs.Canvas.Point StringSize(string Text, IFontInfo theFont) { System.Drawing.SizeF s = new System.Drawing.SizeF(); s = mGraphics.MeasureString(Text, ((GDIPlusFontWrapper)theFont).Font); GuiLabs.Canvas.Point result = new GuiLabs.Canvas.Point((int)s.Width, (int)s.Height); return result; }