Re: grid
- From: z pekar gmail com
- To: goocanvas-list gnome org
- Subject: Re: grid
- Date: Thu, 11 Sep 2008 21:17:06 +0300
gtkdatabox seems to have this implemented
see examples/grid.c
It is LGPL - maybe take this functionality from there?
On Thu, Sep 11, 2008 at 7:32 PM, <z pekar gmail com> wrote:
> Yes, exactly - a vertical and a horizontal GtkRulers and a grid that
> corresponds to their marks is what I'm looking for...
> I just was wondering whether it would be possible to create a
> GooCanvasTable of NxM size with non-transparent borders and then pack
> the GooCanvasImage with all the stuff on it in the table like this
> (0,N-1, 0, M-1)?
>
> but having it in the library would be much better :) - should I submit
> a feature request? where?
>
>
> On Thu, Sep 11, 2008 at 6:45 PM, Murray Cumming <murrayc murrayc com> 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.
>>
>> --
>> murrayc murrayc com
>> www.murrayc.com
>> www.openismus.com
>>
>>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]