4 instantiations of HCURSOR
Microsoft.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);
25 references to HCURSOR
Microsoft.Private.Windows.Core (25)
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 (1)
645 internal static extern winmdroot.Foundation.BOOL DestroyCursor(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);