Improve object rotation API in libgeda + gschem
commit21a8790b0540c374b00cfc45ad79ab474a4655b0
authorPeter Clifton <pcjc2@cam.ac.uk>
Sun, 18 Nov 2007 21:34:35 +0000 (18 21:34 +0000)
committerPeter Clifton <pcjc2@cam.ac.uk>
Sun, 18 Nov 2007 21:34:35 +0000 (18 21:34 +0000)
tree1ed208903b41ef9949caf514de7db60d0fa962e9
parent626f5c071a1dfea55e0214f6064b29908152d792
Improve object rotation API in libgeda + gschem

Implements the o_rotate_world() function which rotates any object, and
o_{glist,list}_rotate_world() functions which rotate lists of objects.

Moves o_complex_rotate_world() from gschem into libgeda, and modifies
appropriate places in libgeda + gschem to use this new API. The gschem
function o_rotate_90_world() is greatly simplified, becoming a
convenience function calling o_glist_rotate_world() and ensuring all
necessary drawing and connection updates are made. This function is
renamed o_rotate_world_update().

Removes the o_{complex,text}_rotate_lowlevel() functions which are made
redundant with the above changes.
gschem/include/prototype.h
gschem/src/i_callbacks.c
gschem/src/o_complex.c
gschem/src/o_misc.c
gschem/src/x_event.c
libgeda/include/prototype.h
libgeda/src/o_basic.c
libgeda/src/o_complex_basic.c
libgeda/src/o_list.c
libgeda/src/o_text_basic.c