Add to set IME position 82/213682/1
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 10 Sep 2019 06:23:39 +0000 (15:23 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 10 Sep 2019 06:23:56 +0000 (15:23 +0900)
Change-Id: I6eef414228c59b6116aca2eb5eff211faf26754a
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
dali/devel-api/adaptor-framework/input-method-context.cpp
dali/devel-api/adaptor-framework/input-method-context.h
dali/internal/input/common/input-method-context-impl.h
dali/internal/input/tizen-wayland/input-method-context-impl-ecore-wl.cpp
dali/internal/input/tizen-wayland/input-method-context-impl-ecore-wl.h
dali/internal/input/ubuntu-x11/input-method-context-impl-x.cpp
dali/internal/input/ubuntu-x11/input-method-context-impl-x.h
dali/internal/input/windows/input-method-context-impl-win.cpp
dali/internal/input/windows/input-method-context-impl-win.h

index 492b9ae..0b8e3f7 100755 (executable)
@@ -216,6 +216,11 @@ Dali::InputMethodContext::InputPanelLanguage InputMethodContext::GetInputPanelLa
   return Internal::Adaptor::InputMethodContext::GetImplementation(*this).GetInputPanelLanguage();
 }
 
+void InputMethodContext::SetInputPanelPosition( unsigned int x, unsigned int y )
+{
+  Internal::Adaptor::InputMethodContext::GetImplementation(*this).SetInputPanelPosition( x, y );
+}
+
 // Signals
 InputMethodContext::ActivatedSignalType& InputMethodContext::ActivatedSignal()
 {
index 4310c77..85f754a 100755 (executable)
@@ -453,6 +453,14 @@ public:
    */
   InputPanelLanguage GetInputPanelLanguage() const;
 
+  /**
+   * @brief Sets the x,y coordinates of the input panel.
+   *
+   * @param[in] x The top-left x coordinate of the input panel
+   * @param[in] y The top-left y coordinate of the input panel
+   */
+  void SetInputPanelPosition( unsigned int x, unsigned int y );
+
 public:
 
   // Signals
index 1527cc3..eabc764 100755 (executable)
@@ -268,6 +268,11 @@ public:
    */
   virtual Dali::InputMethodContext::InputPanelLanguage GetInputPanelLanguage() const { return Dali::InputMethodContext::InputPanelLanguage(); }
 
+  /**
+   * @copydoc Dali::InputMethodContext::SetInputPanelPosition()
+   */
+  virtual void SetInputPanelPosition( unsigned int x, unsigned int y ) {}
+
 public:  // Signals
 
   /**
index b5bf294..3840b1e 100755 (executable)
@@ -1069,6 +1069,16 @@ Dali::InputMethodContext::InputPanelLanguage InputMethodContextEcoreWl::GetInput
   return Dali::InputMethodContext::InputPanelLanguage::AUTOMATIC;
 }
 
+void InputMethodContextEcoreWl::SetInputPanelPosition( unsigned int x, unsigned int y )
+{
+  DALI_LOG_INFO( gLogFilter, Debug::General, "InputMethodContextEcoreWl::SetInputPanelPosition\n" );
+
+  if( mIMFContext )
+  {
+    ecore_imf_context_input_panel_position_set( mIMFContext, x, y );
+  }
+}
+
 bool InputMethodContextEcoreWl::ProcessEventKeyDown( const KeyEvent& keyEvent )
 {
   bool eventHandled( false );
index ba3fdf8..8e414d4 100755 (executable)
@@ -257,6 +257,11 @@ public:
    */
   Dali::InputMethodContext::InputPanelLanguage GetInputPanelLanguage() const override;
 
+  /**
+   * @copydoc Dali::InputMethodContext::SetInputPanelPosition()
+   */
+  void SetInputPanelPosition( unsigned int x, unsigned int y ) override;
+
 private:
   /**
    * Context created the first time and kept until deleted.
index 6a19a01..dcf53f2 100755 (executable)
@@ -783,6 +783,13 @@ Dali::InputMethodContext::InputPanelLanguage InputMethodContextX::GetInputPanelL
   return Dali::InputMethodContext::InputPanelLanguage::AUTOMATIC;
 }
 
+void InputMethodContextX::SetInputPanelPosition( unsigned int x, unsigned int y )
+{
+  DALI_LOG_INFO( gLogFilter, Debug::General, "InputMethodContextX::SetInputPanelPosition\n" );
+
+  // ecore_imf_context_input_panel_position_set() is supported from ecore-imf 1.21.0 version.
+}
+
 bool InputMethodContextX::ProcessEventKeyDown( const KeyEvent& keyEvent )
 {
   bool eventHandled( false );
index 43fe822..7edb8d8 100755 (executable)
@@ -263,6 +263,11 @@ public:
    */
   Dali::InputMethodContext::InputPanelLanguage GetInputPanelLanguage() const override;
 
+  /**
+   * @copydoc Dali::InputMethodContext::SetInputPanelPosition()
+   */
+  void SetInputPanelPosition( unsigned int x, unsigned int y ) override;
+
 private:
   /**
    * Context created the first time and kept until deleted.
index 5df001d..5bd9b6f 100755 (executable)
@@ -359,6 +359,11 @@ Dali::InputMethodContext::InputPanelLanguage InputMethodContextWin::GetInputPane
   return Dali::InputMethodContext::InputPanelLanguage::AUTOMATIC;\r
 }\r
 \r
+void InputMethodContextWin::SetInputPanelPosition( unsigned int x, unsigned int y )\r
+{\r
+  DALI_LOG_INFO( gLogFilter, Debug::General, "InputMethodContextWin::SetInputPanelPosition\n" );\r
+}\r
+\r
 bool InputMethodContextWin::ProcessEventKeyDown( const KeyEvent& keyEvent )\r
 {\r
   bool eventHandled( false );\r
index a0eed9d..61847a0 100755 (executable)
@@ -251,6 +251,11 @@ public:
    */\r
   Dali::InputMethodContext::InputPanelLanguage GetInputPanelLanguage() const override;\r
 \r
+  /**\r
+   * @copydoc Dali::InputMethodContext::SetInputPanelPosition()\r
+   */\r
+  void SetInputPanelPosition( unsigned int x, unsigned int y ) override;\r
+\r
 private:\r
   /**\r
    * Context created the first time and kept until deleted.\r