29 references to R2_MODE
System.Private.Windows.Core (5)
Windows.Win32.PInvokeCore.GDI32.dll.g.cs (1)
850
internal static extern int SetROP2(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.
R2_MODE
rop2);
Windows\Win32\Graphics\Gdi\SetRop2Scope.cs (4)
22
private readonly
R2_MODE
_previousRop;
26
/// Selects <paramref name="rop2"/> into the given <paramref name="hdc"/> using <see cref="PInvokeCore.SetROP2(HDC,
R2_MODE
)"/>.
28
public SetRop2Scope(HDC hdc,
R2_MODE
rop2)
30
_previousRop = (
R2_MODE
)PInvokeCore.SetROP2(hdc, rop2);
System.Windows.Forms (10)
System\Windows\Forms\Rendering\ControlPaint.cs (9)
1812
R2_MODE
rop2;
1817
rop2 =
R2_MODE
.R2_NOTXORPEN;
1822
rop2 =
R2_MODE
.R2_XORPEN;
1851
R2_MODE
rop2 = (
R2_MODE
)GetColorRop(backColor, (int)
R2_MODE
.R2_NOTXORPEN, (int)
R2_MODE
.R2_XORPEN);
2101
R2_MODE
rop2 =
R2_MODE
.R2_NOT;
System\Windows\Forms\Rendering\ScreenDcCache.cs (1)
110
Debug.Assert(PInvoke.GetROP2(hdc) ==
R2_MODE
.R2_COPYPEN);
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\OleDragDropHandler.cs (3)
423
R2_MODE
rop2;
428
rop2 =
R2_MODE
.R2_NOTXORPEN;
433
rop2 =
R2_MODE
.R2_XORPEN;
System.Windows.Forms.Primitives (3)
System\Windows\Forms\DeviceContextExtensions.cs (2)
34
using SetRop2Scope ropScope = new(hdc,
R2_MODE
.R2_COPYPEN);
84
using SetRop2Scope ropScope = new(hdc,
R2_MODE
.R2_COPYPEN);
Windows.Win32.PInvoke.GDI32.dll.g.cs (1)
351
internal static extern winmdroot.Graphics.Gdi.
R2_MODE
GetROP2(winmdroot.Graphics.Gdi.HDC hdc);
System.Windows.Forms.Primitives.TestUtilities (7)
DeviceContextState.cs (2)
55
public
R2_MODE
Rop2Mode { get => _currentState.Rop2Mode; set => _currentState.Rop2Mode = value; }
72
public
R2_MODE
Rop2Mode { get; set; }
Metafiles\EmfRecord.cs (2)
52
public EMRENUMRECORD<
R2_MODE
>* SetROP2Record
53
=> Type == ENHANCED_METAFILE_RECORD_TYPE.EMR_SETROP2 ? (EMRENUMRECORD<
R2_MODE
>*)_lpmr : null;
Metafiles\Validators\Rop2Validator.cs (2)
10
private readonly
R2_MODE
_rop2Mode;
11
public Rop2Validator(
R2_MODE
rop2Mode) => _rop2Mode = rop2Mode;
Metafiles\Validators\State.cs (1)
25
internal static IStateValidator Rop2(
R2_MODE
rop2Mode) => new Rop2Validator(rop2Mode);
System.Windows.Forms.Tests (1)
System\Windows\Forms\ButtonRenderingTests.cs (1)
248
State.Rop2(
R2_MODE
.R2_COPYPEN)));