Files
lserp_cs_5.0/插件库/Cef3.24/Structs/CefDraggableRegion.cs
T
2026-07-10 15:25:05 +08:00

34 lines
884 B
C#

namespace Cef3
{
using System;
using System.Collections.Generic;
using System.Text;
using Cef3.Interop;
public sealed class CefDraggableRegion
{
internal static unsafe CefDraggableRegion FromNative(cef_draggable_region_t* ptr)
{
return new CefDraggableRegion(ptr);
}
private readonly CefRectangle _bounds;
private readonly bool _draggable;
private unsafe CefDraggableRegion(cef_draggable_region_t* ptr)
{
_bounds = new CefRectangle(
ptr->bounds.x,
ptr->bounds.y,
ptr->bounds.width,
ptr->bounds.height
);
_draggable = ptr->draggable != 0;
}
public CefRectangle Bounds { get { return _bounds; } }
public bool Draggable { get { return _draggable; } }
}
}