On 05/09/12 07:32, Tom Hacohen wrote:
> Another idea:
> Make evas_object_move move stuff within the framespace (i.e default
> framespace already taken into account)

Maybe I am not understanding you here because I have not had my coffee 
yet, or maybe you are not understanding framespace, but that is exactly 
what is going on now. evas_object_move accounts for the framespace.

  and add another call
> (evas_object_move_raw?) that'll be used for "raw" unaltered coords.
>

IMO, this would not be the way to go as then, from a user/developer 
perspective, it becomes "well, when do I use move_raw vs regular move"

dh


> --
> Tom.
>
> On 05/09/12 09:24, Tom Hacohen wrote:
>> Feels a bit unacceptable. Maybe we need evas to have the framespace
>> start at (0,0), and let people draw on negative values just for the
>> frame. But making all the code awful everywhere doesn't sound right.
>>
>> --
>> Tom.
>>
>> On 05/09/12 06:56, Daniel Juyung Seo wrote:
>>> Well.. DH, do we need to consider framespace for every evas_object_move?
>>>
>>> Daniel Juyung Seo (SeoZ)
>>>
>>> On Wed, Sep 5, 2012 at 9:53 AM, ChunEon Park <her...@naver.com> wrote:
>>>> ahh
>>>>
>>>> Isn't there any automatic way?
>>>>
>>>>
>>>> ------------------------------------
>>>> -Regards, Hermet-
>>>> -----Original Message-----
>>>> From: "Enlightenment SVN"<no-re...@enlightenment.org>
>>>> To: <enlightenment-...@lists.sourceforge.net>;
>>>> Cc:
>>>> Sent: 2012-09-04 (화) 21:51:57
>>>> Subject: E SVN: devilhorns trunk/elementary/src/lib
>>>>
>>>> Log:
>>>> Elm: Account for framespace X also. Thanks for spotting this Daniel ;)
>>>>
>>>>
>>>>
>>>> Author:       devilhorns
>>>> Date:         2012-09-04 05:51:57 -0700 (Tue, 04 Sep 2012)
>>>> New Revision: 76129
>>>> Trac:         http://trac.enlightenment.org/e/changeset/76129
>>>>
>>>> Modified:
>>>>      trunk/elementary/src/lib/elc_naviframe.c 
>>>> trunk/elementary/src/lib/elm_menu.c
>>>>
>>>> Modified: trunk/elementary/src/lib/elc_naviframe.c
>>>> ===================================================================
>>>> --- trunk/elementary/src/lib/elc_naviframe.c2012-09-04 12:46:02 UTC (rev 
>>>> 76128)
>>>> +++ trunk/elementary/src/lib/elc_naviframe.c2012-09-04 12:51:57 UTC (rev 
>>>> 76129)
>>>> @@ -703,17 +703,17 @@
>>>>        Evas_Coord minw = -1, minh = -1;
>>>>        Elm_Naviframe_Item *it;
>>>>        Evas_Coord x, y, w, h;
>>>> -   Evas_Coord fy;
>>>> +   Evas_Coord fx, fy;
>>>>
>>>>        ELM_NAVIFRAME_DATA_GET(obj, sd);
>>>>
>>>>        evas_output_framespace_get(evas_object_evas_get(obj),
>>>> -                              NULL, &fy, NULL, NULL);
>>>> +                              &fx, &fy, NULL, NULL);
>>>>
>>>>        evas_object_geometry_get(obj, &x, &y, &w, &h);
>>>>        EINA_INLIST_FOREACH (sd->stack, it)
>>>>          {
>>>> -        evas_object_move(VIEW(it), x, y + fy);
>>>> +        evas_object_move(VIEW(it), x + fx, y + fy);
>>>>             evas_object_resize(VIEW(it), w, h);
>>>>             edje_object_size_min_calc(VIEW(it), &it->minw, &it->minh);
>>>>             if (it->minw > minw) minw = it->minw;
>>>>
>>>> Modified: trunk/elementary/src/lib/elm_menu.c
>>>> ===================================================================
>>>> --- trunk/elementary/src/lib/elm_menu.c2012-09-04 12:46:02 UTC (rev 76128)
>>>> +++ trunk/elementary/src/lib/elm_menu.c2012-09-04 12:51:57 UTC (rev 76129)
>>>> @@ -131,7 +131,7 @@
>>>>        Eina_List *l;
>>>>        Elm_Menu_Item *item;
>>>>        Evas_Coord x_p, y_p, w_p, h_p, x2, y2, w2, h2, bw, bh;
>>>> -   Evas_Coord fy;
>>>> +   Evas_Coord fx, fy;
>>>>
>>>>        ELM_MENU_DATA_GET(obj, sd);
>>>>
>>>> @@ -144,9 +144,9 @@
>>>>        evas_object_geometry_get(sd->parent, &x2, &y2, &w2, &h2);
>>>>        evas_object_geometry_get(sd->bx, NULL, NULL, &bw, &bh);
>>>>        evas_output_framespace_get(evas_object_evas_get(sd->bx),
>>>> -                              NULL, &fy, NULL, NULL);
>>>> +                              &fx, &fy, NULL, NULL);
>>>>
>>>> -   x_p = sd->xloc;
>>>> +   x_p = sd->xloc - fx;
>>>>        y_p = sd->yloc - fy;
>>>>
>>>>        if (elm_widget_mirrored_get(obj)) x_p -= w_p;
>>>>


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to