コード例 #1
0
ファイル: Window.cs プロジェクト: osdevk/GoldenC
 public Window(IntPtr hnd, string Title, Cosmos.System.Graphics.Point pos, Cosmos.System.Graphics.Point Size)
 {
     title    = Title;
     handle   = hnd;
     position = pos;
     size     = Size;
 }
コード例 #2
0
 protected UIElement(UIEnvironment env, Point location, Size size, bool drawInCtor = true)
 {
     Environment = env;
     _location   = location;
     _size       = size;
     if (drawInCtor)
     {
         Draw();
     }
 }
コード例 #3
0
 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));
 }
コード例 #4
0
 public abstract void Draw(UIEnvironment canvas, Point location, Size size);
コード例 #5
0
 public sealed override void Draw(UIEnvironment env, Point location, Size size)
 {
     _location = location;
     _size     = size;
     Draw();
 }
コード例 #6
0
 public UIElement(UIEnvironment env, Point location, Size size) : this(env, location, size, true)
 {
 }