Re: [Vala] Assist with compile issue re Cairo.PathData



nevermind.. I just noticed that's wrong too :D


On Tue, Oct 15, 2013 at 2:42 PM, Shawn Ferris <shawn ferris gmail com>wrote:

On Tue, Oct 15, 2013 at 12:48 PM, Donn Ingle <donn ingle gmail com> wrote:

array.. A quick glance at the cairo vapi, and I think you really want
this?:
    Cairo.PathData[] data = path.data;

I feel disturbed by that ;) Not sure why.

The code I'm trying to Vala-ize is here:
http://cairographics.org/manual/cairo-Paths.html#cairo-path-data-t


Ahh.. this makes a bit more sense.. I still don't know if this is the
correct way, but...

    Cairo.PathData[] data;

    for (int i = 0; i < this.path.num_data; i +=
this.path.data[i].header.length) {

      var data = &this.path.data[i];

Shawn



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]