Files
cefsharp/CefSharp.OffScreen/OnPaintEventArgs.cs
T
2018-09-17 00:46:21 +02:00

41 lines
1.3 KiB
C#

// Copyright © 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;
}
}
}