2 * Copyright(c) 2019 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 System.ComponentModel;
23 internal class KeyboardResizedSignalType : Disposable
26 internal KeyboardResizedSignalType(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
31 protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
33 Interop.KeyboardResizedSignalType.DeleteKeyboardResizedSignalType(swigCPtr);
37 /// Queries whether there are any connected slots.
39 /// <returns>True if there are any slots connected to the signal</returns>
40 /// <since_tizen> 4 </since_tizen>
43 bool ret = Interop.KeyboardResizedSignalType.Empty(SwigCPtr);
44 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
49 /// Queries the number of slots.
51 /// <returns>The number of slots connected to this signal</returns>
52 /// <since_tizen> 4 </since_tizen>
53 public uint GetConnectionCount()
55 uint ret = Interop.KeyboardResizedSignalType.GetConnectionCount(SwigCPtr);
56 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
61 /// Connects a function.
63 /// <param name="func">The function to connect</param>
64 /// <since_tizen> 4 </since_tizen>
65 public void Connect(System.Delegate func)
67 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
69 Interop.KeyboardResizedSignalType.Connect(SwigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
70 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
75 /// Disconnects a function.
77 /// <param name="func">The function to disconnect</param>
78 /// <since_tizen> 4 </since_tizen>
79 public void Disconnect(System.Delegate func)
81 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
83 Interop.KeyboardResizedSignalType.Disconnect(SwigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
84 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
89 /// Connects a member function.
91 /// <param name="arg">The member function to connect</param>
92 /// <since_tizen> 4 </since_tizen>
93 public void Emit(int arg)
95 Interop.KeyboardResizedSignalType.Emit(SwigCPtr, arg);
96 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
102 /// <since_tizen> 4 </since_tizen>
103 public KeyboardResizedSignalType() : this(Interop.KeyboardResizedSignalType.NewKeyboardResizedSignalType(), true)
105 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();