mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 03:32:37 +00:00
c1b89c62e9
IRenderWebBrowser - Method naming now matches CEF, xmldoc updated to be more accurate CefSharp.Wpf.ChromiumWebBrowser and CefSharp.OffScreen.ChromiumWebBrowser both updated as a result of IRenderWebBrowser changes Should be minimal public API changes, should only require changes for those that are implementing their own rendering, who will have a major rewrite on their hands regardless of this.
41 lines
1.3 KiB
C#
41 lines
1.3 KiB
C#
// Copyright © 2010-2017 The CefSharp Authors. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
using System;
|
|
using CefSharp.Structs;
|
|
|
|
namespace CefSharp
|
|
{
|
|
/// <summary>
|
|
/// Event arguments to the OnPaint event handler.
|
|
/// </summary>
|
|
public class OnPaintEventArgs : EventArgs
|
|
{
|
|
public bool Handled { get; set; }
|
|
public bool IsPopup { get; private set; }
|
|
public int Width { get; private set; }
|
|
public int Height { get; private set; }
|
|
public IntPtr BufferHandle { get; private set; }
|
|
public Rect DirtyRect { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Creates a new OnPaint event arg
|
|
/// </summary>
|
|
/// <param name="isPopup">is popup</param>
|
|
/// <param name="dirtyRect">dirty rect if enabled</param>
|
|
/// <param name="bufferHandle">buffer handle (back buffer)</param>
|
|
/// <param name="width">width</param>
|
|
/// <param name="height">height</param>
|
|
public OnPaintEventArgs(bool isPopup, Rect dirtyRect, IntPtr bufferHandle, int width, int height)
|
|
{
|
|
IsPopup = isPopup;
|
|
DirtyRect = dirtyRect;
|
|
BufferHandle = bufferHandle;
|
|
Width = width;
|
|
Height = height;
|
|
}
|
|
}
|
|
}
|
|
|