Re: [E-devel] FW: FW: Propose a Eina_Path

2016-11-11 Thread Cedric BAIL
On Nov 11, 2016 04:39, "Andrew Williams" <a...@andywilliams.me> wrote:
>
> It strange that eina defines a rectangle and no other shapes - is that
even
> used outside a graphical context?


Eina started as a simple toolset and got a lot of stuff that was just
refactoring of our stack. We have a tiler and rectangle along with matrix,
just from the top of my head. I clearly see the need for having a path
primitive, the question is where and under what name. It would be fine in
eina, if not for the name that is confusing. It would be fine in Ector, if
not for Ector depending on efl_gfx_shape. Thinking of it, for binding, we
want this API to be in Eo. So why not extending efl_gfx_shape to provide
what it is missing and have elementary use it.


Added question what is the goal of elm_path object ? I am personnally
looking forward to an elm_chart object a lot more.


Best,

  Cedric


> A
> On Fri, 11 Nov 2016 at 11:17, Hermet Park <her...@hermet.pe.kr> wrote:
>
> > Thanks for your advice.
> >
> > But imo, it's unlike to graphical one such as evas_rect and evas_line...
> > Path itself is more likely to the eina_rect...
> > Because path itself is just data information.
> > Also, efl_gfx_shape should rely on it.
> >
> > -Original Message-
> > From: "Andrew Williams"<a...@andywilliams.me>
> > To: "Enlightenment developer list"<
> > enlightenment-devel@lists.sourceforge.net>;
> > Cc:
> > Sent: 2016-11-11 (금) 20:07:44
> > Subject: Re: [E-devel] FW: Propose a Eina_Path
> >
> > Alongside Evas_Rect and Evas_Line?
> >
> > On Fri, 11 Nov 2016 at 08:59, Hermet Park <her...@hermet.pe.kr> wrote:
> >
> > > Yes, but I have no idea about proper place than eina atm.
> > >
> > > I feel like It's more close to an data structure & utility function
than
> > > interface.
> > >
> > > Any idea?
> > >
> > > -Original Message-
> > > From: "Andrew Williams"<a...@andywilliams.me>
> > > To: "Enlightenment developer list"<
> > > enlightenment-devel@lists.sourceforge.net>;
> > > Cc:
> > > Sent: 2016-11-11 (금) 17:31:04
> > > Subject: Re: [E-devel] Propose a Eina_Path
> > >
> > > The name makes sense in a graphical context. Therefore if it can be
> > > somewhere less general than Eina then it could make sense.
> > >
> > > Andy
> > >
> > > On Fri, 11 Nov 2016 at 08:00, Gustavo Sverzut Barbieri <
> > barbi...@gmail.com
> > > >
> > > wrote:
> > >
> > > > Em sexta-feira, 11 de novembro de 2016, Hermet Park <
> > her...@hermet.pe.kr
> > > >
> > > > escreveu:
> > > >
> > > > > Hello everyone.
> > > > >
> > > > > Currently, I'm trying a prototype - Path Object  using the evas
map.
> > > > > (specifically for a scenario, text on path).
> > > > > It looks nice if it works on gl backend. (i will share the result
> > > later)
> > > > >
> > > > > But before we talk about path object stuff, I wanna propose a
> > > Eina_Path.
> > > > >
> > > > > After reviewed efl_gfx_shape interface again,
> > > > > I realized path interface should be moved out from the
efl_gfx_shape
> > > > > interface so that Path Object also utilize the path stuff.
> > > > >
> > > > > Curently, efl_gfx_shape has more than path functionalities such
as a
> > > > > stroke,
> > > > >
> > > > > I think path stuff can become a more generic function set.
> > > > > So, I'd like to move the path stuff into Eina.
> > > > >
> > > > > If then, path object will be able to utilize the Eina Path and
> > > > > efl_gfx_shape will do also.
> > > > >
> > > > > ie)
> > > > > Eina_Path *path = eina_path_add();
> > > > > eina_path_append_move_to(path, xxx);
> > > > > eina_path_append_line_to(path, xxx);
> > > > > eina_path_append_xxx (...);
> > > > >
> > > > > ...
> > > > >
> > > > > efl_gfx_shape_path_set(shape, path);
> > > > >
> > > > > also,
> > > > >
> > > > > elm_path_object_path_set(obj, path);
> > > > >
> > > > > If you agree on this, I will work on this stuff soon.
>

Re: [E-devel] FW: FW: Propose a Eina_Path

2016-11-11 Thread Andrew Williams
It strange that eina defines a rectangle and no other shapes - is that even
used outside a graphical context?

A
On Fri, 11 Nov 2016 at 11:17, Hermet Park <her...@hermet.pe.kr> wrote:

> Thanks for your advice.
>
> But imo, it's unlike to graphical one such as evas_rect and evas_line...
> Path itself is more likely to the eina_rect...
> Because path itself is just data information.
> Also, efl_gfx_shape should rely on it.
>
> -Original Message-
> From: "Andrew Williams"<a...@andywilliams.me>
> To: "Enlightenment developer list"<
> enlightenment-devel@lists.sourceforge.net>;
> Cc:
> Sent: 2016-11-11 (금) 20:07:44
> Subject: Re: [E-devel] FW: Propose a Eina_Path
>
> Alongside Evas_Rect and Evas_Line?
>
> On Fri, 11 Nov 2016 at 08:59, Hermet Park <her...@hermet.pe.kr> wrote:
>
> > Yes, but I have no idea about proper place than eina atm.
> >
> > I feel like It's more close to an data structure & utility function than
> > interface.
> >
> > Any idea?
> >
> > -Original Message-
> > From: "Andrew Williams"<a...@andywilliams.me>
> > To: "Enlightenment developer list"<
> > enlightenment-devel@lists.sourceforge.net>;
> > Cc:
> > Sent: 2016-11-11 (금) 17:31:04
> > Subject: Re: [E-devel] Propose a Eina_Path
> >
> > The name makes sense in a graphical context. Therefore if it can be
> > somewhere less general than Eina then it could make sense.
> >
> > Andy
> >
> > On Fri, 11 Nov 2016 at 08:00, Gustavo Sverzut Barbieri <
> barbi...@gmail.com
> > >
> > wrote:
> >
> > > Em sexta-feira, 11 de novembro de 2016, Hermet Park <
> her...@hermet.pe.kr
> > >
> > > escreveu:
> > >
> > > > Hello everyone.
> > > >
> > > > Currently, I'm trying a prototype - Path Object  using the evas map.
> > > > (specifically for a scenario, text on path).
> > > > It looks nice if it works on gl backend. (i will share the result
> > later)
> > > >
> > > > But before we talk about path object stuff, I wanna propose a
> > Eina_Path.
> > > >
> > > > After reviewed efl_gfx_shape interface again,
> > > > I realized path interface should be moved out from the efl_gfx_shape
> > > > interface so that Path Object also utilize the path stuff.
> > > >
> > > > Curently, efl_gfx_shape has more than path functionalities such as a
> > > > stroke,
> > > >
> > > > I think path stuff can become a more generic function set.
> > > > So, I'd like to move the path stuff into Eina.
> > > >
> > > > If then, path object will be able to utilize the Eina Path and
> > > > efl_gfx_shape will do also.
> > > >
> > > > ie)
> > > > Eina_Path *path = eina_path_add();
> > > > eina_path_append_move_to(path, xxx);
> > > > eina_path_append_line_to(path, xxx);
> > > > eina_path_append_xxx (...);
> > > >
> > > > ...
> > > >
> > > > efl_gfx_shape_path_set(shape, path);
> > > >
> > > > also,
> > > >
> > > > elm_path_object_path_set(obj, path);
> > > >
> > > > If you agree on this, I will work on this stuff soon.
> > > >
> > > > Any objections?
> > >
> > >
> > > The name. I started to read this email thinking abou file path. :-)
> > >
> > > But as for moving it to eina, I don't think it's the right place. Eina
> > has
> > > no other similar primitive.
> > >
> > >
> > >
> > > > 
> > > > --
> > > > Developer Access Program for Intel Xeon Phi Processors
> > > > Access to Intel Xeon Phi processor-based developer platforms.
> > > > With one year of Intel Parallel Studio XE.
> > > > Training and support from Colfax.
> > > > Order your platform today. http://sdm.link/xeonphi
> > > > ___
> > > > enlightenment-devel mailing list
> > > > enlightenment-devel@lists.sourceforge.net <javascript:;>
> > > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > > >
> > >
> > >
> > > --
> > > Gustavo Sverzut Barbieri
> > > --
> > > Mobile: +55 (16

[E-devel] FW: FW: Propose a Eina_Path

2016-11-11 Thread Hermet Park
Thanks for your advice.

But imo, it's unlike to graphical one such as evas_rect and evas_line...
Path itself is more likely to the eina_rect...
Because path itself is just data information.
Also, efl_gfx_shape should rely on it.

-Original Message-
From: "Andrew Williams"<a...@andywilliams.me> 
To: "Enlightenment developer list"<enlightenment-devel@lists.sourceforge.net>; 
Cc: 
Sent: 2016-11-11 (금) 20:07:44
Subject: Re: [E-devel] FW: Propose a Eina_Path
 
Alongside Evas_Rect and Evas_Line?

On Fri, 11 Nov 2016 at 08:59, Hermet Park <her...@hermet.pe.kr> wrote:

> Yes, but I have no idea about proper place than eina atm.
>
> I feel like It's more close to an data structure & utility function than
> interface.
>
> Any idea?
>
> -Original Message-
> From: "Andrew Williams"<a...@andywilliams.me>
> To: "Enlightenment developer list"<
> enlightenment-devel@lists.sourceforge.net>;
> Cc:
> Sent: 2016-11-11 (금) 17:31:04
> Subject: Re: [E-devel] Propose a Eina_Path
>
> The name makes sense in a graphical context. Therefore if it can be
> somewhere less general than Eina then it could make sense.
>
> Andy
>
> On Fri, 11 Nov 2016 at 08:00, Gustavo Sverzut Barbieri <barbi...@gmail.com
> >
> wrote:
>
> > Em sexta-feira, 11 de novembro de 2016, Hermet Park <her...@hermet.pe.kr
> >
> > escreveu:
> >
> > > Hello everyone.
> > >
> > > Currently, I'm trying a prototype - Path Object  using the evas map.
> > > (specifically for a scenario, text on path).
> > > It looks nice if it works on gl backend. (i will share the result
> later)
> > >
> > > But before we talk about path object stuff, I wanna propose a
> Eina_Path.
> > >
> > > After reviewed efl_gfx_shape interface again,
> > > I realized path interface should be moved out from the efl_gfx_shape
> > > interface so that Path Object also utilize the path stuff.
> > >
> > > Curently, efl_gfx_shape has more than path functionalities such as a
> > > stroke,
> > >
> > > I think path stuff can become a more generic function set.
> > > So, I'd like to move the path stuff into Eina.
> > >
> > > If then, path object will be able to utilize the Eina Path and
> > > efl_gfx_shape will do also.
> > >
> > > ie)
> > > Eina_Path *path = eina_path_add();
> > > eina_path_append_move_to(path, xxx);
> > > eina_path_append_line_to(path, xxx);
> > > eina_path_append_xxx (...);
> > >
> > > ...
> > >
> > > efl_gfx_shape_path_set(shape, path);
> > >
> > > also,
> > >
> > > elm_path_object_path_set(obj, path);
> > >
> > > If you agree on this, I will work on this stuff soon.
> > >
> > > Any objections?
> >
> >
> > The name. I started to read this email thinking abou file path. :-)
> >
> > But as for moving it to eina, I don't think it's the right place. Eina
> has
> > no other similar primitive.
> >
> >
> >
> > > 
> > > --
> > > Developer Access Program for Intel Xeon Phi Processors
> > > Access to Intel Xeon Phi processor-based developer platforms.
> > > With one year of Intel Parallel Studio XE.
> > > Training and support from Colfax.
> > > Order your platform today. http://sdm.link/xeonphi
> > > ___
> > > enlightenment-devel mailing list
> > > enlightenment-devel@lists.sourceforge.net <javascript:;>
> > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > >
> >
> >
> > --
> > Gustavo Sverzut Barbieri
> > --
> > Mobile: +55 (16) 99354-9890
> >
> >
> --
> > Developer Access Program for Intel Xeon Phi Processors
> > Access to Intel Xeon Phi processor-based developer platforms.
> > With one year of Intel Parallel Studio XE.
> > Training and support from Colfax.
> > Order your platform today. http://sdm.link/xeonphi
> > ___
> > enlightenment-devel mailing list
> > enlightenment-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> >
>
>