4 instantiations of HCURSOR
System.Private.Windows.Core (4)
Windows.Win32.HCURSOR.g.cs (3)
41 public static explicit operator HCURSOR(void* value) => new HCURSOR(value); 57 public static explicit operator HCURSOR(IntPtr value) => new HCURSOR((void*)value.ToPointer()); 59 public static explicit operator HCURSOR(UIntPtr value) => new HCURSOR((void*)value.ToPointer());
Windows\Win32\UI\WindowsAndMessaging\HCURSOR.cs (1)
11public static explicit operator HCURSOR(HANDLE handle) => new((nint)handle);
50 references to HCURSOR
System.Private.Windows.Core (26)
Windows.Win32.HCURSOR.g.cs (14)
25 : IEquatable<HCURSOR> 35 internal static HCURSOR Null => default; 39 public static implicit operator void*(HCURSOR value) => value.Value; 41 public static explicit operator HCURSOR(void* value) => new HCURSOR(value); 43 public static bool operator ==(HCURSOR left, HCURSOR right) => left.Value == right.Value; 45 public static bool operator !=(HCURSOR left, HCURSOR right) => !(left == right); 47 public bool Equals(HCURSOR other) => this.Value == other.Value; 49 public override bool Equals(object obj) => obj is HCURSOR other && this.Equals(other); 55 public static implicit operator IntPtr(HCURSOR value) => new IntPtr(value.Value); 57 public static explicit operator HCURSOR(IntPtr value) => new HCURSOR((void*)value.ToPointer()); 59 public static explicit operator HCURSOR(UIntPtr value) => new HCURSOR((void*)value.ToPointer()); 61 public static implicit operator HICON(HCURSOR value) => new HICON(value.Value);
Windows.Win32.PInvokeCore.USER32.dll.g.cs (2)
732 internal static winmdroot.Foundation.BOOL DestroyCursor(winmdroot.UI.WindowsAndMessaging.HCURSOR hCursor) 740 static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.UI.WindowsAndMessaging.HCURSOR hCursor);
Windows\Win32\PInvokeCore.CopyImage.cs (4)
18public static HCURSOR CopyCursor<T>(T hImage, int cx, int cy, IMAGE_FLAGS flags = default) 19where T : IHandle<HCURSOR> 21HCURSOR result = (HCURSOR)CopyImage(hImage.Handle, GDI_IMAGE_TYPE.IMAGE_CURSOR, cx, cy, flags);
Windows\Win32\UI\WindowsAndMessaging\HCURSOR.cs (6)
6internal unsafe partial struct HCURSOR : IHandle<HCURSOR> 8HCURSOR IHandle<HCURSOR>.Handle => this; 9object? IHandle<HCURSOR>.Wrapper => null; 11public static explicit operator HCURSOR(HANDLE handle) => new((nint)handle); 12public static implicit operator HANDLE(HCURSOR handle) => new((nint)handle);
System.Windows.Forms (9)
System\Windows\Forms\Input\Cursor.cs (9)
20public sealed class Cursor : IDisposable, ISerializable, IHandle<HICON>, IHandle<HANDLE>, IHandle<HCURSOR> 25private HCURSOR _handle; 65_handle = (HCURSOR)handle; 147HCURSOR cursor = PInvoke.GetCursor(); 150set => PInvoke.SetCursor(value?._handle ?? HCURSOR.Null); 217HCURSOR IHandle<HCURSOR>.Handle => _handle; 236_handle = HCURSOR.Null; 421_handle = (HCURSOR)PInvokeCore.CopyImage(
System.Windows.Forms.Primitives (11)
Windows.Win32.PInvoke.USER32.dll.g.cs (10)
601 internal static winmdroot.Foundation.BOOL DestroyCursor(winmdroot.UI.WindowsAndMessaging.HCURSOR hCursor) 609 static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.UI.WindowsAndMessaging.HCURSOR hCursor); 1289 internal static extern winmdroot.UI.WindowsAndMessaging.HCURSOR GetCursor(); 2291 internal static unsafe winmdroot.UI.WindowsAndMessaging.HCURSOR LoadCursor(winmdroot.Foundation.HINSTANCE hInstance, string lpCursorName) 2295 winmdroot.UI.WindowsAndMessaging.HCURSOR __result = PInvoke.LoadCursor(hInstance, lpCursorNameLocal); 2318 internal static winmdroot.UI.WindowsAndMessaging.HCURSOR LoadCursor(winmdroot.Foundation.HINSTANCE hInstance, winmdroot.Foundation.PCWSTR lpCursorName) 2321 winmdroot.UI.WindowsAndMessaging.HCURSOR __retVal = LocalExternFunction(hInstance, lpCursorName); 2326 static extern winmdroot.UI.WindowsAndMessaging.HCURSOR LocalExternFunction(winmdroot.Foundation.HINSTANCE hInstance, winmdroot.Foundation.PCWSTR lpCursorName); 3071 internal static extern winmdroot.UI.WindowsAndMessaging.HCURSOR SetCursor(winmdroot.UI.WindowsAndMessaging.HCURSOR hCursor);
Windows.Win32.WNDCLASSW.g.cs (1)
70 internal winmdroot.UI.WindowsAndMessaging.HCURSOR hCursor;
System.Windows.Forms.Primitives.Tests (3)
Interop\Mocks\MockCursor.cs (3)
12private HCURSOR _handle; 31_handle = HCURSOR.Null; 35internal HCURSOR Handle => _handle.IsNull ? throw new ObjectDisposedException(nameof(MockCursor)) : _handle;
System.Windows.Forms.Primitives.TestUtilities (1)
Win32\WindowClass.cs (1)
42HCURSOR cursor = default,