// Copyright © 2020 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.
//NOTE:Classes in the CefSharp.Core namespace have been hidden from intellisnse so users don't use them directly
using System;
using CefSharp.Enums;
using CefSharp.Structs;
namespace CefSharp
{
///
public class WindowInfo : IWindowInfo
{
private CefSharp.Core.WindowInfo windowInfo = new CefSharp.Core.WindowInfo();
///
public int X
{
get { return windowInfo.X; }
set { windowInfo.X = value; }
}
///
public int Y
{
get { return windowInfo.Y; }
set { windowInfo.Y = value; }
}
///
public int Width
{
get { return windowInfo.Width; }
set { windowInfo.Width = value; }
}
///
public int Height
{
get { return windowInfo.Height; }
set { windowInfo.Height = value; }
}
///
public uint Style
{
get { return windowInfo.Style; }
set { windowInfo.Style = value; }
}
///
public uint ExStyle
{
get { return windowInfo.ExStyle; }
set { windowInfo.ExStyle = value; }
}
///
public IntPtr ParentWindowHandle
{
get { return windowInfo.ParentWindowHandle; }
set { windowInfo.ParentWindowHandle = value; }
}
///
public bool WindowlessRenderingEnabled
{
get { return windowInfo.WindowlessRenderingEnabled; }
set { windowInfo.WindowlessRenderingEnabled = value; }
}
///
public bool SharedTextureEnabled
{
get { return windowInfo.SharedTextureEnabled; }
set { windowInfo.SharedTextureEnabled = value; }
}
///
public bool ExternalBeginFrameEnabled
{
get { return windowInfo.ExternalBeginFrameEnabled; }
set { windowInfo.ExternalBeginFrameEnabled = value; }
}
///
public IntPtr WindowHandle
{
get { return windowInfo.WindowHandle; }
set { windowInfo.WindowHandle = value; }
}
///
public string WindowName
{
get { return windowInfo.WindowName; }
set { windowInfo.WindowName = value; }
}
///
public CefRuntimeStyle RuntimeStyle
{
get { return windowInfo.RuntimeStyle; }
set { windowInfo.RuntimeStyle = value; }
}
///
public void Dispose()
{
windowInfo.Dispose();
}
///
public void SetAsChild(IntPtr parentHandle)
{
windowInfo.SetAsChild(parentHandle);
}
///
public void SetAsChild(IntPtr parentHandle, Rect windowBounds)
{
windowInfo.SetAsChild(parentHandle, windowBounds);
}
///
public void SetAsChild(IntPtr parentHandle, int left, int top, int right, int bottom)
{
windowInfo.SetAsChild(parentHandle, left, top, right, bottom);
}
///
public void SetAsPopup(IntPtr parentHandle, string windowName)
{
windowInfo.SetAsPopup(parentHandle, windowName);
}
///
public void SetAsWindowless(IntPtr parentHandle)
{
windowInfo.SetAsWindowless(parentHandle);
}
///
/// Create a new instance
///
/// WindowInfo
public static IWindowInfo Create()
{
return new CefSharp.Core.WindowInfo();
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public IWindowInfo UnWrap()
{
return windowInfo;
}
}
}