On Mon, 7 Nov 2011 14:36:50 -0200 Gustavo Sverzut Barbieri <[email protected]> wrote:
> Shouldnt be needed or done. Geometry is not a good reason. Sure, but it was the first example that came to mind. A better one would be creating a dbus notification event from an image. You need the row stride and image data pointer, which obviously can't be gotten from the opaque pointer. > > On Monday, November 7, 2011, Mike Blumenkrantz <[email protected]> wrote: > > On Mon, 07 Nov 2011 17:35:47 +0200 > > Tom Hacohen <[email protected]> wrote: > > > >> Actually, we never do that! We never expose internal objects for outside > >> manipulation, even if it's just for querying purposes. I don't know if > >> that decision is good or not, but it's a fact. > >> > >> If this rule is broken, it should be discussed as I'd like to do the > >> same in elm_entry. > >> > >> -- > >> Tom. > >> > >> > > >> > -----Original Message----- > >> > From: "Enlightenment SVN"<[email protected]> > >> > To: [email protected] > >> > Cc: > >> > Sent: 11-11-07(월) 00:56:31 > >> > Subject: E SVN: discomfitor trunk/elementary/src/lib > >> > Log: > >> > add function to return image object for use with evas apis > >> > Author: discomfitor > >> > Date: 2011-11-06 07:56:31 -0800 (Sun, 06 Nov 2011) > >> > New Revision: 64830 > >> > Trac: http://trac.enlightenment.org/e/changeset/64830 > >> > Modified: > >> > trunk/elementary/src/lib/Elementary.h.intrunk/elementary/src/lib/elm_icon.c > >> > Modified: trunk/elementary/src/lib/Elementary.h.in > >> > =================================================================== > >> > --- trunk/elementary/src/lib/Elementary.h.in 2011-11-06 15:43:48 UTC > (rev > >> > 64829) +++ trunk/elementary/src/lib/Elementary.h.in 2011-11-06 > 15:56:31 UTC > >> > (rev 64830) @@ -5053,6 +5053,15 @@ > >> > */ > >> > EAPI int elm_icon_prescale_get(const Evas_Object *obj) > EINA_ARG_NONNULL(1); > >> > /** > >> > + * Gets the image object of the icon. DO NOT MODIFY THIS. > >> > + * > >> > + * @param obj The icon object > >> > + * @return The internal icon object > >> > + * > >> > + * @ingroup Icon > >> > + */ > >> > + EAPI Evas_Object *elm_icon_object_get(Evas_Object *obj) > >> > EINA_ARG_NONNULL(1); > >> > + /** > >> > * Sets the icon lookup order used by elm_icon_standard_set(). > >> > * > >> > * @param obj The icon object > >> > Modified: trunk/elementary/src/lib/elm_icon.c > >> > =================================================================== > >> > --- trunk/elementary/src/lib/elm_icon.c 2011-11-06 15:43:48 UTC (rev > 64829) > >> > +++ trunk/elementary/src/lib/elm_icon.c 2011-11-06 15:56:31 UTC (rev > 64830) > >> > @@ -1014,3 +1014,13 @@ > >> > if (!wd) return 0; > >> > return _els_smart_icon_scale_size_get(wd->img); > >> > } > >> > + > >> > +EAPI Evas_Object * > >> > +elm_icon_object_get(Evas_Object *obj) > >> > +{ > >> > + ELM_CHECK_WIDTYPE(obj, widtype) 0; > >> > + Widget_Data *wd = elm_widget_data_get(obj); > >> > + > >> > + if (!wd) return NULL; > >> > + return wd->img; > >> > +} > >> > > Actually, most widgets have an object_get function now. You need it in > order to > > get geometry and whatnot. > > > > -- > > Mike Blumenkrantz > > Zentific: Doctor recommended, mother approved. > > > > > ------------------------------------------------------------------------------ > > RSA(R) Conference 2012 > > Save $700 by Nov 18 > > Register now > > http://p.sf.net/sfu/rsa-sfdev2dev1 > > _______________________________________________ > > enlightenment-devel mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > -- Mike Blumenkrantz Zentific: Doctor recommended, mother approved. ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
