Files
cefsharp/CefSharp/IWindowInfo.cs
T
Chris bef5dd37c4 Maintenance - Fixed formatting, file encoding, and copyright year (#2504)
* Applied formatting

* Fixed file encoding + Updated copyright year

* Updated License

* Fixed more file encoding

* Copyright notice now shows the year the file was created
2018-09-10 10:41:13 +10:00

82 lines
3.6 KiB
C#

// Copyright © 2015 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;
namespace CefSharp
{
/// <summary>
/// Class representing window information.
/// </summary>
public interface IWindowInfo : IDisposable
{
/// <summary>
/// X coordinate
/// </summary>
int X { get; set; }
/// <summary>
/// Y coordinate
/// </summary>
int Y { get; set; }
/// <summary>
/// Width
/// </summary>
int Width { get; set; }
/// <summary>
/// Height
/// </summary>
int Height { get; set; }
/// <summary>
/// Window style
/// </summary>
uint Style { get; set; }
/// <summary>
/// Ex window style
/// </summary>
uint ExStyle { get; set; }
/// <summary>
/// Parent window handle
/// </summary>
IntPtr ParentWindowHandle { get; set; }
/// <summary>
/// Set to true to create the browser using windowless (off-screen) rendering.
/// No window will be created for the browser and all rendering will occur via the
/// IRenderHandler interface. The <see cref="ParentWindowHandle"/> value will be used to identify monitor info
/// and to act as the parent window for dialogs, context menus, etc. If |<see cref="ParentWindowHandle"/> is not provided then the main screen monitor will be used and some functionality that requires a parent window may not function correctly.
/// In order to create windowless browsers the CefSettings.WindowlessRenderingEnabled value must be set to true.
/// Transparent painting is enabled by default but can be disabled by setting <see cref="IBrowserSettings.BackgroundColor"/> to an opaque value.
/// </summary>
bool WindowlessRenderingEnabled { get; set; }
/// <summary>
/// Handle for the new browser window. Only used with windowed rendering.
/// </summary>
IntPtr WindowHandle { get; set; }
/// <summary>
/// Create the browser as a child window.
/// </summary>
/// <param name="parentHandle">parent handle</param>
/// <param name="left">left</param>
/// <param name="top">top</param>
/// <param name="right">right</param>
/// <param name="bottom">bottom</param>
void SetAsChild(IntPtr parentHandle, int left, int top, int right, int bottom);
/// <summary>
/// Create the browser as a popup window.
/// </summary>
/// <param name="parentHandle">parent handle</param>
/// <param name="windowName">window name</param>
void SetAsPopup(IntPtr parentHandle, string windowName);
/// <summary>
/// Create the browser using windowless (off-screen) rendering.
/// No window will be created for the browser and all rendering will occur via the CefRenderHandler interface. This window will automatically be transparent unless a colored backgrond is set in the browser settings.
/// </summary>
/// <param name="parentHandle">Value will be used to identify monitor info and to act as the parent window for dialogs, context menus, etc.
/// If not provided then the main screen monitor will be used and some functionality that requires a parent window may not function correctly.
/// In order to create windowless browsers the CefSettings.windowless_rendering_enabled value must be set to true.</param>
void SetAsWindowless(IntPtr parentHandle);
}
}