2019-03-05 14:00:37 -08:00
|
|
|
#include "elm_entry_eo.legacy.h"
|
2015-07-01 10:30:23 -07:00
|
|
|
|
Elementary: header split for DateTime, DaySelector, DiskSelector, Entry,
Flip, Flip Selector, Frame, Gesture Layer, GLView, Hover, Icon,
Inwin, Label.
2013-04-28 00:23:15 -07:00
|
|
|
/**
|
|
|
|
* This adds an entry to @p parent object.
|
|
|
|
*
|
|
|
|
* By default, entries are:
|
|
|
|
* @li not scrolled
|
|
|
|
* @li multi-line
|
|
|
|
* @li word wrapped
|
|
|
|
* @li autosave is enabled
|
|
|
|
*
|
|
|
|
* @param parent The parent object
|
|
|
|
* @return The new object or NULL if it cannot be created
|
|
|
|
*
|
2016-03-16 08:05:31 -07:00
|
|
|
* @ingroup Elm_Entry
|
Elementary: header split for DateTime, DaySelector, DiskSelector, Entry,
Flip, Flip Selector, Frame, Gesture Layer, GLView, Hover, Icon,
Inwin, Label.
2013-04-28 00:23:15 -07:00
|
|
|
*/
|
|
|
|
EAPI Evas_Object *elm_entry_add(Evas_Object *parent);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This sets the text displayed within the entry to @p entry.
|
|
|
|
*
|
|
|
|
* @param obj The entry object
|
|
|
|
* @param entry The text to be displayed
|
|
|
|
*
|
|
|
|
* @note Using this function bypasses text filters
|
|
|
|
*
|
2016-03-16 08:05:31 -07:00
|
|
|
* @ingroup Elm_Entry
|
Elementary: header split for DateTime, DaySelector, DiskSelector, Entry,
Flip, Flip Selector, Frame, Gesture Layer, GLView, Hover, Icon,
Inwin, Label.
2013-04-28 00:23:15 -07:00
|
|
|
*/
|
|
|
|
EAPI void elm_entry_entry_set(Evas_Object *obj, const char *entry);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This returns the text currently shown in object @p entry.
|
|
|
|
* See also elm_entry_entry_set().
|
|
|
|
*
|
|
|
|
* @param obj The entry object
|
|
|
|
* @return The currently displayed text or NULL on failure
|
|
|
|
*
|
2016-03-16 08:05:31 -07:00
|
|
|
* @ingroup Elm_Entry
|
Elementary: header split for DateTime, DaySelector, DiskSelector, Entry,
Flip, Flip Selector, Frame, Gesture Layer, GLView, Hover, Icon,
Inwin, Label.
2013-04-28 00:23:15 -07:00
|
|
|
*/
|
|
|
|
EAPI const char *elm_entry_entry_get(const Evas_Object *obj);
|
|
|
|
|
2015-07-01 10:30:23 -07:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* This sets the file (and implicitly loads it) for the text to display and
|
|
|
|
* then edit. All changes are written back to the file after a short delay if
|
|
|
|
* the entry object is set to autosave (which is the default).
|
|
|
|
*
|
|
|
|
* If the entry had any other file set previously, any changes made to it
|
|
|
|
* will be saved if the autosave feature is enabled, otherwise, the file
|
|
|
|
* will be silently discarded and any non-saved changes will be lost.
|
|
|
|
*
|
|
|
|
* @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
|
|
|
|
*
|
2016-03-16 08:05:31 -07:00
|
|
|
* @ingroup Elm_Entry
|
2015-07-01 10:30:23 -07:00
|
|
|
*
|
2017-10-23 23:13:07 -07:00
|
|
|
* @param[in] obj The entry object
|
2015-07-01 10:30:23 -07:00
|
|
|
* @param[in] file The path to the file to load and save
|
|
|
|
* @param[in] format The file format
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format);
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Get the file being edited by the entry.
|
|
|
|
*
|
|
|
|
* This function can be used to retrieve any file set on the entry for
|
|
|
|
* edition, along with the format used to load and save it.
|
|
|
|
*
|
2016-03-16 08:05:31 -07:00
|
|
|
* @ingroup Elm_Entry
|
2015-07-01 10:30:23 -07:00
|
|
|
*
|
2017-10-23 23:13:07 -07:00
|
|
|
* @param[in] obj The entry object
|
2015-07-01 10:30:23 -07:00
|
|
|
* @param[out] file The path to the file to load and save
|
|
|
|
* @param[out] format The file format
|
|
|
|
*/
|
|
|
|
EAPI void elm_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format);
|
2018-02-14 18:14:52 -08:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Forces calculation of the entry size and text layouting.
|
|
|
|
*
|
|
|
|
* This should be used after modifying the textblock object directly. See
|
|
|
|
* @ref elm_entry_textblock_get for more information.
|
|
|
|
* @param[in] obj The object.
|
|
|
|
*
|
|
|
|
* @ingroup Elm_Entry
|
|
|
|
*/
|
|
|
|
EAPI void elm_entry_calc_force(Evas_Object *obj);
|