* evas: Return Eina_Bool when it make sense.
SVN revision: 41458
This commit is contained in:
parent
b58ac165cf
commit
940b7b0740
|
@ -637,7 +637,7 @@ extern "C" {
|
|||
EAPI Evas_Coord evas_object_text_horiz_advance_get(const Evas_Object *obj) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_PURE;
|
||||
EAPI Evas_Coord evas_object_text_vert_advance_get (const Evas_Object *obj) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_PURE;
|
||||
EAPI Evas_Coord evas_object_text_inset_get (const Evas_Object *obj) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_PURE;
|
||||
EAPI int evas_object_text_char_pos_get (const Evas_Object *obj, int pos, Evas_Coord *cx, Evas_Coord *cy, Evas_Coord *cw, Evas_Coord *ch) EINA_ARG_NONNULL(1);
|
||||
EAPI Eina_Bool evas_object_text_char_pos_get (const Evas_Object *obj, int pos, Evas_Coord *cx, Evas_Coord *cy, Evas_Coord *cw, Evas_Coord *ch) EINA_ARG_NONNULL(1);
|
||||
EAPI int evas_object_text_char_coords_get (const Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord *cx, Evas_Coord *cy, Evas_Coord *cw, Evas_Coord *ch) EINA_ARG_NONNULL(1);
|
||||
EAPI Evas_Text_Style_Type evas_object_text_style_get (const Evas_Object *obj) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_PURE;
|
||||
EAPI void evas_object_text_style_set (Evas_Object *obj, Evas_Text_Style_Type type) EINA_ARG_NONNULL(1);
|
||||
|
|
|
@ -565,9 +565,9 @@ evas_object_text_vert_advance_get(const Evas_Object *obj)
|
|||
* @param cw A pointer to an @c Evas_Coord to store the Width value in (can be NULL).
|
||||
* @param ch A pointer to an @c Evas_Coord to store the Height value in (can be NULL).
|
||||
*
|
||||
* @returns 0 on error, 1 on success.
|
||||
* @returns EINA_FALSE on error, EINA_TRUE on success.
|
||||
*/
|
||||
EAPI int
|
||||
EAPI Eina_Bool
|
||||
evas_object_text_char_pos_get(const Evas_Object *obj, int pos, Evas_Coord *cx, Evas_Coord *cy, Evas_Coord *cw, Evas_Coord *ch)
|
||||
{
|
||||
Evas_Object_Text *o;
|
||||
|
@ -576,14 +576,14 @@ evas_object_text_char_pos_get(const Evas_Object *obj, int pos, Evas_Coord *cx, E
|
|||
int inset;
|
||||
|
||||
MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
|
||||
return 0;
|
||||
return EINA_FALSE;
|
||||
MAGIC_CHECK_END();
|
||||
o = (Evas_Object_Text *)(obj->object_data);
|
||||
MAGIC_CHECK(o, Evas_Object_Text, MAGIC_OBJ_TEXT);
|
||||
return 0;
|
||||
return EINA_FALSE;
|
||||
MAGIC_CHECK_END();
|
||||
if (!o->engine_data) return 0;
|
||||
if (!o->cur.text) return 0;
|
||||
if (!o->engine_data) return EINA_FALSE;
|
||||
if (!o->cur.text) return EINA_FALSE;
|
||||
inset =
|
||||
ENFN->font_inset_get(ENDT, o->engine_data, o->cur.text);
|
||||
ret = ENFN->font_char_coords_get(ENDT, o->engine_data, o->cur.text,
|
||||
|
|
Loading…
Reference in New Issue