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

gEDA-bug: [Bug 905294] Re: Feature * scheme-api * pointer-position function should return snapped coordinates if requested.



Hi Luigi,

I agree that this sort of functionality should be available, but there
are two reasons why I'm not keen on either of your approaches:

1) Developers might wish to snap points other than the pointer position
2) Developers might wish to use the snap distance for things other than snapping points.

Instead, how about adding two functions:

- One that returns the current snap distance (in the 'gschem window' module, maybe)
- One that snaps a point in the format (x . y) using a given snap distance (not sure what module to put it in).

What do you think?

                               Peter

** Changed in: geda
   Importance: Undecided => Low

** Changed in: geda
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of gEDA Bug
Team, which is subscribed to gEDA.
https://bugs.launchpad.net/bugs/905294

Title:
  Feature * scheme-api * pointer-position function should return snapped
  coordinates if requested.

Status in GPL Electronic Design Automation tools:
  Confirmed

Bug description:
  It could be usefull if the pointer-position function returns the
  current coordinates of the mouse pointer snapped to the grid if
  requested.

  I think two alternative solutions can be take in consideration:
  1) make a new function (i.e. "snapped-pointer-position") to do this job, or
  2) using the current function with an optional argument to do that.

  In the patch in attachment i opted for the second choice.

  Thanks,
  Luigi

To manage notifications about this bug go to:
https://bugs.launchpad.net/geda/+bug/905294/+subscriptions


_______________________________________________
geda-bug mailing list
geda-bug@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-bug