Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src Modified Files: ewl_text.c ewl_text.h Log Message: - provide the wrap call to the ewl_text object =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_text.c,v retrieving revision 1.81 retrieving revision 1.82 diff -u -3 -r1.81 -r1.82 --- ewl_text.c 9 Dec 2004 05:26:10 -0000 1.81 +++ ewl_text.c 3 Feb 2005 16:50:42 -0000 1.82 @@ -271,6 +271,35 @@ } /** + * @param ta: the text widget to change alignment + * @param wrap: the new wrap setting of the text widget + * @brief Changes the currently applied wrap setting of the text to specified value + * @return Returns no value. + */ +void ewl_text_wrap_set(Ewl_Text *ta, int wrap) +{ + DENTER_FUNCTION(DLEVEL_STABLE); + DCHECK_PARAM_PTR("ta", ta); + + ewl_entry_wrap_set(EWL_ENTRY(ta), wrap); + + DLEAVE_FUNCTION(DLEVEL_STABLE); +} + +/** + * @param ta: the text widget to get the current wrap setting + * @brief Retrieves the currently used text wrap setting from a text widget. + * @return Returns the currently used text wrap setting. + */ +int ewl_text_wrap_get(Ewl_Text *ta) +{ + DENTER_FUNCTION(DLEVEL_STABLE); + DCHECK_PARAM_PTR_RET("ta", ta, 0); + + DRETURN_INT(ewl_entry_wrap_get(EWL_ENTRY(ta)), DLEVEL_STABLE); +} + +/** * @param ta: the text widget to map a coordinate to a character index * @param x: the x coordinate over the desired character * @param y: the y coordinate over the desired character =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_text.h,v retrieving revision 1.33 retrieving revision 1.34 diff -u -3 -r1.33 -r1.34 --- ewl_text.h 5 Oct 2004 23:34:52 -0000 1.33 +++ ewl_text.h 3 Feb 2005 16:50:43 -0000 1.34 @@ -60,6 +60,9 @@ void ewl_text_align_set(Ewl_Text *ta, unsigned int align); unsigned int ewl_text_align_get(Ewl_Text *ta); +void ewl_text_wrap_set(Ewl_Text *e, int wrap); +int ewl_text_wrap_get(Ewl_Text *e); + void ewl_text_index_select(Ewl_Text *ta, int si, int ei); void ewl_text_coord_select(Ewl_Text *ta, int sx, int sy, int ex, int ey); ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs