2006-12-03 Dimitris Glezos <dimitris@glezos.com>
[dia.git] / lib / parent.h
blobf502b43a05e8ebf7318e4c96a7e3d97a0b431c6c
1 /* Dia -- an diagram creation/manipulation program
2 * Copyright (C) 2003 Vadim Berezniker
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.
19 #ifndef PARENT_H
20 #define PARENT_H
22 #include <glib.h>
23 #include "geometry.h"
25 GList *parent_list_affected(GList *obj_list);
26 gboolean parent_handle_extents(DiaObject *obj, Rectangle *extents);
27 Point parent_move_child_delta(Rectangle *p_ext, Rectangle *c_text, Point *delta);
28 void parent_point_extents(Point *point, Rectangle *extents);
29 gboolean parent_list_expand(GList *obj_list);
30 GList *parent_list_affected_hierarchy(GList *obj_list);
31 gboolean parent_handle_move_out_check(DiaObject *object, Point *to);
32 gboolean parent_handle_move_in_check(DiaObject *object, Point *to, Point *start_at);
33 void parent_apply_to_children(DiaObject *obj, DiaObjectFunc func);
35 #endif /* PARENT_H */