34 lines
884 B
C#
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; } }
|
|
}
|
|
}
|