blob: 66aab91c1a427a8721cc144cb3634e222e3d52d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//Copyright GPL2
namespace Rsvg {
using System;
using System.Collections;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential)]
public struct DimensionData {
public int Width;
public int Height;
public double Em;
public double Ex;
public static Rsvg.DimensionData Zero = new Rsvg.DimensionData ();
public static Rsvg.DimensionData New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Rsvg.DimensionData.Zero;
return (Rsvg.DimensionData) Marshal.PtrToStructure (raw, typeof (Rsvg.DimensionData));
}
}
}
|