Beispiel #1
0
        private static void Init(ControlLayoutInfoInternal instance)
        {
            // All fields must be initialized. (except _nextPooled)

            instance._width                 = new LayoutLength(1f, LayoutLengthType.Proportion);
            instance._height                = new LayoutLength(1f, LayoutLengthType.Proportion);
            instance._transformOrigin       = TransformOrigin.LeftTop;
            instance._horizontalAlignment   = HorizontalAlignment.Center;
            instance._verticalAlignment     = VerticalAlignment.Center;
            instance._margin                = default;
            instance._padding               = default;
            instance._renderTransform       = Matrix3.Identity;
            instance._renderTransformOrigin = default;
        }
Beispiel #2
0
 internal ControlLayoutInfo(ControlLayoutInfoInternal l)
 {
     _l = l;
 }