Esempio n. 1
0
static void
_elm_ews_border_geo_apply(Ecore_Evas *ee, Evas_Object *o)
{
   int x, y, w, h;
   ecore_evas_geometry_get(ee, &x, &y, &w, &h);
   evas_object_geometry_set(o, x, y, w, h);
}
static void
_xembed_win_resize(Instance_Xembed *xembed)
{
   Evas_Coord first_x, first_y, first_w, first_h, last_x, last_y;
   Icon *icon;

   if (!xembed->icons)
     return;

   icon = eina_list_data_get(xembed->icons);
   evas_object_geometry_get(icon->rect, &first_x,
                            &first_y, &first_w, &first_h);

   icon = eina_list_last_data_get(xembed->icons);
   evas_object_geometry_get(icon->rect, &last_x,
                            &last_y, NULL, NULL);

   //because we always prepend xembed icons
   ecore_x_window_move_resize(xembed->win.base, last_x, last_y,
                              (first_x+first_w) - last_x,
                              (first_y+first_h) - last_y);
   evas_object_geometry_set(xembed->ec->frame, last_x, last_y,
                              (first_x+first_w) - last_x,
                              (first_y+first_h) - last_y);
}
Esempio n. 3
0
void generate_app(void)
{
   g_win = elm_win_add(NULL, "Title", ELM_WIN_BASIC);
   evas_object_geometry_set(g_win, 100, 100, 100, 100);

   g_bg = elm_bg_add(g_win);

   g_btn = elm_button_add(g_win);

   evas_object_show(g_btn);
   evas_object_show(g_bg);
   evas_object_show(g_win);
}
Esempio n. 4
0
static void
compiz_render_resize(Compiz_GL *cgl)
{
   evas_object_geometry_set(cgl->obj, 0, 0, e_comp->w, e_comp->h);
   evas_object_image_size_set(cgl->obj, e_comp->w, e_comp->h);
}