Skip to content

Commit

Permalink
[NUI] Add FullScreenMode to InputMethodContext
Browse files Browse the repository at this point in the history
To support full screen mode of the input panal.

Signed-off-by: Bowon Ryu <[email protected]>
  • Loading branch information
wonrst committed Feb 11, 2025
1 parent 37d360d commit 83cbf5e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,13 @@ internal static partial class InputMethodContext
[return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
public static extern bool IsTextPredictionAllowed(global::System.Runtime.InteropServices.HandleRef jarg1);

[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_InputMethodContext_SetFullScreenMode")]
public static extern void SetFullScreenMode(global::System.Runtime.InteropServices.HandleRef inputMethodContext, bool fullScreen);

[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_InputMethodContext_IsFullScreenMode")]
[return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
public static extern bool IsFullScreenMode(global::System.Runtime.InteropServices.HandleRef inputMethodContext);

[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_InputMethodContext_SetInputPanelLanguage")]
public static extern void SetInputPanelLanguage(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);

Expand Down
29 changes: 29 additions & 0 deletions src/Tizen.NUI/src/public/Input/InputMethodContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,22 @@ public bool TextPrediction
}
}

/// <summary>
/// Gets or sets whether the input panel should be shown in fullscreen mode.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public bool FullScreenMode
{
get
{
return IsFullScreenMode();
}
set
{
SetFullScreenMode(value);
}
}

/// <summary>
/// Destroys the context of the IMF.<br/>
/// </summary>
Expand Down Expand Up @@ -813,6 +829,19 @@ internal bool IsTextPredictionAllowed()
return ret;
}

internal void SetFullScreenMode(bool fullScreen)
{
Interop.InputMethodContext.SetFullScreenMode(SwigCPtr, fullScreen);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}

internal bool IsFullScreenMode()
{
bool ret = Interop.InputMethodContext.IsFullScreenMode(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}

internal ActivatedSignalType ActivatedSignal()
{
ActivatedSignalType ret = new ActivatedSignalType(Interop.InputMethodContext.ActivatedSignal(SwigCPtr), false);
Expand Down

0 comments on commit 83cbf5e

Please sign in to comment.