X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Fadaptor-framework%2Finput-method-context.h;h=04a8e72b22a3b2e0d9cdcd6a0fe9f71d55702627;hb=992747c240187dbf8702fc1c1f709f316bb88529;hp=1209d61ef8c4815bb852e371196157eb3c2bdc2b;hpb=cba512cfe082ff2d8d46b9ee2f142add17744b73;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/devel-api/adaptor-framework/input-method-context.h b/dali/devel-api/adaptor-framework/input-method-context.h index 1209d61..04a8e72 100755 --- a/dali/devel-api/adaptor-framework/input-method-context.h +++ b/dali/devel-api/adaptor-framework/input-method-context.h @@ -50,8 +50,8 @@ class DALI_ADAPTOR_API InputMethodContext : public BaseHandle public: /** - * @brief The direction of text. - */ + * @brief The direction of text. + */ enum TextDirection { LeftToRight, @@ -120,9 +120,16 @@ public: */ struct PreeditAttributeData { - PreeditStyle preeditType; /// The preedit style type - unsigned int startIndex; /// The start index of preedit - unsigned int endIndex; /// The end index of preedit + PreeditAttributeData() + : preeditType( PreeditStyle::NONE ), + startIndex( 0 ), + endIndex( 0 ) + { + } + + PreeditStyle preeditType; /// The preedit style type + unsigned int startIndex; /// The start index of preedit + unsigned int endIndex; /// The end index of preedit }; /** @@ -210,6 +217,8 @@ public: typedef Signal< void ( int ) > LanguageChangedSignalType; ///< Language changed signal typedef Signal< void ( const std::string&, const std::string&, const std::string& ) > ContentReceivedSignalType; ///< Content received signal + using PreEditAttributeDataContainer = Vector< Dali::InputMethodContext::PreeditAttributeData >; + public: /** @@ -491,11 +500,11 @@ public: void SetInputPanelPosition( unsigned int x, unsigned int y ); /** - * @brief Gets the preedit attrs data. + * @brief Gets the preedit attributes data. * - * @param[out] attrs The preedit attrs data. + * @param[out] attrs The preedit attributes data. */ - void GetPreeditStyle( Vector& attrs ) const; + void GetPreeditStyle( PreEditAttributeDataContainer& attrs ) const; public: