init lserp cs 5.0

This commit is contained in:
cyf
2026-07-10 15:25:05 +08:00
commit 90f3fda86a
3799 changed files with 976868 additions and 0 deletions
@@ -0,0 +1,55 @@
namespace Cef3
{
using System;
using Cef3.Interop;
using System.Diagnostics;
/// <summary>
/// Structure representing mouse event information.
/// </summary>
public unsafe struct CefMouseEvent
{
private int _x;
private int _y;
private CefEventFlags _modifiers;
public CefMouseEvent(int x, int y, CefEventFlags modifiers)
{
_x = x;
_y = y;
_modifiers = modifiers;
}
internal CefMouseEvent(cef_mouse_event_t* ptr)
{
Debug.Assert(ptr != null);
_x = ptr->x;
_y = ptr->y;
_modifiers = ptr->modifiers;
}
internal cef_mouse_event_t ToNative()
{
return new cef_mouse_event_t(_x, _y, _modifiers);
}
public int X
{
get { return _x; }
set { _x = value; }
}
public int Y
{
get { return _y; }
set { _y = value; }
}
public CefEventFlags Modifiers
{
get { return _modifiers; }
set { _modifiers = value; }
}
}
}