wl_display_flush( mDisplay );
}
-void TextInputManager::SetSurroundingText( uint32_t serial, std::string text, unsigned int cursor)
+void TextInputManager::SetSurroundingText( std::string text, unsigned int cursor, unsigned int anchor )
{
TextInputManager::SeatInfo& info = TextInputManager::Get().GetLastActiveSeat();
- wl_text_input_set_surrounding_text( info.mSeat->GetTextInputInterface(), serial, text.c_str(), cursor);
+ wl_text_input_set_surrounding_text( info.mSeat->GetTextInputInterface(), text.c_str(), cursor, anchor );
wl_display_flush( mDisplay );
}
* UTF-8 encoded. Cursor is the byte offset within the
* surrounding text. Anchor is the byte offset of the
* selection anchor within the surrounding text. If there is no selected
- * @param[in] serial the serial
+ * text anchor is the same as cursor.
* @param[in] text the text
* @param[in] cursor cursor position
+ * @param[in] anchor anchor position
*/
- void SetSurroundingText( uint32_t serial, std::string text, unsigned int cursor);
+ void SetSurroundingText( std::string text, unsigned int cursor, unsigned int anchor );
+
public: // virtual keyboard signals