Re: grid



On Mon, Sep 15, 2008 at 11:56 AM, Damon Chaplin
<damon karuna eclipse co uk> wrote:
>
> On Thu, 2008-09-11 at 17:45 +0200, Murray Cumming wrote:
>> On Thu, 2008-09-11 at 17:35 +0300, z pekar gmail com wrote:
>> > Hi,
>> > I have a GooCanvasImage with GooCanvasEllipse being added and removed
>> > from it. I need to place a grid on all this stuff in order to make
>> > placing of GooCanvasEllipse upon the image more accurate. What is the
>> > best way to do it? - draw it with paths or maybe use tables somehow?
>> > thank you
>> > Z. Pekar
>>
>> I did this with lines.
>>
>> Using C++ (and some awkward multiple inheritance) I created a whole
>> heirarchy of canvas items that can snap to the grid, or to rules. That's
>> in Glom. for its (unfinished) print layouts. If you are using C then
>> it's probably not that useful to you, but maybe it helps to know that
>> somebody else has done this.
>>
>> I think this kind of high-level functionality should be in a library
>> really.
>
> I think it might be difficult to come up with an API that everyone is
> happy with - it could be a bit too application-specific.
so maybe to find some common denominator and leave the rest to the programmer.


> Though demo code would be useful, or items that can be easily subclassed
> so they can be customized to suit a particular application.
does this mean we have a hope(i.e. you'll give it a try)?


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