/*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2024 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
return mWebEngineSettings.IsExtraFeatureEnabled(feature);
}
+void WebSettings::SetImeStyle(int style)
+{
+ mWebEngineSettings.SetImeStyle(style);
+}
+
+int WebSettings::GetImeStyle() const
+{
+ return mWebEngineSettings.GetImeStyle();
+}
} // namespace Toolkit
#define DALI_TOOLKIT_WEB_SETTINGS_H
/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2024 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
bool IsExtraFeatureEnabled(const std::string& feature) const;
+ /**
+ * @brief Sets the style of IME.
+ *
+ * @param[in] style @c IME_STYLE_FULL full IME style
+ * @c IME_STYLE_FLOATING floating IME style
+ * @c IME_STYLE_DYNAMIC dynamic IME style
+ *
+ */
+ void SetImeStyle(int style);
+
+ /**
+ * @brief Gets the style of IME.
+ *
+ * @return @c IME_STYLE_FULL full IME style
+ * @c IME_STYLE_FLOATING floating IME style
+ * @c IME_STYLE_DYNAMIC dynamic IME style
+ */
+ int GetImeStyle() const;
+
private:
Dali::WebEngineSettings& mWebEngineSettings;
};
return Dali::Toolkit::GetImpl(*this).StopInspectorServer();
}
+bool WebView::SetImePositionAndAlignment(Dali::Vector2 position, int alignment)
+{
+ return Dali::Toolkit::GetImpl(*this).SetImePositionAndAlignment(position, alignment);
+}
+
+void WebView::SetCursorThemeName(const std::string themeName)
+{
+ Dali::Toolkit::GetImpl(*this).SetCursorThemeName(themeName);
+}
+
void WebView::ScrollBy(int32_t deltaX, int32_t deltaY)
{
Dali::Toolkit::GetImpl(*this).ScrollBy(deltaX, deltaY);
*/
bool StopInspectorServer();
+ /**
+ * @brief Set the style of IME.
+ * @param[in] position Position of IME.
+ * @param[in] alignment Alignment of IME.
+ *
+ * @return true if succeeded, false otherwise
+ */
+ bool SetImePositionAndAlignment(Dali::Vector2 position, int alignment);
+
+ /**
+ * @brief Set the theme name of cursor.
+ * @param[in] themeName The name of theme of cursor.
+ */
+ void SetCursorThemeName(const std::string themeName);
+
/**
* @brief Scroll web page of view by deltaX and deltaY.
* @param[in] deltaX The delta x of scroll
return mWebEngine ? mWebEngine.StopInspectorServer() : false;
}
+bool WebView::SetImePositionAndAlignment(Dali::Vector2 position, int alignment)
+{
+ return mWebEngine ? mWebEngine.SetImePositionAndAlignment(position, alignment) : false;
+}
+
+void WebView::SetCursorThemeName(const std::string themeName)
+{
+ if(mWebEngine)
+ {
+ mWebEngine.SetCursorThemeName(themeName);
+ }
+}
+
void WebView::ScrollBy(int32_t deltaX, int32_t deltaY)
{
if(mWebEngine)
*/
bool StopInspectorServer();
+ /**
+ * @brief Set the style of IME.
+ * @param[in] position Position of IME.
+ * @param[in] alignment Alignment of IME.
+ *
+ * @return true if succeeded, false otherwise
+ */
+ bool SetImePositionAndAlignment(Dali::Vector2 position, int alignment);
+
+ /**
+ * @brief Set the theme name of cursor.
+ * @param[in] themeName The name of theme of cursor.
+ */
+ void SetCursorThemeName(const std::string themeName);
+
/**
* @copydoc Dali::Toolkit::WebView::ScrollBy()
*/