9 instantiations of HGDIOBJ
System.Private.Windows.Core (9)
_generated\100\Windows.Win32.HBITMAP.g.cs (1)
61
public static implicit operator HGDIOBJ(HBITMAP value) => new
HGDIOBJ
(value.Value);
_generated\101\Windows.Win32.HBRUSH.g.cs (1)
61
public static implicit operator HGDIOBJ(HBRUSH value) => new
HGDIOBJ
(value.Value);
_generated\107\Windows.Win32.HFONT.g.cs (1)
61
public static implicit operator HGDIOBJ(HFONT value) => new
HGDIOBJ
(value.Value);
_generated\108\Windows.Win32.HGDIOBJ.g.cs (3)
41
public static explicit operator HGDIOBJ(void* value) => new
HGDIOBJ
(value);
57
public static explicit operator HGDIOBJ(IntPtr value) => new
HGDIOBJ
((void*)value.ToPointer());
59
public static explicit operator HGDIOBJ(UIntPtr value) => new
HGDIOBJ
((void*)value.ToPointer());
_generated\117\Windows.Win32.HPALETTE.g.cs (1)
61
public static implicit operator HGDIOBJ(HPALETTE value) => new
HGDIOBJ
(value.Value);
_generated\118\Windows.Win32.HPEN.g.cs (1)
61
public static implicit operator HGDIOBJ(HPEN value) => new
HGDIOBJ
(value.Value);
_generated\121\Windows.Win32.HRGN.g.cs (1)
61
public static implicit operator HGDIOBJ(HRGN value) => new
HGDIOBJ
(value.Value);
66 references to HGDIOBJ
System.Drawing.Common (1)
System\Drawing\Font.cs (1)
551
PInvokeCore.GetObject((
HGDIOBJ
)hfont, out LOGFONT logFont);
System.Private.Windows.Core (47)
_generated\100\Windows.Win32.HBITMAP.g.cs (1)
61
public static implicit operator
HGDIOBJ
(HBITMAP value) => new HGDIOBJ(value.Value);
_generated\101\Windows.Win32.HBRUSH.g.cs (1)
61
public static implicit operator
HGDIOBJ
(HBRUSH value) => new HGDIOBJ(value.Value);
_generated\107\Windows.Win32.HFONT.g.cs (1)
61
public static implicit operator
HGDIOBJ
(HFONT value) => new HGDIOBJ(value.Value);
_generated\108\Windows.Win32.HGDIOBJ.g.cs (13)
25
: IEquatable<
HGDIOBJ
>
35
internal static
HGDIOBJ
Null => default;
39
public static implicit operator void*(
HGDIOBJ
value) => value.Value;
41
public static explicit operator
HGDIOBJ
(void* value) => new HGDIOBJ(value);
43
public static bool operator ==(
HGDIOBJ
left,
HGDIOBJ
right) => left.Value == right.Value;
45
public static bool operator !=(
HGDIOBJ
left,
HGDIOBJ
right) => !(left == right);
47
public bool Equals(
HGDIOBJ
other) => this.Value == other.Value;
49
public override bool Equals(object obj) => obj is
HGDIOBJ
other && this.Equals(other);
55
public static implicit operator IntPtr(
HGDIOBJ
value) => new IntPtr(value.Value);
57
public static explicit operator
HGDIOBJ
(IntPtr value) => new HGDIOBJ((void*)value.ToPointer());
59
public static explicit operator
HGDIOBJ
(UIntPtr value) => new HGDIOBJ((void*)value.ToPointer());
_generated\117\Windows.Win32.HPALETTE.g.cs (1)
61
public static implicit operator
HGDIOBJ
(HPALETTE value) => new HGDIOBJ(value.Value);
_generated\118\Windows.Win32.HPEN.g.cs (1)
61
public static implicit operator
HGDIOBJ
(HPEN value) => new HGDIOBJ(value.Value);
_generated\121\Windows.Win32.HRGN.g.cs (1)
61
public static implicit operator
HGDIOBJ
(HRGN value) => new HGDIOBJ(value.Value);
_generated\195\Windows.Win32.PInvokeCore.GDI32.dll.g.cs (6)
94
internal static extern winmdroot.Foundation.BOOL DeleteObject(winmdroot.Graphics.Gdi.
HGDIOBJ
ho);
488
internal static extern unsafe int GetObject(winmdroot.Graphics.Gdi.
HGDIOBJ
h, int c, [Optional] void* pv);
501
internal static extern uint GetObjectType(winmdroot.Graphics.Gdi.
HGDIOBJ
h);
553
internal static extern winmdroot.Graphics.Gdi.
HGDIOBJ
GetStockObject(winmdroot.Graphics.Gdi.GET_STOCK_OBJECT_FLAGS i);
776
internal static extern winmdroot.Graphics.Gdi.
HGDIOBJ
SelectObject(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.
HGDIOBJ
h);
_generated\99\Windows.Win32.HANDLETABLE.g.cs (2)
30
internal global::Windows.Win32.VariableLengthInlineArray<winmdroot.Graphics.Gdi.
HGDIOBJ
> objectHandle;
37
v +=checked((count - 1) * sizeof(winmdroot.Graphics.Gdi.
HGDIOBJ
));
Windows\Win32\Graphics\Gdi\CreateBitmapScope.cs (1)
37
public static implicit operator
HGDIOBJ
(in CreateBitmapScope scope) => scope.HBITMAP;
Windows\Win32\Graphics\Gdi\CreateBrushScope.cs (1)
39
public static implicit operator
HGDIOBJ
(in CreateBrushScope scope) => scope.HBRUSH;
Windows\Win32\Graphics\Gdi\CreateDcScope.cs (2)
53
public static unsafe implicit operator
HGDIOBJ
(in CreateDcScope scope) => (
HGDIOBJ
)(scope.HDC.Value);
Windows\Win32\Graphics\Gdi\CreatePenScope.cs (1)
33
public static unsafe implicit operator
HGDIOBJ
(in CreatePenScope scope) => scope.HPEN;
Windows\Win32\Graphics\Gdi\HGDIOBJ.cs (5)
8
public static implicit operator
HGDIOBJ
(HDC value) => (
HGDIOBJ
)value.Value;
10
public static explicit operator HFONT(
HGDIOBJ
value) => (HFONT)value.Value;
11
public static explicit operator HBRUSH(
HGDIOBJ
value) => (HBRUSH)value.Value;
12
public static explicit operator HBITMAP(
HGDIOBJ
value) => (HBITMAP)value.Value;
Windows\Win32\Graphics\Gdi\ObjectScope.cs (3)
21
public
HGDIOBJ
HGDIOBJ { get; }
24
public ObjectScope(
HGDIOBJ
@object) => HGDIOBJ = @object;
26
public static implicit operator
HGDIOBJ
(in ObjectScope objectScope) => objectScope.HGDIOBJ;
Windows\Win32\Graphics\Gdi\SelectObjectScope.cs (3)
23
public
HGDIOBJ
PreviousObject { get; }
27
/// <see cref="PInvokeCore.SelectObject(HDC,
HGDIOBJ
)"/>.
29
public SelectObjectScope(HDC hdc,
HGDIOBJ
@object)
Windows\Win32\PInvokeCore.GetObject.cs (2)
8
/// <inheritdoc cref="GetObject(
HGDIOBJ
,int,void*)"/>
9
public static unsafe bool GetObject<T>(
HGDIOBJ
h, out T @object) where T : unmanaged
Windows\Win32\UI\WindowsAndMessaging\ICONINFO.cs (2)
12
PInvokeCore.DeleteObject((
HGDIOBJ
)hbmMask.Value);
18
PInvokeCore.DeleteObject((
HGDIOBJ
)hbmColor.Value);
System.Windows.Forms (12)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
5705
HGDIOBJ
saveBrush = PInvokeCore.SelectObject(dc, halftone);
5724
HGDIOBJ
saveBrush = PInvokeCore.SelectObject(dc, halftone);
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (2)
167
PInvokeCore.DeleteObject((
HGDIOBJ
)hBitmap);
168
PInvokeCore.DeleteObject((
HGDIOBJ
)hMask);
System\Windows\Forms\Controls\ToolStrips\CachedItemHdcInfo.cs (1)
35
HGDIOBJ
oldBitmap = PInvokeCore.SelectObject(_cachedItemHDC, _cachedItemBitmap);
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (2)
104
(state & STATE_HOT) != 0 ? (
HGDIOBJ
)Parent!.FontHandle : default);
262
HGDIOBJ
hbrushOld = PInvokeCore.SelectObject(dc, _hbrushDither);
System\Windows\Forms\Rendering\ControlPaint.cs (5)
241
HGDIOBJ
previousBitmap = PInvokeCore.SelectObject(dc, hbitmap);
338
using SelectObjectScope sourceBitmapSelection = new(sourceDC, (
HGDIOBJ
)monochromeMask);
339
using SelectObjectScope targetBitmapSelection = new(targetDC, (
HGDIOBJ
)colorMask.Value);
1833
FrameStyle.Dashed => (
HGDIOBJ
)PInvokeCore.CreatePen(PEN_STYLE.PS_DOT, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(backColor)).Value,
1834
FrameStyle.Thick => (
HGDIOBJ
)PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 2, (COLORREF)(uint)ColorTranslator.ToWin32(backColor)).Value,
System.Windows.Forms.Primitives (6)
_generated\414\Windows.Win32.PInvoke.GDI32.dll.g.cs (3)
257
internal static winmdroot.Graphics.Gdi.
HGDIOBJ
GetCurrentObject(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.OBJ_TYPE type)
259
winmdroot.Graphics.Gdi.
HGDIOBJ
__retVal = LocalExternFunction(hdc, (uint)type);
263
static extern winmdroot.Graphics.Gdi.
HGDIOBJ
LocalExternFunction(winmdroot.Graphics.Gdi.HDC hdc, uint type);
System\Windows\Forms\DeviceContextExtensions.cs (3)
86
using SelectObjectScope selection = new(hdc, (
HGDIOBJ
)hpen.Value);
143
using var penSelection = pen.IsNull ? default : new SelectObjectScope(hdc, (
HGDIOBJ
)pen.Value);
144
using var brushSelection = brush.IsNull ? default : new SelectObjectScope(hdc, (
HGDIOBJ
)brush.Value);