Пример #1
0
 /// <summary> Create a new Bounding with the given attributes and a parent container. </summary>
 /// <param name="anchorAttribute"> The attribute for the anchor. </param>
 /// <param name="positionAttribute"> The attribute for the position. </param>
 /// <param name="sizeAttribute"> The attribute for the size. </param>
 /// <param name="paddingAttribute"> The attribute for the padding. </param>
 /// <param name="container"> The parent container. </param>
 internal Bounding(XmlAttribute anchorAttribute, XmlAttribute positionAttribute, XmlAttribute sizeAttribute, XmlAttribute paddingAttribute, Rectangle container)
 {
     Anchor              = anchorAttribute.ParseVector2();
     Position            = new GuiPoint(positionAttribute);
     Size                = new GuiPoint(sizeAttribute);
     Padding             = new Padding(paddingAttribute);
     ParentContentBounds = container;
 }