[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_GetWindow")]
public static extern global::System.IntPtr Get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_AddInputRegion")]
+ public static extern void AddInputRegion(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_SubtractInputRegion")]
+ public static extern void SubtractInputRegion(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
}
}
}
}
/// <summary>
+ /// Adds input region.
+ /// </summary>
+ /// <param name="inputRegion">The added region to accept input events.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void AddInputRegion(Rectangle inputRegion)
+ {
+ Interop.Window.AddInputRegion(SwigCPtr, Rectangle.getCPtr(inputRegion));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Subtracts input region.
+ /// </summary>
+ /// <param name="inputRegion">The subtracted region to except input events.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SubtractInputRegion(Rectangle inputRegion)
+ {
+ Interop.Window.SubtractInputRegion(SwigCPtr, Rectangle.getCPtr(inputRegion));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
/// Add FrameUpdateCallback
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
try
{
Window.Instance.EnableFloatingMode(true);
+
}
catch (Exception e)
{
tlog.Debug(tag, e.Message.ToString());
Assert.Fail("Caught Exception : Failed!");
}
-
- tlog.Debug(tag, $"WindowEnableFloatingMode END (OK)");
+ tlog.Debug(tag, $"AddInputRegionTest END (OK)");
+ }
}
[Test]
tlog.Debug(tag, e.Message.ToString());
Assert.Fail("Caught Exception : Failed!");
}
-
tlog.Debug(tag, $"WindowRequestMoveToServer END (OK)");
}
tlog.Debug(tag, e.Message.ToString());
Assert.Fail("Caught Exception : Failed!");
}
+ tlog.Debug(tag, $"WindowRequestMoveToServer END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Window AddInputRegion Test")]
+ [Property("SPEC", "Tizen.NUI.Window.AddInputRegion M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ public void AddInputRegionTest()
+ {
+ tlog.Debug(tag, $"AddInputRegionTest START");
+ try
+ {
+ Rectangle inputRegion = new Rectangle(0, 0, 720, 640);
+ myWin.AddInputRegionTest(inputRegion);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
+ tlog.Debug(tag, $"AddInputRegionTest END (OK)");
+ }
+
+
+ [Test]
+ [Category("P1")]
+ [Description("Window SubtractInputRegion Test")]
+ [Property("SPEC", "Tizen.NUI.Window.SubtractInputRegion M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ public void SubtractInputRegionTest()
+ {
+ tlog.Debug(tag, $"SubtractInputRegionTest START");
+ try
+ {
+ Rectangle addInputRegion = new Rectangle(0, 0, 720, 1280);
+ myWin.AddInputRegionTest(addInputRegion);
+
+ Rectangle subtractInputRegion = new Rectangle(0, 641, 720, 640);
+ myWin.AddInputRegionTest(subtractInputRegion);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
- tlog.Debug(tag, $"WindowRequestResizeToServer END (OK)");
+ tlog.Debug(tag, $"SubtractInputRegionTest END (OK)");
}
}
-}
\ No newline at end of file
+}