Add fork support
[MacVim.git] / src / gui_gtk_f.h
blob767f88a5d988a09b98c2ec5c5e63bf1858e6b417
1 /* vi:set ts=8 sts=4 sw=4:
3 * VIM - Vi IMproved by Bram Moolenaar
5 * Do ":help uganda" in Vim to read copying and usage conditions.
6 * Do ":help credits" in Vim to see a list of people who contributed.
7 */
9 #ifndef __GTK_FORM_H__
10 #define __GTK_FORM_H__
12 #include <gdk/gdk.h>
13 #include <gtk/gtkcontainer.h>
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
20 #define GTK_TYPE_FORM (gtk_form_get_type ())
21 #define GTK_FORM(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_FORM, GtkForm))
22 #define GTK_FORM_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_FORM, GtkFormClass))
23 #define GTK_IS_FORM(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_FORM))
24 #define GTK_IS_FORM_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FORM))
27 typedef struct _GtkForm GtkForm;
28 typedef struct _GtkFormClass GtkFormClass;
30 struct _GtkForm
32 GtkContainer container;
34 GList *children;
36 guint width;
37 guint height;
39 GdkWindow *bin_window;
41 GdkVisibilityState visibility;
42 gulong configure_serial;
44 gint freeze_count;
47 struct _GtkFormClass
49 GtkContainerClass parent_class;
52 GtkType gtk_form_get_type(void);
54 GtkWidget *gtk_form_new(void);
56 void gtk_form_put(GtkForm * form, GtkWidget * widget,
57 gint x, gint y);
59 void gtk_form_move(GtkForm *form, GtkWidget * widget,
60 gint x, gint y);
62 void gtk_form_move_resize(GtkForm * form, GtkWidget * widget,
63 gint x, gint y,
64 gint w, gint h);
65 void gtk_form_set_size(GtkForm * form, guint width, guint height);
67 /* These disable and enable moving and repainting respectively. If you
68 * want to update the layout's offsets but do not want it to repaint
69 * itself, you should use these functions.
72 void gtk_form_freeze(GtkForm *form);
73 void gtk_form_thaw(GtkForm *form);
76 #ifdef __cplusplus
78 #endif
79 #endif /* __GTK_FORM_H__ */