Hi,

I was trying to set a box that will include some thumbs at my
application but i couldn't find how to use swallowing with a box that
will include some pics. Here is the EDC part:

part {
                       name: "picthumblist";
                       clip_to: "left";
                       repeat_events: 1;
                       type: "SWALLOW";


                       description
                       {
                               state: "default" 0.0;
                               color: 255 255 255 128;
                       visible: 1;
                       rel1
                       {
                               relative: 0 0;
                               offset: 40 40;
                               to: left;
                       }
                       rel2
                       {
                               relative: 0 1;
                               offset: 800 -70;
                               to: left;
                       }
                       }
               }

Ned here is the code:

      Evas_Object *box;
       Evas_Object *img;
       box=evas_object_box_add(evas);
       evas_object_box_layout_set(box,
evas_object_box_layout_homogeneous_max_size_horizontal, NULL, NULL);

       img=evas_object_image_filled_add(evas);
       evas_object_image_file_set(img, "/animage.png", NULL);
       evas_object_box_prepend(box, img);
       ecore_evas_object_associate(ee,box,0);
       evas_object_name_set(box, "picthumblist");

       const Evas_Object *swallow = NULL;
       swallow = edje_object_part_object_get(edje, "place_for_box");
       int w, h;

       edje_object_size_min_get(swallow, &w, &h);
       printf("%d %d\n", w, h);
       edje_object_part_swallow(edje, "place_for_box", img);
       evas_object_show(box);

The EDC part is as you can see is clipped_to another part and is being
transited, become shown when i click on an menu item at the app.

Will be happy if someone help.

-- 
Oğuz Yarımtepe
www.loopbacking.info

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to