Exemplo n.º 1
0
Arquivo: Node.cs Projeto: dzamkov/DUIP
        public Node(Context WorldInputContext, Disposable<Content> Content, Block Block, Point Position, Point Velocity)
        {
            this._Content = Content;
            this._Block = Block;
            this._Position = Position;
            this._Velocity = Velocity;
            this._Layout = this._Block.Object.CreateLayout(null, SizeRange, out this._Size);

            this._InputContext = new _NodeInputContext(this, WorldInputContext);
            this._Layout.Link(this._InputContext);
        }
Exemplo n.º 2
0
Arquivo: Node.cs Projeto: dzamkov/DUIP
        public Node(Context WorldInputContext, Disposable<Content> Content, Block Block, Layout Layout, Point Size, Point Position, Point Velocity)
        {
            this._Content = Content;
            this._Block = Block;
            this._Position = Position;
            this._Velocity = Velocity;
            this._Layout = Layout;
            this._Size = Size;

            this._InputContext = new _NodeInputContext(this, WorldInputContext);
            this._Layout.Link(this._InputContext);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Creates a block that displays a collection of named properties.
        /// </summary>
        public Block PropertyBlock(List<KeyValuePair<string, Block>> Properties)
        {
            Block[,] cells = new Block[2, Properties.Count];
            for (int t = 0; t < Properties.Count; t++)
            {
                var prop = Properties[t];
                cells[0, t] = this.TextBlock(prop.Key);
                cells[1, t] = prop.Value;
            }

            return new GridBlock(cells, new Border(0.02, Color.RGB(0.2, 0.2, 0.2)));
        }
Exemplo n.º 4
0
Arquivo: Size.cs Projeto: dzamkov/DUIP
 public SizeBlock(Rectangle LimitSizeRange, Block Inner)
 {
     this.LimitSizeRange = LimitSizeRange;
     this.Inner = Inner;
 }
Exemplo n.º 5
0
 public BackgroundBlock(Color Color, Block Inner)
 {
     this._Color = Color;
     this.Inner = Inner;
 }
Exemplo n.º 6
0
 public MarginBlock(Compass<double> Margin, Block Inner)
 {
     this.Margin = Margin;
     this.Inner = Inner;
 }
Exemplo n.º 7
0
 public BorderBlock(Border Border, Block Inner)
 {
     this.Border = Border;
     this.Inner = Inner;
 }
Exemplo n.º 8
0
Arquivo: Grid.cs Projeto: dzamkov/DUIP
 public GridBlock(Block[,] Cells, Border Seperator)
 {
     this.Cells = Cells;
     this.Seperator = Seperator;
 }