コード例 #1
0
 public NativeBrushContainer(NativeBrushPool pool)
 {
     _pool = pool;
     Brush = (NativeBrush *)Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeBrush))).ToPointer();
     Brush->Reset();
 }
コード例 #2
0
ファイル: NativeBrush.cs プロジェクト: Arlorean/Perspex
 public NativeBrushContainer(NativeBrushPool pool)
 {
     _pool = pool;
     Brush = (NativeBrush*) Marshal.AllocHGlobal(Marshal.SizeOf(typeof (NativeBrush))).ToPointer();
     Brush->Reset();
 }