GDI binding for .NET, implementing Windows-specific GDI functionality.
Binds functions and definitions in gdi32.dll.
コード例 #1
0
ファイル: Wgl.cs プロジェクト: sinclairzx81/vector-cs
 int wglChoosePixelFormat(IntPtr hDc, ref Gdi.PIXELFORMATDESCRIPTOR pPfd)
 {
     unsafe
     {
         fixed (Gdi.PIXELFORMATDESCRIPTOR* pPfd_ptr = &pPfd)
         {
             return Delegates.wglChoosePixelFormat((IntPtr)hDc, (Gdi.PIXELFORMATDESCRIPTOR*)pPfd_ptr);
         }
     }
 }
コード例 #2
0
ファイル: Wgl.cs プロジェクト: sinclairzx81/vector-cs
 int wglDescribePixelFormat(IntPtr hdc, int ipfd, UInt32 cjpfd, Gdi.PIXELFORMATDESCRIPTOR[] ppfd)
 {
     unsafe
     {
         fixed (Gdi.PIXELFORMATDESCRIPTOR* ppfd_ptr = ppfd)
         {
             return Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (Gdi.PIXELFORMATDESCRIPTOR*)ppfd_ptr);
         }
     }
 }
コード例 #3
0
ファイル: WglCore.cs プロジェクト: sinclairzx81/vector-cs
 internal extern static unsafe Boolean UseFontOutlinesW(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, Gdi.GLYPHMETRICSFLOAT* glyphMetrics);
コード例 #4
0
ファイル: WglCore.cs プロジェクト: sinclairzx81/vector-cs
 internal extern static unsafe Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, UInt32 nBytes, Gdi.LAYERPLANEDESCRIPTOR* plpd);
コード例 #5
0
ファイル: WglCore.cs プロジェクト: sinclairzx81/vector-cs
 internal extern static unsafe Boolean SetPixelFormat(IntPtr hdc, int ipfd, Gdi.PIXELFORMATDESCRIPTOR* ppfd);
コード例 #6
0
ファイル: WglCore.cs プロジェクト: sinclairzx81/vector-cs
 internal extern static unsafe int DescribePixelFormat(IntPtr hdc, int ipfd, UInt32 cjpfd, Gdi.PIXELFORMATDESCRIPTOR* ppfd);
コード例 #7
0
ファイル: WglCore.cs プロジェクト: sinclairzx81/vector-cs
 internal extern static unsafe int ChoosePixelFormat(IntPtr hDc, Gdi.PIXELFORMATDESCRIPTOR* pPfd);
コード例 #8
0
ファイル: Wgl.cs プロジェクト: sinclairzx81/vector-cs
 Boolean wglUseFontOutlinesW(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, ref Gdi.GLYPHMETRICSFLOAT glyphMetrics)
 {
     unsafe
     {
         fixed (Gdi.GLYPHMETRICSFLOAT* glyphMetrics_ptr = &glyphMetrics)
         {
             return Delegates.wglUseFontOutlinesW((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase, (float)thickness, (float)deviation, (Int32)fontMode, (Gdi.GLYPHMETRICSFLOAT*)glyphMetrics_ptr);
         }
     }
 }
コード例 #9
0
ファイル: Wgl.cs プロジェクト: sinclairzx81/vector-cs
 Boolean wglDescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, Int32 nBytes, ref Gdi.LAYERPLANEDESCRIPTOR plpd)
 {
     unsafe
     {
         fixed (Gdi.LAYERPLANEDESCRIPTOR* plpd_ptr = &plpd)
         {
             return Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (Gdi.LAYERPLANEDESCRIPTOR*)plpd_ptr);
         }
     }
 }
コード例 #10
0
ファイル: Wgl.cs プロジェクト: sinclairzx81/vector-cs
 Boolean wglSetPixelFormat(IntPtr hdc, int ipfd, ref Gdi.PIXELFORMATDESCRIPTOR ppfd)
 {
     unsafe
     {
         fixed (Gdi.PIXELFORMATDESCRIPTOR* ppfd_ptr = &ppfd)
         {
             return Delegates.wglSetPixelFormat((IntPtr)hdc, (int)ipfd, (Gdi.PIXELFORMATDESCRIPTOR*)ppfd_ptr);
         }
     }
 }
コード例 #11
0
ファイル: User.cs プロジェクト: sinclairzx81/vector-cs
 public static extern bool EnumDisplaySettings(string deviceName, int modeNumber, out Gdi.DEVMODE devMode);
コード例 #12
0
ファイル: User.cs プロジェクト: sinclairzx81/vector-cs
 public static extern int ChangeDisplaySettings(ref Gdi.DEVMODE devMode, int flags);