At Sat, 1 Feb 2014 06:59:49 +0900 Carsten Haitzler (The Rasterman) <ras...@rasterman.com> wrote:
> > On Fri, 31 Jan 2014 16:39:26 -0500 Robert Heller <hel...@deepsoft.com> said: > > > At Sat, 1 Feb 2014 06:28:50 +0900 Carsten Haitzler (The Rasterman) > > <ras...@rasterman.com> wrote: > > > > > > > > On Fri, 31 Jan 2014 12:47:22 -0500 Robert Heller <hel...@deepsoft.com> > > > said: > > > > > > > At Fri, 31 Jan 2014 14:12:35 -0200 Enlightenment users discussion & > > > > support <enlightenment-us...@lists.sourceforge.net> wrote: > > > > > > > > > > > > > > On Fri, Jan 31, 2014 at 12:56 PM, Robert Heller <hel...@deepsoft.com> > > > > > wrote: > > > > > > Where is this argument documented? Specificly, which Evas event > > > > > > structure is passed for an elementary button widget for a "clicked" > > > > > > event? I would like to get various event information, such as the x > > > > > > and y position of the mouse (I know this information is there > > > > > > somewhere, since it is part of the underlying X11 event). Can I > > > > > > just > > > > > > cast the event_info pointer to a Evas_Event_Mouse_Down object? Or > > > > > > is > > > > > > the event_info something else? Nowhere in the elementary docs for > > > > > > the button widget > > > > > > (http://docs.enlightenment.org/stable/elementary/group__Button.html) > > > > > > says what is passed. ALL of the examples totally ignore the third > > > > > > argument to the event callbacks and *nowhere* is this parameter > > > > > > documented, other than in the Evas docs which just say that it > > > > > > contains some event specific structure. > > > > > > > > > > > > > > > > As a general rule, if the documentation for the widget doesn't say > > > > > what event_info is, > > > > > you can assume there's nothing there. > > > > > > > > Well, that kind of sucks... > > > > > > > > Second question: given an Evas_Object (what is passed into the "clicked" > > > > event callback -- I am assuming this is the elm_button object), is it > > > > possible to get the *root* x & y position? I know that I can get the > > > > object's *relative* [to its parent] x and y via evas_object_geometry_get > > > > (), but how would I get the root window position? I presume I would > > > > have > > > > to walk up the tree, but would this work correctly? > > > > > > there i think you have a misunderstanding. evas_object_geometry_get() > > > never > > > gets relative geometry. evas has no concept of relative geometry... > > > everything is absolute in canvas geomtery. (relative to canvas top-left) > > > > What I *meant* by "relative geometry" was "relative to canvas top-left". > > What I *want* is the *absolute* x and y on the root window. Is it possible > > to get this? > > you will have to query the window location yourself. elm_win provides one of > these for you :) elm_win_screen_position_get() OK, next question. evas_object_move() does not seem to be able to 'move' *windows*. I can't find either a elm_ or evas_ function that sets the position of a *window*. Is there some function that does this? If so, where is it? Or is there some other magic that does this? > > > > > static > > > > void event_cb(void *data, Evas_Object *obj, void > > > > *event_info) { > > > > Evas_Coord relx, rely, topx, topy, rootx, rooty, w, > > > > h; Evas_Object *top = elm_object_top_widget_get ( obj > > > > ); > > > > evas_object_geometry_get (obj, &relx, &rely, &w, > > > > &h); evas_object_geometry_get (top, &topx, &topy, NULL, > > > > NULL); rootx = topx + > > > > relx; rooty = topy + rely; > > > > > > > > ... > > > > } > > > > > > > > Evas_Object *button = elm_button_add(win); > > > > evas_object_smart_callback_add(button, "clicked", event_cb, mumble); > > > > > > > > > > > > > > > -- > > > > > > Robert Heller -- 978-544-6933 / hel...@deepsoft.com > > > > > > Deepwoods Software -- http://www.deepsoft.com/ > > > > > > () ascii ribbon campaign -- against html e-mail > > > > > > /\ www.asciiribbon.org -- against proprietary attachments > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > WatchGuard Dimension instantly turns raw network data into > > > > > > actionable > > > > > > security intelligence. It gives you real-time visual feedback on key > > > > > > security issues and trends. Skip the complicated setup - simply > > > > > > import a virtual appliance and go from zero to informed in seconds. > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk > > > > > > _______________________________________________ > > > > > > enlightenment-users mailing list > > > > > > enlightenment-us...@lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/enlightenment-users > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > WatchGuard Dimension instantly turns raw network data into actionable > > > > > security intelligence. It gives you real-time visual feedback on key > > > > > security issues and trends. Skip the complicated setup - simply > > > > > import > > > > > a virtual appliance and go from zero to informed in seconds. > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk > > > > > _______________________________________________ > > > > > enlightenment-users mailing list > > > > > enlightenment-us...@lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/enlightenment-users > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Robert Heller -- 978-544-6933 / hel...@deepsoft.com > > > > Deepwoods Software -- http://www.deepsoft.com/ > > > > () ascii ribbon campaign -- against html e-mail > > > > /\ www.asciiribbon.org -- against proprietary attachments > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > WatchGuard Dimension instantly turns raw network data into actionable > > > > security intelligence. It gives you real-time visual feedback on key > > > > security issues and trends. Skip the complicated setup - simply import > > > > a virtual appliance and go from zero to informed in seconds. > > > > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk > > > > _______________________________________________ > > > > enlightenment-devel mailing list > > > > enlightenment-devel@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > > > > > > > > > > > > -- > > Robert Heller -- 978-544-6933 / hel...@deepsoft.com > > Deepwoods Software -- http://www.deepsoft.com/ > > () ascii ribbon campaign -- against html e-mail > > /\ www.asciiribbon.org -- against proprietary attachments > > > > > > > > > > ------------------------------------------------------------------------------ > > WatchGuard Dimension instantly turns raw network data into actionable > > security intelligence. It gives you real-time visual feedback on key > > security issues and trends. Skip the complicated setup - simply import > > a virtual appliance and go from zero to informed in seconds. > > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk > > _______________________________________________ > > enlightenment-users mailing list > > enlightenment-us...@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/enlightenment-users > > > > -- Robert Heller -- 978-544-6933 / hel...@deepsoft.com Deepwoods Software -- http://www.deepsoft.com/ () ascii ribbon campaign -- against html e-mail /\ www.asciiribbon.org -- against proprietary attachments ------------------------------------------------------------------------------ WatchGuard Dimension instantly turns raw network data into actionable security intelligence. It gives you real-time visual feedback on key security issues and trends. Skip the complicated setup - simply import a virtual appliance and go from zero to informed in seconds. http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel