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