示例#1
0
文件: Node.cs 项目: 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);
        }
示例#2
0
文件: Node.cs 项目: 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);
        }
示例#3
0
文件: Theme.cs 项目: dzamkov/DUIP
        /// <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)));
        }
示例#4
0
文件: Size.cs 项目: dzamkov/DUIP
 public SizeBlock(Rectangle LimitSizeRange, Block Inner)
 {
     this.LimitSizeRange = LimitSizeRange;
     this.Inner = Inner;
 }
示例#5
0
 public BackgroundBlock(Color Color, Block Inner)
 {
     this._Color = Color;
     this.Inner = Inner;
 }
示例#6
0
文件: Margin.cs 项目: dzamkov/DUIP
 public MarginBlock(Compass<double> Margin, Block Inner)
 {
     this.Margin = Margin;
     this.Inner = Inner;
 }
示例#7
0
文件: Border.cs 项目: dzamkov/DUIP
 public BorderBlock(Border Border, Block Inner)
 {
     this.Border = Border;
     this.Inner = Inner;
 }
示例#8
0
文件: Grid.cs 项目: dzamkov/DUIP
 public GridBlock(Block[,] Cells, Border Seperator)
 {
     this.Cells = Cells;
     this.Seperator = Seperator;
 }