Do not return NULL as boolean from wonder_is_lost() nor wonder_is_built()
[freeciv.git] / client / gui-gtk-2.0 / gtkpixcomm.h
blob13683ec2e99474691cec66a86c951015f506d02b
1 /* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library 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 GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
21 * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
22 * file for a list of people on the GTK+ Team. See the ChangeLog
23 * files for a list of changes. These files are distributed with
24 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
27 #ifndef __GTK_PIXCOMM_H__
28 #define __GTK_PIXCOMM_H__
31 #include <gtk/gtk.h>
33 #include "sprite.h"
36 G_BEGIN_DECLS
39 #define GTK_TYPE_PIXCOMM (gtk_pixcomm_get_type ())
40 #define GTK_PIXCOMM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PIXCOMM, GtkPixcomm))
41 #define GTK_PIXCOMM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PIXCOMM, GtkPixcommClass))
42 #define GTK_IS_PIXCOMM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PIXCOMM))
43 #define GTK_IS_PIXCOMM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PIXCOMM))
44 #define GTK_PIXCOMM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PIXCOMM, GtkPixcommClass))
47 typedef struct _GtkPixcomm GtkPixcomm;
48 typedef struct _GtkPixcommClass GtkPixcommClass;
50 struct _GtkPixcomm
52 GtkMisc misc;
54 guint freeze_count;
56 gint w, h;
57 GArray *actions;
59 gboolean is_scaled;
60 gdouble scale;
63 struct _GtkPixcommClass
65 GtkMiscClass parent_class;
69 GType gtk_pixcomm_get_type (void) G_GNUC_CONST;
70 GtkWidget *gtk_pixcomm_new (gint width, gint height);
71 void gtk_pixcomm_set_scale(GtkPixcomm *pixcomm, gdouble scale);
72 void gtk_pixcomm_copyto(GtkPixcomm *pixcomm, struct sprite *src,
73 gint x, gint y);
74 void gtk_pixcomm_clear (GtkPixcomm *pixcomm);
75 void gtk_pixcomm_fill (GtkPixcomm *pixcomm, GdkColor *color);
77 void gtk_pixcomm_freeze (GtkPixcomm *pixcomm);
78 void gtk_pixcomm_thaw (GtkPixcomm *pixcomm);
81 G_END_DECLS
83 #endif /* __GTK_PIXCOMM_H__ */