forked from Samsung/TizenFX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. PointerConstraintsLock 2. PointerConstraintsUnlock 3. LockedPointerRegionSet 4. LockedPointerCursorPositionHintSet 5. RelativeMoveEvent refer : https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-adaptor/+/296968/ https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-csharp-binder/+/296969/
- Loading branch information
1 parent
8024def
commit ddacfd5
Showing
7 changed files
with
611 additions
and
0 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
src/Tizen.NUI/src/internal/Interop/Interop.MouseReleative.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* Copyright(c) 2023 Samsung Electronics Co., Ltd. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
namespace Tizen.NUI | ||
{ | ||
internal static partial class Interop | ||
{ | ||
internal static partial class MouseRelative | ||
{ | ||
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_MouseRelativeEvent__SWIG_0")] | ||
public static extern global::System.IntPtr NewMouseRelative(int jarg1, uint jarg2, uint jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); | ||
|
||
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_MouseRelativeEvent")] | ||
public static extern void DeleteMouseRelative(global::System.Runtime.InteropServices.HandleRef jarg1); | ||
|
||
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_MouseRelativeEvent_type_get")] | ||
public static extern int TypeGet(global::System.Runtime.InteropServices.HandleRef jarg1); | ||
|
||
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_MouseRelativeEvent_modifiers_get")] | ||
public static extern uint ModifiersGet(global::System.Runtime.InteropServices.HandleRef jarg1); | ||
|
||
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_MouseRelativeEvent_diff_position_get")] | ||
public static extern global::System.IntPtr DiffPositionGet(global::System.Runtime.InteropServices.HandleRef jarg1); | ||
|
||
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_MouseRelativeEvent_unaccelated_position_get")] | ||
public static extern global::System.IntPtr UnaccelatedPositionGet(global::System.Runtime.InteropServices.HandleRef jarg1); | ||
|
||
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_MouseRelativeEvent_timeStamp_get")] | ||
public static extern uint TimeStampGet(global::System.Runtime.InteropServices.HandleRef jarg1); | ||
|
||
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_MouseRelativeEvent_GetDeviceClass")] | ||
public static extern int DeviceClassGet(global::System.Runtime.InteropServices.HandleRef jarg1); | ||
|
||
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_MouseRelativeEvent_GetDeviceSubClass")] | ||
public static extern int DeviceSubClassGet(global::System.Runtime.InteropServices.HandleRef jarg1); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
src/Tizen.NUI/src/internal/Interop/Interop.WindowMouseRelativeEventSignal.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* Copyright(c) 2023 Samsung Electronics Co., Ltd. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
namespace Tizen.NUI | ||
{ | ||
internal static partial class Interop | ||
{ | ||
internal static partial class WindowMouseRelativeEventSignal | ||
{ | ||
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WindowMouseRelativeEventSignal")] | ||
public static extern global::System.IntPtr GetSignal(global::System.Runtime.InteropServices.HandleRef jarg1); | ||
|
||
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WindowMouseRelativeEventSignal_Empty")] | ||
[return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] | ||
public static extern bool Empty(global::System.Runtime.InteropServices.HandleRef jarg1); | ||
|
||
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WindowMouseRelativeEventSignal_GetConnectionCount")] | ||
public static extern uint GetConnectionCount(global::System.Runtime.InteropServices.HandleRef jarg1); | ||
|
||
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WindowMouseRelativeEventSignal_Connect")] | ||
public static extern void Connect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); | ||
|
||
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WindowMouseRelativeEventSignal_Disconnect")] | ||
public static extern void Disconnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); | ||
|
||
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WindowMouseRelativeEventSignal_Emit")] | ||
public static extern void Emit(global::System.Runtime.InteropServices.HandleRef signalType, global::System.Runtime.InteropServices.HandleRef window, global::System.Runtime.InteropServices.HandleRef mouseEvent); | ||
|
||
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_WindowMouseRelativeEventSignal")] | ||
public static extern global::System.IntPtr NewWindowMouseRelativeEventSignal(); | ||
|
||
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_WindowMouseRelativeEventSignal")] | ||
public static extern void DeleteWindowMouseRelativeEventSignal(global::System.Runtime.InteropServices.HandleRef jarg1); | ||
} | ||
} | ||
} |
102 changes: 102 additions & 0 deletions
102
src/Tizen.NUI/src/internal/Window/WindowMouseRelativeEventSignal.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
/* | ||
* Copyright(c) 2023 Samsung Electronics Co., Ltd. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
using Tizen.NUI.BaseComponents; | ||
|
||
namespace Tizen.NUI | ||
{ | ||
internal class WindowMouseRelativeEventSignal : Disposable | ||
{ | ||
internal WindowMouseRelativeEventSignal(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Dispose | ||
/// </summary> | ||
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr) | ||
{ | ||
Interop.WindowMouseRelativeEventSignal.DeleteWindowMouseRelativeEventSignal(swigCPtr); | ||
} | ||
|
||
/// <summary> | ||
/// Queries whether there are any connected slots. | ||
/// </summary> | ||
/// <returns>True if there are any slots connected to the signal</returns> | ||
public bool Empty() | ||
{ | ||
bool ret = Interop.WindowMouseRelativeEventSignal.Empty(SwigCPtr); | ||
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); | ||
return ret; | ||
} | ||
|
||
/// <summary> | ||
/// Queries the number of slots. | ||
/// </summary> | ||
/// <returns>The number of slots connected to this signal</returns> | ||
public uint GetConnectionCount() | ||
{ | ||
uint ret = Interop.WindowMouseRelativeEventSignal.GetConnectionCount(SwigCPtr); | ||
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); | ||
return ret; | ||
} | ||
|
||
/// <summary> | ||
/// Connects a function. | ||
/// </summary> | ||
/// <param name="func">The function to connect</param> | ||
public void Connect(System.Delegate func) | ||
{ | ||
System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func); | ||
{ | ||
Interop.WindowMouseRelativeEventSignal.Connect(SwigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); | ||
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Disconnects a function. | ||
/// </summary> | ||
/// <param name="func">The function to disconnect</param> | ||
public void Disconnect(System.Delegate func) | ||
{ | ||
System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func); | ||
{ | ||
Interop.WindowMouseRelativeEventSignal.Disconnect(SwigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); | ||
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Emits the signal. | ||
/// </summary> | ||
/// <param name="window">The first value to pass to callbacks</param> | ||
/// <param name="MouseRelative">The second value to pass to callbacks</param> | ||
public void Emit(Window window, MouseRelative MouseRelative) | ||
{ | ||
Interop.WindowMouseRelativeEventSignal.Emit(SwigCPtr, Window.getCPtr(window), MouseRelative.getCPtr(MouseRelative)); | ||
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); | ||
} | ||
|
||
/// <summary> | ||
/// The constructor. | ||
/// </summary> | ||
public WindowMouseRelativeEventSignal(Window window) : this(Interop.WindowMouseRelativeEventSignal.GetSignal(Window.getCPtr(window)), false) | ||
{ | ||
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); | ||
} | ||
} | ||
} |
Oops, something went wrong.