More honesty about bug 144394, it's not quite fixed yet.
[dia.git] / app / object_ops.h
blob1a4016d0608e28e4632adb32f1ed58c5cab58c12
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.
18 #ifndef OBJECT_OPS_H
19 #define OBJECT_OPS_H
21 #include "object.h"
22 #include "display.h"
23 #include "diagram.h"
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(DiaObject *obj, Diagram *dia);
36 void object_add_updates_list(GList *list, Diagram *dia);
37 ConnectionPoint *object_find_connectpoint_display(DDisplay *ddisp,
38 Point *pos,
39 DiaObject *notthis,
40 gboolean snap_to_objects);
42 void object_connect_display(DDisplay *ddisp, DiaObject *obj,
43 Handle *handle, gboolean snap_to_objects);
44 /* Adds Undo info for connected objects. */
46 Point object_list_corner(GList *list);
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 */