1 /* Dia -- an diagram creation/manipulation program
2 * Copyright (C) 1998 Alexander Larsson
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 /* Note that TOP/LEFT and BOTTOM/RIGHT are the same */
26 #define DIA_ALIGN_TOP 0
27 #define DIA_ALIGN_LEFT 0
28 #define DIA_ALIGN_CENTER 1
29 #define DIA_ALIGN_BOTTOM 2
30 #define DIA_ALIGN_RIGHT 2
31 #define DIA_ALIGN_POSITION 3
32 #define DIA_ALIGN_EQUAL 4
33 #define DIA_ALIGN_ADJACENT 5
35 void object_add_updates(Object
*obj
, Diagram
*dia
);
36 void object_add_updates_list(GList
*list
, Diagram
*dia
);
37 ConnectionPoint
*object_find_connectpoint_display(DDisplay
*ddisp
,
40 void object_connect_display(DDisplay
*ddisp
, Object
*obj
,
42 /* Adds Undo info for connected objects. */
44 GList
*object_copy_list(GList
*list
);
45 Point
object_list_corner(GList
*list
);
46 void object_list_move_delta(GList
*objects
, Point
*delta
);
47 void object_list_align_h(GList
*objects
, Diagram
*dia
, int align
);
48 void object_list_align_v(GList
*objects
, Diagram
*dia
, int align
);
49 #endif /* OBJECT_OPS_H */