-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Expand file tree
/
Copy pathNativeMethodWrapper.cs
More file actions
47 lines (39 loc) · 1.6 KB
/
NativeMethodWrapper.cs
File metadata and controls
47 lines (39 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// 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;
namespace CefSharp
{
/// <summary>
/// Native static methods for low level operations, memory copy
/// Avoids having to P/Invoke as we can call the C++ API directly.
/// </summary>
public static class NativeMethodWrapper
{
public static void MemoryCopy(IntPtr dest, IntPtr src, int numberOfBytes)
{
CefSharp.Core.NativeMethodWrapper.MemoryCopy(dest, src, numberOfBytes);
}
public static bool IsFocused(IntPtr handle)
{
return CefSharp.Core.NativeMethodWrapper.IsFocused(handle);
}
public static void SetWindowPosition(IntPtr handle, int x, int y, int width, int height)
{
CefSharp.Core.NativeMethodWrapper.SetWindowPosition(handle, x, y, width, height);
}
public static void SetWindowParent(IntPtr child, IntPtr newParent)
{
CefSharp.Core.NativeMethodWrapper.SetWindowParent(child, newParent);
}
public static void RemoveExNoActivateStyle(IntPtr browserHwnd)
{
CefSharp.Core.NativeMethodWrapper.RemoveExNoActivateStyle(browserHwnd);
}
public static IntPtr LoadCursorFromLibCef(int resourceIdentifier)
{
return CefSharp.Core.NativeMethodWrapper.LoadCursorFromLibCef(resourceIdentifier);
}
}
}