Exemple #1
0
        internal static Rect_StructInternal ToInternal(Rect _external_struct)
        {
            var _internal_struct = new Rect_StructInternal();

            _internal_struct.X = _external_struct.X;
            _internal_struct.Y = _external_struct.Y;
            _internal_struct.W = _external_struct.W;
            _internal_struct.H = _external_struct.H;

            return(_internal_struct);
        }
Exemple #2
0
        internal static Rect ToManaged(Rect_StructInternal _internal_struct)
        {
            var _external_struct = new Rect();

            _external_struct.X = _internal_struct.X;
            _external_struct.Y = _internal_struct.Y;
            _external_struct.W = _internal_struct.W;
            _external_struct.H = _internal_struct.H;

            return(_external_struct);
        }