@since 1.1 ?

On Fri, Jun 17, 2011 at 8:34 AM, Enlightenment SVN
<no-re...@enlightenment.org> wrote:
> Log:
> allow getting ot table packing child too.
>
>
>
> Author:       raster
> Date:         2011-06-17 04:34:30 -0700 (Fri, 17 Jun 2011)
> New Revision: 60447
> Trac:         http://trac.enlightenment.org/e/changeset/60447
>
> Modified:
>  trunk/evas/ChangeLog trunk/evas/src/lib/Evas.h 
> trunk/evas/src/lib/canvas/evas_object_table.c
>
> Modified: trunk/evas/ChangeLog
> ===================================================================
> --- trunk/evas/ChangeLog        2011-06-17 11:25:30 UTC (rev 60446)
> +++ trunk/evas/ChangeLog        2011-06-17 11:34:30 UTC (rev 60447)
> @@ -407,4 +407,4 @@
>
>        * Allow evas table to re-pack the same object without error and just
>         update packing parameters
> -
> +        * Allow to get packign location of table child
>
> Modified: trunk/evas/src/lib/Evas.h
> ===================================================================
> --- trunk/evas/src/lib/Evas.h   2011-06-17 11:25:30 UTC (rev 60446)
> +++ trunk/evas/src/lib/Evas.h   2011-06-17 11:34:30 UTC (rev 60447)
> @@ -8328,6 +8328,20 @@
>
>
>  /**
> + * Get packgin location of a child of table
> + *
> + * @param o The given table object.
> + * @param child The child object to add.
> + * @param col pointer to store relative-horizontal position to place child.
> + * @param row pointer to store relative-vertical position to place child.
> + * @param colspan pointer to store how many relative-horizontal position to 
> use for this child.
> + * @param rowspan pointer to store how many relative-vertical position to 
> use for this child.
> + *
> + * @return 1 on success, 0 on failure.
> + */
> +EAPI Eina_Bool                           
> evas_object_table_pack_get(Evas_Object *o, Evas_Object *child, unsigned short 
> *col, unsigned short *row, unsigned short *colspan, unsigned short *rowspan);
> +
> +/**
>  * Add a new child to a table object.
>  *
>  * @param o The given table object.
>
> Modified: trunk/evas/src/lib/canvas/evas_object_table.c
> ===================================================================
> --- trunk/evas/src/lib/canvas/evas_object_table.c       2011-06-17 11:25:30 
> UTC (rev 60446)
> +++ trunk/evas/src/lib/canvas/evas_object_table.c       2011-06-17 11:34:30 
> UTC (rev 60447)
> @@ -1046,6 +1046,28 @@
>  }
>
>  EAPI Eina_Bool
> +evas_object_table_pack_get(Evas_Object *o, Evas_Object *child, unsigned 
> short *col, unsigned short *row, unsigned short *colspan, unsigned short 
> *rowspan)
> +{
> +   Evas_Object_Table_Option *opt;
> +
> +   EVAS_OBJECT_TABLE_DATA_GET_OR_RETURN_VAL(o, priv, 0);
> +   opt = _evas_object_table_option_get(child);
> +   if (!opt)
> +     {
> +        if (col) *col = 0;
> +        if (row) *row = 0;
> +        if (colspan) *colspan = 0;
> +        if (rowspan) *rowspan = 0;
> +        return EINA_FALSE;
> +     }
> +   if (col) *col = opt->col;
> +   if (row) *row = opt->row;
> +   if (colspan) *colspan = opt->colspan;
> +   if (rowspan) *rowspan = opt->rowspan;
> +   return EINA_TRUE;
> +}
> +
> +EAPI Eina_Bool
>  evas_object_table_pack(Evas_Object *o, Evas_Object *child, unsigned short 
> col, unsigned short row, unsigned short colspan, unsigned short rowspan)
>  {
>    Evas_Object_Table_Option *opt;
>
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>



-- 
Rafael Antognolli
ProFUSION embedded systems
http://profusion.mobi

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to