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); }
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); }
/// <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))); }
public SizeBlock(Rectangle LimitSizeRange, Block Inner) { this.LimitSizeRange = LimitSizeRange; this.Inner = Inner; }
public BackgroundBlock(Color Color, Block Inner) { this._Color = Color; this.Inner = Inner; }
public MarginBlock(Compass<double> Margin, Block Inner) { this.Margin = Margin; this.Inner = Inner; }
public BorderBlock(Border Border, Block Inner) { this.Border = Border; this.Inner = Inner; }
public GridBlock(Block[,] Cells, Border Seperator) { this.Cells = Cells; this.Seperator = Seperator; }