4 instantiations of HPALETTE
Microsoft.Private.Windows.Core (4)
Windows.Win32.HPALETTE.g.cs (3)
41 public static explicit operator HPALETTE(void* value) => new HPALETTE(value); 57 public static explicit operator HPALETTE(IntPtr value) => new HPALETTE((void*)value.ToPointer()); 59 public static explicit operator HPALETTE(UIntPtr value) => new HPALETTE((void*)value.ToPointer());
Windows\Win32\System\Ole\OLE_HANDLE.cs (1)
12public static explicit operator HPALETTE(OLE_HANDLE handle) => new((nint)(int)handle.Value);
26 references to HPALETTE
Microsoft.Private.Windows.Core (26)
Windows.Win32.HPALETTE.g.cs (14)
25 : IEquatable<HPALETTE> 35 internal static HPALETTE Null => default; 39 public static implicit operator void*(HPALETTE value) => value.Value; 41 public static explicit operator HPALETTE(void* value) => new HPALETTE(value); 43 public static bool operator ==(HPALETTE left, HPALETTE right) => left.Value == right.Value; 45 public static bool operator !=(HPALETTE left, HPALETTE right) => !(left == right); 47 public bool Equals(HPALETTE other) => this.Value == other.Value; 49 public override bool Equals(object obj) => obj is HPALETTE other && this.Equals(other); 55 public static implicit operator IntPtr(HPALETTE value) => new IntPtr(value.Value); 57 public static explicit operator HPALETTE(IntPtr value) => new HPALETTE((void*)value.ToPointer()); 59 public static explicit operator HPALETTE(UIntPtr value) => new HPALETTE((void*)value.ToPointer()); 61 public static implicit operator HGDIOBJ(HPALETTE value) => new HGDIOBJ(value.Value);
Windows.Win32.PICTDESC.g.cs (1)
63 internal winmdroot.Graphics.Gdi.HPALETTE hpal;
Windows.Win32.PInvokeCore.GDI32.dll.g.cs (5)
487 /// <inheritdoc cref="GetPaletteEntries(winmdroot.Graphics.Gdi.HPALETTE, uint, uint, winmdroot.Graphics.Gdi.PALETTEENTRY*)"/> 489 internal static unsafe uint GetPaletteEntries(winmdroot.Graphics.Gdi.HPALETTE hpal, uint iStart, Span<winmdroot.Graphics.Gdi.PALETTEENTRY> pPalEntries) 512 internal static extern unsafe uint GetPaletteEntries(winmdroot.Graphics.Gdi.HPALETTE hpal, uint iStart, uint cEntries, [Optional] winmdroot.Graphics.Gdi.PALETTEENTRY* pPalEntries); 778 internal static extern winmdroot.Graphics.Gdi.HPALETTE SelectPalette(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HPALETTE hPal, winmdroot.Foundation.BOOL bForceBkgd);
Windows\Win32\Graphics\Gdi\SelectPaletteScope.cs (3)
22public HPALETTE HPALETTE { get; } 24public SelectPaletteScope(HDC hdc, HPALETTE hpalette, bool forceBackground, bool realizePalette) 34public static implicit operator HPALETTE(in SelectPaletteScope paletteScope) => paletteScope.HPALETTE;
Windows\Win32\PInvokeCore.GetPaletteEntries.cs (2)
8/// <inheritdoc cref="GetPaletteEntries(HPALETTE, uint, uint, PALETTEENTRY*)"/> 9public static unsafe uint GetPaletteEntries(HPALETTE hpal, Span<PALETTEENTRY> entries)
Windows\Win32\System\Ole\OLE_HANDLE.cs (1)
12public static explicit operator HPALETTE(OLE_HANDLE handle) => new((nint)(int)handle.Value);