2 * Copyright (c) 2023 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 using System.Runtime.InteropServices;
19 using Tizen.NUI.Physics2D.Chipmunk;
21 namespace Tizen.NUI.Physics2D
23 internal static partial class Interop
25 internal static class Actor
27 [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_PhysicsActor_New")]
28 internal static extern global::System.IntPtr PhysicsActorNew(HandleRef actor, IntPtr Body, HandleRef adaptor);
30 [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_new_PhysicsActor__SWIG_1")]
31 internal static extern global::System.IntPtr NewPhysicsActor(HandleRef rhs);
33 [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_delete_PhysicsActor")]
34 internal static extern void DeletePhysicsActor(HandleRef handle);
36 [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_PhysicsActor_Assign")]
37 internal static extern global::System.IntPtr Assign(HandleRef destination, HandleRef source);
39 [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_PhysicsActor_GetId")]
40 internal static extern uint GetId(HandleRef handle);
42 [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_PhysicsActor_GetBody")]
43 internal static extern global::System.IntPtr GetBody(HandleRef handle);
45 [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_PhysicsActor_AsyncSetPhysicsPosition")]
46 internal static extern void AsyncSetPhysicsPosition(HandleRef handle, HandleRef position);
48 [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_PhysicsActor_AsyncSetPhysicsRotation")]
49 internal static extern void AsyncSetPhysicsRotation(HandleRef handle, HandleRef rotation);
51 [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_PhysicsActor_GetPhysicsPosition")]
52 internal static extern global::System.IntPtr GetPhysicsPosition(HandleRef handle);
54 [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_PhysicsActor_GetPhysicsRotation")]
55 internal static extern global::System.IntPtr GetPhysicsRotation(HandleRef handle);
57 [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_PhysicsActor_GetActorPosition")]
58 internal static extern global::System.IntPtr GetActorPosition(HandleRef handle);
60 [DllImport(Libraries.Physics2D, EntryPoint = "CSharp_Dali_PhysicsActor_GetActorRotation")]
61 internal static extern global::System.IntPtr GetActorRotation(HandleRef handle);