forked from enlightenment/efl
elementary: add elm_entry_line_wrap_get
SVN revision: 61045
This commit is contained in:
parent
3df1497e77
commit
03b898aa1a
|
@ -3022,6 +3022,7 @@ extern "C" {
|
||||||
EAPI const char *elm_entry_selection_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
|
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_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 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 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 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);
|
EAPI void elm_entry_select_none(Evas_Object *obj) EINA_ARG_NONNULL(1);
|
||||||
|
|
|
@ -2334,6 +2334,24 @@ elm_entry_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap)
|
||||||
_theme_hook(obj);
|
_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.
|
* This sets the editable attribute of the entry.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue