X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.Uix.InputMethod%2FInterop%2FInterop.InputMethod.cs;h=9b373f3f3f767342ab8da19f8fac7ed0c2217af3;hb=c427008cff3ac081d2f4ef302d95107af840e58a;hp=cf90bac01d14f4547780f86aca299bdecde8133a;hpb=7f0618cd51ad766607e0e1dc28f98c23099a76c7;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/Tizen.Uix.InputMethod/Interop/Interop.InputMethod.cs b/src/Tizen.Uix.InputMethod/Interop/Interop.InputMethod.cs index cf90bac..9b373f3 100755 --- a/src/Tizen.Uix.InputMethod/Interop/Interop.InputMethod.cs +++ b/src/Tizen.Uix.InputMethod/Interop/Interop.InputMethod.cs @@ -44,6 +44,19 @@ internal static partial class Interop OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory }; + internal enum ImeEventType + { + Language = 1, /* The language of the input panel */ + ShiftMode = 2, /* The shift key state of the input panel */ + Geometry = 3 /* The size of the input panel */ + }; + + internal enum ImeShiftMode + { + Off, + On + }; + [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] internal struct ImeCallbackStruct { @@ -188,6 +201,9 @@ internal static partial class Interop [DllImport(Libraries.InputMethod, EntryPoint = "ime_get_main_window")] internal static extern IntPtr ImeGetMainWindow(); + [DllImport(Libraries.InputMethod, EntryPoint = "ime_request_hide")] + internal static extern ErrorCode ImeRequestHide(); + [DllImport(Libraries.InputMethod, EntryPoint = "ime_prepare")] internal static extern ErrorCode ImePrepare(); @@ -245,6 +261,17 @@ internal static partial class Interop [DllImport(Libraries.InputMethod, EntryPoint = "ime_device_info_get_subclass")] internal static extern ErrorCode ImeDeviceInfoGetSubclass(IntPtr dev_info, out DeviceSubclass devSubClass); + [DllImport(Libraries.InputMethod, EntryPoint = "ime_set_floating_mode")] + internal static extern ErrorCode ImeSetFloatingMode(bool floating_mode); + + [DllImport(Libraries.InputMethod, EntryPoint = "ime_set_floating_drag_start")] + internal static extern ErrorCode ImeSetFloatingDragStart(); + + [DllImport(Libraries.InputMethod, EntryPoint = "ime_set_floating_drag_end")] + internal static extern ErrorCode ImeSetFloatingDragEnd(); + + [DllImport(Libraries.InputMethod, EntryPoint = "ime_update_input_panel_event")] + internal static extern ErrorCode ImeUpdateInputPanelEvent(ImeEventType type, uint value); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] internal delegate void ImeCreateCb(IntPtr userData);