elementary: add elm_entry_line_wrap_get

SVN revision: 61045
This commit is contained in:
Michael BOUCHAUD 2011-07-05 11:29:35 +00:00
parent 3df1497e77
commit 03b898aa1a
2 changed files with 19 additions and 0 deletions

View File

@ -3022,6 +3022,7 @@ extern "C" {
EAPI const char *elm_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
EAPI void elm_entry_entry_insert(Evas_Object *obj, const char *entry) EINA_ARG_NONNULL(1);
EAPI void elm_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) EINA_ARG_NONNULL(1);
EAPI Elm_Wrap_Type elm_entry_line_wrap_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
EAPI void elm_entry_editable_set(Evas_Object *obj, Eina_Bool editable) EINA_ARG_NONNULL(1);
EAPI Eina_Bool elm_entry_editable_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
EAPI void elm_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);

View File

@ -2334,6 +2334,24 @@ elm_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap)
_theme_hook(obj);
}
/**
* Get the wrapping behavior of the entry.
* See also elm_entry_line_wrap_set().
*
* @param obj The entry object
* @return Wrap type
*
* @ingroup Entry
*/
EAPI Elm_Wrap_Type
elm_entry_line_wrap_get(const Evas_Object *obj)
{
ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return EINA_FALSE;
return wd->linewrap;
}
/**
* This sets the editable attribute of the entry.
*