Bring back some interops
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI.Physics2D / src / internal / interop / Interop.Actor.cs
1 /*
2  * Copyright (c) 2023 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 using System;
18 using System.Runtime.InteropServices;
19 using Tizen.NUI.Physics2D.Chipmunk;
20
21 namespace Tizen.NUI.Physics2D
22 {
23     internal static partial class Interop
24     {
25         internal static class Actor
26         {
27             [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_PhysicsActor_New")]
28             internal static extern global::System.IntPtr PhysicsActorNew(HandleRef actor, IntPtr Body, HandleRef adaptor);
29
30             [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_new_PhysicsActor__SWIG_1")]
31             internal static extern global::System.IntPtr NewPhysicsActor(HandleRef rhs);
32
33             [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_delete_PhysicsActor")]
34             internal static extern void DeletePhysicsActor(HandleRef handle);
35
36             [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_PhysicsActor_Assign")]
37             internal static extern global::System.IntPtr Assign(HandleRef destination, HandleRef source);
38
39             [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_PhysicsActor_GetId")]
40             internal static extern uint GetId(HandleRef handle);
41
42             [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_PhysicsActor_GetBody")]
43             internal static extern global::System.IntPtr GetBody(HandleRef handle);
44
45             [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_PhysicsActor_AsyncSetPhysicsPosition")]
46             internal static extern void AsyncSetPhysicsPosition(HandleRef handle, HandleRef position);
47
48             [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_PhysicsActor_AsyncSetPhysicsRotation")]
49             internal static extern void AsyncSetPhysicsRotation(HandleRef handle, HandleRef rotation);
50
51             [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_PhysicsActor_GetPhysicsPosition")]
52             internal static extern global::System.IntPtr GetPhysicsPosition(HandleRef handle);
53
54             [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_PhysicsActor_GetPhysicsRotation")]
55             internal static extern global::System.IntPtr GetPhysicsRotation(HandleRef handle);
56
57             [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_PhysicsActor_GetActorPosition")]
58             internal static extern global::System.IntPtr GetActorPosition(HandleRef handle);
59
60             [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_PhysicsActor_GetActorRotation")]
61             internal static extern global::System.IntPtr GetActorRotation(HandleRef handle);
62         }
63     }
64 }