public Window(IntPtr hnd, string Title, Cosmos.System.Graphics.Point pos, Cosmos.System.Graphics.Point Size) { title = Title; handle = hnd; position = pos; size = Size; }
protected UIElement(UIEnvironment env, Point location, Size size, bool drawInCtor = true) { Environment = env; _location = location; _size = size; if (drawInCtor) { Draw(); } }
public static void Draw(this Drawing drawing, UIEnvironment e, Point loc, int width = 0, int height = 0) { drawing.Draw(e, loc, new Size(width, height)); }
public abstract void Draw(UIEnvironment canvas, Point location, Size size);
public sealed override void Draw(UIEnvironment env, Point location, Size size) { _location = location; _size = size; Draw(); }
public UIElement(UIEnvironment env, Point location, Size size) : this(env, location, size, true) { }