Hello Jaehwan,
as we discussed this personally, I suggest you to add one more parameter
'type' to this API like elm_gengrid/genlist_item_bring_in/show().

elm_gengrid_item_bring_in(Elm_Object_Item *it,
Elm_Gengrid_Item_Scrollto_Type type);
elm_genlist_item_bring_in(Elm_Object_Item *it,
Elm_Genlist_Item_Scrollto_Type type);

Users may want those In/TOP/MIDDLE cases.
elm_list does not support this but it should be changed in elementary 2.0
for consistency.

Thanks.

Daniel Juyung Seo (SeoZ)




On Tue, Nov 13, 2012 at 4:56 PM, Jaehwan Kim <[email protected]>wrote:

> in svn. thanks^^
>
> 2012년 11월 12일 월요일에 ChunEon Park님이 작성:
>
> > since -&gt; @since in doc.
> >
> >
> >
> > ------------------------------------
> >
> > -Regards, Hermet-
> >
> > -----Original Message-----
> > From: "Enlightenment SVN"&lt;[email protected]<javascript:;>&gt;
> > To: &lt;[email protected] <javascript:;>&gt;;
> > Cc:
> > Sent: 2012-11-12 (월) 16:29:18
> > Subject: E SVN: jaehwan IN trunk/elementary: . src/lib
> >
> > Log:
> > Add elm_toolbar_item_show/bring_in. It show or bring a specific item,
> when
> > the toolbar can be scrolled.
> >
> >
> > Author:       jaehwan
> > Date:         2012-11-11 23:29:17 -0800 (Sun, 11 Nov 2012)
> > New Revision: 79134
> > Trac:         http://trac.enlightenment.org/e/changeset/79134
> >
> > Modified:
> >   trunk/elementary/ChangeLog trunk/elementary/NEWS
> > trunk/elementary/src/lib/elm_toolbar.c
> > trunk/elementary/src/lib/elm_toolbar.h
> >
> > Modified: trunk/elementary/ChangeLog
> > ===================================================================
> > --- trunk/elementary/ChangeLog  2012-11-12 05:53:16 UTC (rev 79133)
> > +++ trunk/elementary/ChangeLog  2012-11-12 07:29:17 UTC (rev 79134)
> > @@ -669,3 +669,8 @@
> >
> >          * Support virtualkeypad, clipbard state shange signals from
> >                   conformant
> > +
> > +2012-11-12  Jaehwan Kim
> > +
> > +        * Add elm_toolbar_item_show/bring_in.
> > +          It show or bring a specific item, when the toolbar can be
> > scrolled.
> >
> > Modified: trunk/elementary/NEWS
> > ===================================================================
> > --- trunk/elementary/NEWS       2012-11-12 05:53:16 UTC (rev 79133)
> > +++ trunk/elementary/NEWS       2012-11-12 07:29:17 UTC (rev 79134)
> > @@ -13,6 +13,7 @@
> >     * Add a search API to list all localisations corresponding to a name
> > in map
> >     * Add elm_notify_align_set/get
> >     * Add virtualkeypad, clipboard state change signals from conformant.
> > +   * Add elm_toolbar_item_show/bring_in.
> >
> >  Improvements:
> >
> >
> > Modified: trunk/elementary/src/lib/elm_toolbar.c
> > ===================================================================
> > --- trunk/elementary/src/lib/elm_toolbar.c      2012-11-12 05:53:16 UTC
> > (rev 79133)
> > +++ trunk/elementary/src/lib/elm_toolbar.c      2012-11-12 07:29:17 UTC
> > (rev 79134)
> > @@ -3256,3 +3256,35 @@
> >
> >     return sd-&gt;reorder_mode;
> >  }
> > +
> > +EAPI void
> > +elm_toolbar_item_show(Elm_Object_Item *it)
> > +{
> > +   Evas_Coord x, y, w, h, bx, by;
> > +   Elm_Toolbar_Item *item = (Elm_Toolbar_Item *)it;
> > +
> > +   ELM_TOOLBAR_ITEM_CHECK_OR_RETURN(it);
> > +   ELM_TOOLBAR_DATA_GET(WIDGET(item), sd);
> > +
> > +   evas_object_geometry_get(sd-&gt;bx, &amp;bx, &amp;by, NULL, NULL);
> > +   evas_object_geometry_get(VIEW(item), &amp;x, &amp;y, &amp;w, &amp;h);
> > +   x = x - bx;
> > +   y = y - by;
> > +   sd-&gt;s_iface-&gt;content_region_show(WIDGET(item), x, y, w, h);
> > +}
> > +
> > +EAPI void
> > +elm_toolbar_item_bring_in(Elm_Object_Item *it)
> > +{
> > +   Evas_Coord x, y, w, h, bx, by;
> > +   Elm_Toolbar_Item *item = (Elm_Toolbar_Item *)it;
> > +
> > +   ELM_TOOLBAR_ITEM_CHECK_OR_RETURN(it);
> > +   ELM_TOOLBAR_DATA_GET(WIDGET(item), sd);
> > +
> > +   evas_object_geometry_get(sd-&gt;bx, &amp;bx, &amp;by, NULL, NULL);
> > +   evas_object_geometry_get(VIEW(item), &amp;x, &amp;y, &amp;w, &amp;h);
> > +   x = x - bx;
> > +   y = y - by;
> > +   sd-&gt;s_iface-&gt;region_bring_in(WIDGET(item), x, y, w, h);
> > +}
> >
> > Modified: trunk/elementary/src/lib/elm_toolbar.h
> > ===================================================================
> > --- trunk/elementary/src/lib/elm_toolbar.h      2012-11-12 05:53:16 UTC
> > (rev 79133)
> > +++ trunk/elementary/src/lib/elm_toolbar.h      2012-11-12 07:29:17 UTC
> > (rev 79134)
> > @@ -998,5 +998,29 @@
> >  EAPI Eina_Bool                     elm_toolbar_reorder_mode_get(const
> > Evas_Object *obj);
> >
> >  /**
> > + * Show a specific item, when the toolbar can be scrolled.
> > + *
> > + * @param it the toolbar item
> > + *
> > + * see elm_toolbar_item_bring_in()
> > + *
> > + * since 1.8
> > + * @ingroup Toolbar
> > + */
> > +EAPI void                          elm_toolbar_item_show(Elm_Object_Item
> > *it);
> > +
> > +/**
> > + * Show a specific item with scroll animation, when the toolbar can be
> > scrolled.
> > + *
> > + * @param it the toolbar item
> > + *
> > + * see elm_toolbar_item_show()
> > + *
> > + * since 1.8
> > + * @ingroup Toolbar
> > + */
> > +EAPI void
> >  elm_toolbar_item_bring_in(Elm_Object_Item *it);
> > +
> > +/**
> >   * @}
> >   */
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Everyone hates slow websites. So do we.
> > Make your web apps faster with AppDynamics
> > Download AppDynamics Lite for free today:
> > http://p.sf.net/sfu/appdyn_d2d_nov
> > _______________________________________________
> > enlightenment-svn mailing list
> > [email protected] <javascript:;>
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Everyone hates slow websites. So do we.
> > Make your web apps faster with AppDynamics
> > Download AppDynamics Lite for free today:
> > http://p.sf.net/sfu/appdyn_d2d_nov
> > _______________________________________________
> > enlightenment-devel mailing list
> > [email protected] <javascript:;>
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> >
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to