display ruler, line/point evaluation
[gpiv.git] / src / utils.h
blobefd2af818dba81752a615675bc4b87dc45342d5e
1 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 c-style: "K&R" -*- */
3 /*
4 libgpiv - library for Particle Image Velocimetry
6 Copyright (C) 2002 Gerber van der Graaf
8 This file is part of libgpiv.
10 Libgpiv is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2, or (at your option)
13 any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software Foundation,
22 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 ----------------------------------------------------------------------*/
27 * widgets prototypes of display
28 * $Log: utils.h,v $
29 * Revision 1.2 2003-06-27 13:47:26 gerber
30 * display ruler, line/point evaluation
32 * Revision 1.1.1.1 2003/06/17 17:10:52 gerber
33 * Imported gpiv
38 #ifndef UTILS_H
39 #define UTILS_H
42 * mem allocation functions
45 /*--------------------------------------------------------------------
46 Allocates 2-dimensional array for GnomeCanvasItem */
47 GnomeCanvasItem
48 **alloc_gci_matrix(long nr,
49 long nc
52 /*--------------------------------------------------------------------
53 Frees 2-dimensional array for GnomeCanvasItem */
54 void
55 free_gci_matrix(GnomeCanvasItem **item,
56 long nr,
57 long nc
61 void
62 free_all_bufmems(Display * disp);
64 void
65 free_img_bufmems(Display * disp);
67 void
68 free_eval_bufmems(Display * disp);
70 void
71 free_post_bufmems(Display * disp);
73 void
74 copy_img_par(ImagePar image_par_src,
75 ImagePar * image_par_dest,
76 gboolean force,
77 int print_par
80 void
81 copy_piv_par(PivEvalPar piv_eval_par_src,
82 PivEvalPar * piv_eval_par_dest,
83 gboolean force,
84 int print_par
88 * general gtk functions
90 void
91 sensitive(GpivConsole *gpiv,
92 enum WidgetSet wi_set,
93 gint sense);
95 void
96 destroy(GtkWidget * widget,
97 gpointer data);
99 void
100 gtk_warning(gchar * msg, ...);
102 void
103 gtk_error(gchar * msg, ...);
107 #endif /* UTILS_H */