*
* The following example demonstrates how to use the %IInputMethodListener interface.
* @code
- * #include <FUi.h>
+ * #include <FUiIme.h>
+ *
+ * using namespace Tizen::Ui::Ime;
*
* class MyListener
* : public IInputMethodListener
* {
- * //...
- * virtual void OnCursorPositionChanged(int position);
- * virtual void OnOpaqueCommandReceived(const Tizen::Base::String& command);
- * virtual void OnSurroundingTextReceived(const Tizen::Base::String& text, int cursorPosition);
- * //...
+ * virtual void OnCursorPositionChanged(int position) {}
+ * virtual void OnOpaqueCommandReceived(const Tizen::Base::String& command) {}
+ * virtual void OnSurroundingTextReceived(const Tizen::Base::String& text, int cursorPosition) {}
* };
* @endcode
*
*
* The following example demonstrates how to use the %IInputMethodProvider interface.
* @code
- * #include <FUi.h>
+ * #include <FGraphics.h>
+ * #include <FUiIme.h>
+ *
+ * using namespace Tizen::Graphics;
+ * using namespace Tizen::Ui::Ime;
*
* class MyProvider
* : public IInputMethodProvider
* {
- * //...
- * virtual Tizen::Graphics::Rectangle GetInputPanelBounds(void);
- * virtual void HideInputPanel(void);
- * virtual void ShowInputPanel(void);
- * //...
+ * virtual Rectangle GetInputPanelBounds(void) { return Rectangle(); }
+ * virtual void HideInputPanel(void) {}
+ * virtual void ShowInputPanel(void) {}
* };
* @endcode
*
*
* The following example demonstrates how to use the %IInputMethodProviderF interface.
* @code
- * #include <FUi.h>
+ * #include <FGraphics.h>
+ * #include <FUiIme.h>
+ *
+ * using namespace Tizen::Graphics;
+ * using namespace Tizen::Ui::Ime;
*
* class MyProvider
* : public IInputMethodProviderF
* {
- * //...
- * virtual Tizen::Graphics::FloatRectangle GetInputPanelBounds(void);
- * virtual void HideInputPanel(void);
- * virtual void ShowInputPanel(void);
- * //...
+ * virtual FloatRectangle GetInputPanelBounds(void) { return FloatRectangle(); }
+ * virtual void HideInputPanel(void) {}
+ * virtual void ShowInputPanel(void) {}
* };
* @endcode
*
* The following example demonstrates how to use the %InputMethod class.
* @code
* #include <new>
- * #include <FUi.h>
*
+ * #include <FGraphics.h>
+ * #include <FUiIme.h>
+ *
+ * using namespace Tizen::Graphics;
* using namespace Tizen::Ui::Ime;
*
* class MyProvider
- * : public IInputMethodProvider
+ * : public IInputMethodProviderF
* {
- * //...
+ * virtual FloatRectangle GetInputPanelBounds(void) { return FloatRectangle(); }
+ * virtual void HideInputPanel(void) {}
+ * virtual void ShowInputPanel(void) {}
* };
*
* class MyListener
* : public IInputMethodListener
* {
- * //...
+ * virtual void OnCursorPositionChanged(int position) {}
+ * virtual void OnOpaqueCommandReceived(const Tizen::Base::String& command) {}
+ * virtual void OnSurroundingTextReceived(const Tizen::Base::String& text, int cursorPosition) {}
* };
*
* class MyImeApp
* {
* public:
- * //...
- * void Construct();
- * };
+ * MyImeApp(void)
+ * {
+ * // Gets an instance of InputMethod
+ * InputMethod* pInputMethod = InputMethod::GetInstance();
*
- * void
- * MyImeApp::Construct()
- * {
- * // Gets an instance of InputMethod
- * InputMethod* pInputMethod = InputMethod::GetInstance();
+ * // Creates an instance of MyProvider and sets it as a provider
+ * __pMyProvider = new(std::nothrow) MyProvider();
+ * pInputMethod->SetInputMethodProviderF(__pMyProvider);
*
- * // Creates an instance of MyProvider and sets it as a provider
- * MyProvider* pMyProvider = new(std::nothrow) MyProvider();
- * pInputMethod->SetInputMethodProvider(pMyProvider);
+ * // Creates an instance of MyListener and adds it to the input method
+ * __pMyListener = new(std::nothrow) MyListener();
+ * pInputMethod->SetInputMethodListener(__pMyListener);
+ * }
*
- * // Creates an instance of MyListener and adds it to the input method
- * MyListener* pMyListener = new(std::nothrow) MyListener();
- * pInputMethod->SetInputMethodListener(pMyListener);
- * }
+ * virtual ~MyImeApp(void)
+ * {
+ * delete __pMyProvider;
+ * __pMyProvider = null;
+ *
+ * delete __pMyListener;
+ * __pMyListener = null;
+ * }
+ *
+ * private:
+ * MyProvider* __pMyProvider;
+ * MyListener* __pMyListener;
+ * };
* @endcode
*
*/