New cisco icons, and a fix in element.h
[dia.git] / app / diacanvas.h
blob39a7b0f1250e7b4b22b481094a9b268ba7f40123
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 Lesser 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 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser 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 __DIA_CANVAS_H__
28 #define __DIA_CANVAS_H__
31 #include <gdk/gdk.h>
32 #include <gtk/gtkcontainer.h>
35 #ifdef __cplusplus
36 extern "C" {
37 #endif /* __cplusplus */
40 #define DIA_TYPE_CANVAS (dia_canvas_get_type ())
41 #define DIA_CANVAS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_CANVAS, DiaCanvas))
42 #define DIA_CANVAS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIA_TYPE_CANVAS, DiaCanvasClass))
43 #define DIA_IS_CANVAS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIA_TYPE_CANVAS))
44 #define DIA_IS_CANVAS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DIA_TYPE_CANVAS))
45 #define DIA_CANVAS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DIA_TYPE_CANVAS, DiaCanvasClass))
48 typedef struct _DiaCanvas DiaCanvas;
49 typedef struct _DiaCanvasClass DiaCanvasClass;
50 typedef struct _DiaCanvasChild DiaCanvasChild;
52 struct _DiaCanvas
54 GtkContainer container;
56 GtkRequisition wantedsize;
57 GList *children;
60 struct _DiaCanvasClass
62 GtkContainerClass parent_class;
65 struct _DiaCanvasChild
67 GtkWidget *widget;
68 gint x;
69 gint y;
73 GType dia_canvas_get_type (void) G_GNUC_CONST;
74 GtkWidget* dia_canvas_new (void);
75 void dia_canvas_put (DiaCanvas *canvas,
76 GtkWidget *widget,
77 gint x,
78 gint y);
79 void dia_canvas_move (DiaCanvas *canvas,
80 GtkWidget *widget,
81 gint x,
82 gint y);
83 void dia_canvas_set_size (DiaCanvas *canvas,
84 gint width,
85 gint height);
87 #ifdef __cplusplus
89 #endif /* __cplusplus */
92 #endif /* __DIA_CANVAS_H__ */