[NUI] Interops for accessibility (#2277)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / Common / StringToVoidSignal.cs
1 /*
2  * Copyright(c) 2021 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.Diagnostics;
19 using System;
20 using System.Drawing;
21
22 namespace Tizen.NUI
23 {
24     using global::System;
25     using global::System.ComponentModel;
26     using global::System.Runtime.InteropServices;
27     using Tizen.NUI.BaseComponents;
28
29     [EditorBrowsable(EditorBrowsableState.Never)]
30     public class StringToVoidSignal : Disposable
31     {
32         [EditorBrowsable(EditorBrowsableState.Never)]
33         internal StringToVoidSignal(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
34         {
35         }
36
37         [EditorBrowsable(EditorBrowsableState.Never)]
38         static internal string ConvertParam1(global::System.IntPtr data) {
39             string result = Interop.StringToVoidSignal.ConvertParam1(data);
40             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
41             return result;
42         }
43
44         [EditorBrowsable(EditorBrowsableState.Never)]
45         protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
46         {
47             Interop.StringToVoidSignal.Delete(swigCPtr);
48         }
49
50         [EditorBrowsable(EditorBrowsableState.Never)]
51         public StringToVoidSignal() : this(Interop.StringToVoidSignal.New(), true)
52         {
53             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
54         }
55
56         [EditorBrowsable(EditorBrowsableState.Never)]
57         public bool Empty()
58         {
59             bool ret = Interop.StringToVoidSignal.Empty(SwigCPtr);
60             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
61             return ret;
62         }
63
64         [EditorBrowsable(EditorBrowsableState.Never)]
65         public uint GetConnectionCount()
66         {
67             uint ret = Interop.StringToVoidSignal.GetConnectionCount(SwigCPtr);
68             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
69             return ret;
70         }
71
72         [EditorBrowsable(EditorBrowsableState.Never)]
73         public void Connect(System.Delegate func)
74         {
75             System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
76             {
77                 Interop.StringToVoidSignal.Connect(SwigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
78                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
79             }
80         }
81
82         [EditorBrowsable(EditorBrowsableState.Never)]
83         public void Disconnect(System.Delegate func)
84         {
85             System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
86             {
87                 Interop.StringToVoidSignal.Disconnect(SwigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
88                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
89             }
90         }
91
92         [EditorBrowsable(EditorBrowsableState.Never)]
93         public void Emit()
94         {
95             Interop.StringToVoidSignal.Emit(SwigCPtr);
96             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
97         }
98     }
99 }
100