mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 08:15:38 +00:00
fbe180d742
New properties on Path is lazy evaluated. Only reading is supported.
29 lines
478 B
C#
29 lines
478 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Cairo
|
|
{
|
|
[StructLayout(LayoutKind.Explicit)]
|
|
public struct PathData
|
|
{
|
|
[FieldOffset(0)]
|
|
public PathDataHeader Header;
|
|
[FieldOffset(0)]
|
|
public PathDataPoint Point;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public struct PathDataHeader
|
|
{
|
|
public PathDataType Type;
|
|
public int Length;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public struct PathDataPoint
|
|
{
|
|
public double X;
|
|
public double Y;
|
|
}
|
|
}
|