Re: Can't set item tooltip

On 6 May 2011 04:35, Nikita Zlobin <nick87720z gmail com> wrote:
> В Thu, 5 May 2011 21:01:05 +0100
> Damon Chaplin <damonachaplin gmail com> пишет:
>> On 5 May 2011 11:54, Nikita Zlobin <nick87720z gmail com> wrote:
>> > o_O Polyline stores data in special points structure. What is
>> > difference between it and path? Instead of to write one / three
>> > integers to known or easy to calculate addresses, i need to create
>> > string, which is parsed then back to integers.
>> Yes, it would be nice to have an API to set the path data directly.
>> (This is mentioned in the TODO.)
>> Damon
> Do you have to change API? Sure, devs will be happy, but
> compatibility breakage... i mean, rename current data to data_svg and
> goo_canvas_path_new to goo_canvas_path_new_from_svg... or just add
> function like goo_canvas_path_svg_to_points (or how ever new data type
> should be called...).

I wouldn't break the existing API. I'd just add ways to set the path data.

Maybe goo_canvas_path_set_commands() to set the entire command array,
and things like goo_canvas_path_add_arc() to add individual commands.


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