2 * Copyright(c) 2021 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.
21 using global::System.Runtime.InteropServices;
22 internal static partial class Interop
24 internal static partial class TransitionSet
26 [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_TransitionSet")]
27 public static extern IntPtr NewEmpty();
29 [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TransitionSet_New")]
30 public static extern IntPtr New();
32 [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_TransitionSet")]
33 public static extern void Delete(HandleRef transitionSet);
35 [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_TransitionSet_Set")]
36 public static extern IntPtr NewTransitionSet(HandleRef transitionSet);
38 [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TransitionSet_Assign")]
39 public static extern IntPtr Assign(HandleRef destination, HandleRef source);
41 [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TransitionSet_AddTransition")]
42 public static extern void AddTransition(HandleRef transitionSet, HandleRef transition);
44 [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TransitionSet_GetTransitionAt")]
45 public static extern IntPtr GetTransitionAt(HandleRef transitionSet, uint index);
47 [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TransitionSet_GetTransitionCount")]
48 public static extern uint GetTransitionCount(HandleRef transitionSet);
50 [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TransitionSet_Play")]
51 public static extern void Play(HandleRef transitionSet);
53 [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TransitionSet_FinishedSignal")]
54 public static extern IntPtr FinishedSignal(HandleRef nuiTransitionSet);
56 [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TransitionSet_Signal_Empty")]
57 [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
58 public static extern bool TransitionSetFinishedSignalEmpty(HandleRef transitionSet);
60 [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TransitionSet_Signal_GetConnectionCount")]
61 public static extern uint TransitionSetFinishedSignalGetConnectionCount(HandleRef transitionSet);
63 [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TransitionSet_Signal_Connect")]
64 public static extern void TransitionSetFinishedSignalConnect(HandleRef transitionSet, HandleRef func);
66 [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TransitionSet_Signal_Disconnect")]
67 public static extern void TransitionSetFinishedSignalDisconnect(HandleRef transitionSet, HandleRef func);