void EvasEsmart::wrap_clip_set( Evas_Object *o, Evas_Object *clip) { Evas_Smart *es = evas_object_smart_smart_get (o); EvasEsmart *esObj = static_cast<EvasEsmart*> (evas_smart_data_get(es)); if (esObj) esObj->clipSetHandler( clip ); }
void EvasEsmart::wrap_move( Evas_Object *o, Evas_Coord x, Evas_Coord y) { Evas_Smart *es = evas_object_smart_smart_get (o); EvasEsmart *esObj = static_cast<EvasEsmart*> (evas_smart_data_get(es)); if (esObj) esObj->moveHandler( x, y ); }
void EvasEsmart::wrap_del( Evas_Object *o) { Evas_Smart *es = evas_object_smart_smart_get (o); EvasEsmart *esObj = static_cast<EvasEsmart*> (evas_smart_data_get(es)); if (esObj) esObj->delHandler(); }
void EvasEsmart::wrap_color_set( Evas_Object *o, int r, int g, int b, int a) { Evas_Smart *es = evas_object_smart_smart_get (o); EvasEsmart *esObj = static_cast<EvasEsmart*> (evas_smart_data_get(es)); if (esObj) esObj->colorSetHandler( r, g, b, a ); }
void EvasEsmart::wrap_add( Evas_Object *o ) { // FIXME: data not bound to object at this point. Think about new wrapper design... Evas_Smart *es = evas_object_smart_smart_get (o); EvasEsmart *esObj = static_cast<EvasEsmart*> (evas_smart_data_get(es)); if (esObj) esObj->addHandler(); }
EAPI int e_icon_scale_size_get(const Evas_Object *obj) { E_Smart_Data *sd; if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERR(0); if (!(sd = evas_object_smart_data_get(obj))) return 0; return sd->size; }
void EvasEsmart::wrap_show( Evas_Object *o) { cerr << "show" << endl; Evas_Smart *es = evas_object_smart_smart_get (o); EvasEsmart *esObj = static_cast<EvasEsmart*> (evas_smart_data_get(es)); if (esObj) esObj->showHandler(); }
EAPI Eina_Bool e_icon_scale_up_get(const Evas_Object *obj) { E_Smart_Data *sd; if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERR(0); if (!(sd = evas_object_smart_data_get(obj))) return EINA_FALSE; return sd->scale_up; }
EAPI void e_icon_preload_set(Evas_Object *obj, Eina_Bool preload) { E_Smart_Data *sd; if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERRNR(); if (!(sd = evas_object_smart_data_get(obj))) return; sd->preload = preload; }
EAPI void e_table_align_get(Evas_Object *obj, double *ax, double *ay) { E_Smart_Data *sd; if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERRNR(); sd = evas_object_smart_data_get(obj); if (ax) *ax = sd->align.x; if (ay) *ay = sd->align.y; }
EAPI void e_layout_virtual_size_get(Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) { E_Smart_Data *sd; if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERRNR(); sd = evas_object_smart_data_get(obj); if (w) *w = sd->vw; if (h) *h = sd->vh; }
EAPI Eina_Bool e_icon_alpha_get(const Evas_Object *obj) { E_Smart_Data *sd; if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERR(0); if (!(sd = evas_object_smart_data_get(obj))) return EINA_FALSE; if (sd->edje) return EINA_FALSE; return evas_object_image_alpha_get(sd->obj); }
EAPI int e_table_freeze(Evas_Object *obj) { E_Smart_Data *sd; if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERR(0); sd = evas_object_smart_data_get(obj); sd->frozen++; return sd->frozen; }
/** * Gets the editable object used by the entry object. It will allow you to have * better control on the text, the cursor or the selection of the entry with * the e_editable_*() functions. * * @param entry an entry object * @return Returns the editable object used by the entry object */ EAPI Evas_Object * e_entry_editable_object_get(Evas_Object *entry) { E_Entry_Smart_Data *sd; if (evas_object_smart_smart_get(entry) != _e_entry_smart) SMARTERR(NULL); if ((!entry) || (!(sd = evas_object_smart_data_get(entry)))) return NULL; return sd->editable_object; }
/** * Moves the selection bound forward by one character offset * * @param editable an editable object */ EAPI void e_editable_selection_move_right(Evas_Object *editable) { E_Editable_Smart_Data *sd; if (evas_object_smart_smart_get(editable) != _e_editable_smart) SMARTERRNR(); if ((!editable) || (!(sd = evas_object_smart_data_get(editable)))) return; e_editable_selection_pos_set(editable, sd->selection_pos + 1); }
/** * Unselects all the text of the editable object. The selection bound will be * moved to the cursor position * * @param editable an editable object */ EAPI void e_editable_unselect_all(Evas_Object *editable) { E_Editable_Smart_Data *sd; if (evas_object_smart_smart_get(editable) != _e_editable_smart) SMARTERRNR(); if ((!editable) || (!(sd = evas_object_smart_data_get(editable)))) return; e_editable_selection_pos_set(editable, sd->cursor_pos); }
/** * Moves the cursor backward by one character offset * * @param editable an editable object */ EAPI void e_editable_cursor_move_left(Evas_Object *editable) { E_Editable_Smart_Data *sd; if (evas_object_smart_smart_get(editable) != _e_editable_smart) SMARTERRNR(); if ((!editable) || (!(sd = evas_object_smart_data_get(editable)))) return; e_editable_cursor_pos_set(editable, sd->cursor_pos - 1); }
/** * Gets the position of the selection bound of the editable object * * @param editable an editable object * @return Returns the position of the selection bound of the editable object */ EAPI int e_editable_selection_pos_get(Evas_Object *editable) { E_Editable_Smart_Data *sd; if (evas_object_smart_smart_get(editable) != _e_editable_smart) SMARTERR(0); if ((!editable) || (!(sd = evas_object_smart_data_get(editable)))) return 0; return sd->selection_pos; }
/** * Gets the unicode length of the text of the editable object. The unicode * length is not always the length returned by strlen() since a UTF-8 char can * take several bytes * * @param editable an editable object * @return Returns the unicode length of the text of the editable object */ EAPI int e_editable_text_length_get(Evas_Object *editable) { E_Editable_Smart_Data *sd; if (evas_object_smart_smart_get(editable) != _e_editable_smart) SMARTERR(0); if ((!editable) || (!(sd = evas_object_smart_data_get(editable)))) return 0; return sd->unicode_length; }
/** * Gets whether or not the editable is in password mode * * @param editable an editable object * @return Returns 1 if the editable object is in the password mode, 0 otherwise */ EAPI int e_editable_password_get(Evas_Object *editable) { E_Editable_Smart_Data *sd; if (evas_object_smart_smart_get(editable) != _e_editable_smart) SMARTERR(0); if ((!editable) || (!(sd = evas_object_smart_data_get(editable)))) return 0; return sd->password_mode; }
/** * Gets the entire text of the editable object * * @param editable an editable object * @return Returns the entire text of the editable object */ EAPI const char * e_editable_text_get(Evas_Object *editable) { E_Editable_Smart_Data *sd; if (evas_object_smart_smart_get(editable) != _e_editable_smart) SMARTERR(NULL); if ((!editable) || (!(sd = evas_object_smart_data_get(editable)))) return NULL; return sd->text; }
EAPI void e_icon_alpha_set(Evas_Object *obj, Eina_Bool alpha) { E_Smart_Data *sd; if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERRNR(); if (!(sd = evas_object_smart_data_get(obj))) return; if (sd->edje) return; evas_object_image_alpha_set(sd->obj, alpha); }
EAPI void e_editable_disable(Evas_Object *editable) { E_Editable_Smart_Data *sd; if (evas_object_smart_smart_get(editable) != _e_editable_smart) SMARTERRNR(); if ((!editable) || (!(sd = evas_object_smart_data_get(editable)))) return; edje_object_signal_emit(sd->text_object, "e,state,disabled", "e"); }
/** * Gets the geometry of the cursor of the editable object * * @param editable an editable object * @param cx the x of the cursor * @param cy the y of the cursor * @param cw the width of the cursor * @param ch the height of the cursor */ EAPI void e_editable_cursor_geometry_get(Evas_Object *editable, Evas_Coord *cx, Evas_Coord *cy, Evas_Coord *cw, Evas_Coord *ch) { E_Editable_Smart_Data *sd; if (evas_object_smart_smart_get(editable) != _e_editable_smart) SMARTERRNR(); if ((!editable) || (!(sd = evas_object_smart_data_get(editable)))) return; evas_object_geometry_get(sd->cursor_object, cx, cy, cw, ch); }
EAPI void e_icon_scale_size_set(Evas_Object *obj, int size) { E_Smart_Data *sd; if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERRNR(); if (!(sd = evas_object_smart_data_get(obj))) return; sd->size = size; if (sd->edje) return; evas_object_image_load_size_set(sd->obj, sd->size, sd->size); }
EAPI void e_layout_coord_canvas_to_virtual(Evas_Object *obj, Evas_Coord cx, Evas_Coord cy, Evas_Coord *vx, Evas_Coord *vy) { E_Smart_Data *sd; if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERRNR(); sd = evas_object_smart_data_get(obj); if (vx) *vx = (cx - sd->x) * ((double)(sd->vw) / sd->w); if (vy) *vy = (cy - sd->y) * ((double)(sd->vh) / sd->h); }
EAPI void e_layout_coord_virtual_to_canvas(Evas_Object *obj, Evas_Coord vx, Evas_Coord vy, Evas_Coord *cx, Evas_Coord *cy) { E_Smart_Data *sd; if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERRNR(); sd = evas_object_smart_data_get(obj); if (cx) *cx = vx * ((double)(sd->w) / sd->vw) + sd->x; if (cy) *cy = vy * ((double)(sd->h) / sd->vh) + sd->y; }
EAPI void e_table_col_row_size_get(Evas_Object *obj, int *cols, int *rows) { E_Smart_Data *sd; if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERRNR(); sd = evas_object_smart_data_get(obj); if (sd->changed) _e_table_smart_extents_calcuate(sd); if (cols) *cols = sd->size.cols; if (rows) *rows = sd->size.rows; }
EAPI void e_table_size_max_get(Evas_Object *obj, Evas_Coord *maxw, Evas_Coord *maxh) { E_Smart_Data *sd; if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERRNR(); sd = evas_object_smart_data_get(obj); if (sd->changed) _e_table_smart_extents_calcuate(sd); if (maxw) *maxw = sd->max.w; if (maxh) *maxh = sd->max.h; }
EAPI int e_table_thaw(Evas_Object *obj) { E_Smart_Data *sd; if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERR(0); sd = evas_object_smart_data_get(obj); sd->frozen--; if (sd->frozen <= 0) _e_table_smart_reconfigure(sd); return sd->frozen; }