EAPI void _emotion_frame_resize(Evas_Object *obj, int w, int h, double ratio) { Smart_Data *sd; double tmp; int changed = 0; E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME); if ((w != sd->video.w) || (h != sd->video.h)) { sd->video.w = w; sd->video.h = h; _emotion_image_data_zero(sd->obj); changed = 1; } if (h > 0) tmp = (double)w / (double)h; else tmp = 1.0; if (ratio != tmp) tmp = ratio; if (tmp != sd->ratio) { sd->ratio = tmp; changed = 1; } if (changed) { evas_object_size_hint_request_set(obj, w, h); evas_object_smart_callback_call(obj, SIG_FRAME_RESIZE, NULL); evas_object_geometry_get(obj, NULL, NULL, &w, &h); _emotion_object_aspect_border_apply(obj, sd, w, h); } }
static void _update_sizing(Evas_Object *term) { Evas_Coord mw = 1, mh = 1, w, h; termio_config_update(term); evas_object_size_hint_min_get(term, &mw, &mh); if (mw < 1) mw = 1; if (mh < 1) mh = 1; w = tsize_w / mw; h = tsize_h / mh; evas_object_size_hint_request_set(term, w * mw, h * mh); expecting_resize = 1; }
static void _update_sizing(Font_Ctx *ctx) { Evas_Coord mw = 1, mh = 1, w, h; termio_config_update(ctx->term); evas_object_size_hint_min_get(ctx->term, &mw, &mh); if (mw < 1) mw = 1; if (mh < 1) mh = 1; w = ctx->tsize_w / mw; h = ctx->tsize_h / mh; evas_object_size_hint_request_set(ctx->term, w * mw, h * mh); ctx->expecting_resize = 1; }
void Object::setSizeHintRequest (const Size &size) { evas_object_size_hint_request_set (o, size.width (), size.height ()); }