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)
11
public 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)
18
public static
HCURSOR
CopyCursor<T>(T hImage, int cx, int cy, IMAGE_FLAGS flags = default)
19
where T : IHandle<
HCURSOR
>
21
HCURSOR
result = (
HCURSOR
)CopyImage(hImage.Handle, GDI_IMAGE_TYPE.IMAGE_CURSOR, cx, cy, flags);
Windows\Win32\UI\WindowsAndMessaging\HCURSOR.cs (6)
6
internal unsafe partial struct HCURSOR : IHandle<
HCURSOR
>
8
HCURSOR
IHandle<
HCURSOR
>.Handle => this;
9
object? IHandle<
HCURSOR
>.Wrapper => null;
11
public static explicit operator
HCURSOR
(HANDLE handle) => new((nint)handle);
12
public static implicit operator HANDLE(
HCURSOR
handle) => new((nint)handle);
System.Windows.Forms (9)
System\Windows\Forms\Input\Cursor.cs (9)
20
public sealed class Cursor : IDisposable, ISerializable, IHandle<HICON>, IHandle<HANDLE>, IHandle<
HCURSOR
>
25
private
HCURSOR
_handle;
65
_handle = (
HCURSOR
)handle;
147
HCURSOR
cursor = PInvoke.GetCursor();
150
set => PInvoke.SetCursor(value?._handle ??
HCURSOR
.Null);
217
HCURSOR
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)
12
private
HCURSOR
_handle;
31
_handle =
HCURSOR
.Null;
35
internal
HCURSOR
Handle => _handle.IsNull ? throw new ObjectDisposedException(nameof(MockCursor)) : _handle;
System.Windows.Forms.Primitives.TestUtilities (1)
Win32\WindowClass.cs (1)
42
HCURSOR
cursor = default,