1 #include "elm_entry_eo.legacy.h" 2 3 /** 4 * This adds an entry to @p parent object. 5 * 6 * By default, entries are: 7 * @li not scrolled 8 * @li multi-line 9 * @li word wrapped 10 * @li autosave is enabled 11 * 12 * @param parent The parent object 13 * @return The new object or NULL if it cannot be created 14 * 15 * @ingroup Elm_Entry_Group 16 */ 17 EAPI Evas_Object *elm_entry_add(Evas_Object *parent); 18 19 /** 20 * This sets the text displayed within the entry to @p entry. 21 * 22 * @param obj The entry object 23 * @param entry The text to be displayed 24 * 25 * @note Using this function bypasses text filters 26 * 27 * @ingroup Elm_Entry_Group 28 */ 29 EAPI void elm_entry_entry_set(Evas_Object *obj, const char *entry); 30 31 /** 32 * This returns the text currently shown in object @p entry. 33 * See also elm_entry_entry_set(). 34 * 35 * @param obj The entry object 36 * @return The currently displayed text or NULL on failure 37 * 38 * @ingroup Elm_Entry_Group 39 */ 40 EAPI const char *elm_entry_entry_get(const Evas_Object *obj); 41 42 /** 43 * 44 * This sets the file (and implicitly loads it) for the text to display and 45 * then edit. All changes are written back to the file after a short delay if 46 * the entry object is set to autosave (which is the default). 47 * 48 * If the entry had any other file set previously, any changes made to it 49 * will be saved if the autosave feature is enabled, otherwise, the file 50 * will be silently discarded and any non-saved changes will be lost. 51 * 52 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise 53 * 54 * @ingroup Elm_Entry_Group 55 * 56 * @param[in] obj The entry object 57 * @param[in] file The path to the file to load and save 58 * @param[in] format The file format 59 */ 60 EAPI Eina_Bool elm_entry_file_set(Evas_Object *obj, const char *file, Elm_Text_Format format); 61 62 /** 63 * 64 * Get the file being edited by the entry. 65 * 66 * This function can be used to retrieve any file set on the entry for 67 * edition, along with the format used to load and save it. 68 * 69 * @ingroup Elm_Entry_Group 70 * 71 * @param[in] obj The entry object 72 * @param[out] file The path to the file to load and save 73 * @param[out] format The file format 74 */ 75 EAPI void elm_entry_file_get(const Evas_Object *obj, const char **file, Elm_Text_Format *format); 76 77 78 /** 79 * @brief Forces calculation of the entry size and text layouting. 80 * 81 * This should be used after modifying the textblock object directly. See 82 * @ref elm_entry_textblock_get for more information. 83 * @param[in] obj The object. 84 * 85 * @ingroup Elm_Entry_Group 86 */ 87 EAPI void elm_entry_calc_force(Evas_Object *obj); 88