1eea631b1415060d45b5a27155362e6968b8f359
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / Interop / Interop.WindowData.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
18 using System.Runtime.InteropServices;
19
20 namespace Tizen.NUI
21 {
22     internal static partial class Interop
23     {
24         internal static partial class WindowData
25         {
26             [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_WindowData")]
27             public static extern global::System.IntPtr New();
28
29             [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_WindowData")]
30             public static extern void DeleteWindowData(HandleRef nuiWindowData);
31
32             [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WindowData_SetPositionSize")]
33             public static extern void SetPositionSize(HandleRef nuiWindowData, HandleRef nuiPositionSize);
34
35             [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WindowData_GetPositionSize")]
36             public static extern global::System.IntPtr GetPositionSize(HandleRef nuiWindowData);
37
38             [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WindowData_SetWindowType")]
39             public static extern void SetWindowType(HandleRef nuiWindowData, int nuiWindowType);
40
41             [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WindowData_GetWindowType")]
42             public static extern int GetWindowType(HandleRef nuiWindowData);
43
44             [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WindowData_SetTransparency")]
45             public static extern void SetTransparency(HandleRef nuiWindowData, bool nuiTransparency);
46
47             [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WindowData_GetTransparency")]
48             [return: MarshalAs(UnmanagedType.U1)]
49             public static extern bool GetTransparency(HandleRef nuiWindowData);
50
51             [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WindowData_SetFrontBufferRendering")]
52             public static extern void SetFrontBufferRendering(HandleRef nuiWindowData, bool enable);
53
54             [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WindowData_GetFrontBufferRendering")]
55             [return: MarshalAs(UnmanagedType.U1)]
56             public static extern bool GetFrontBufferRendering(HandleRef nuiWindowData);
57         }
58     }
59 }