コード例 #1
0
ファイル: Widget.cs プロジェクト: giusdp/WForest
 /// <summary>
 /// Creates a Widget without a parent. The widget will be a root of a new tree.
 /// </summary>
 /// <param name="space"></param>
 public Widget(RectangleF space)
 {
     Space              = space;
     Margins            = new MarginValues();
     Color              = Color.White;
     Props              = new PropCollection();
     Children           = new List <IWidget>();
     CurrentInteraction = Interaction.Untouched;
     PostDrawActions    = new List <Action <IRenderer> >();
 }
コード例 #2
0
 public Margin(int marginLeft, int marginRight, int marginTop, int marginBottom)
 {
     _marginValues = new MarginValues(marginLeft, marginRight, marginTop, marginBottom);
 }