]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/win_gtk.h
typo fix
[wxWidgets.git] / include / wx / gtk1 / win_gtk.h
CommitLineData
c67daf87 1/* ///////////////////////////////////////////////////////////////////////////
c801d85f 2// Name: win_gtk.h
da048e3d 3// Purpose: wxWindows's GTK base widget = GtkPizza
c801d85f 4// Author: Robert Roebling
58614078
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
c801d85f 7// Licence: wxWindows licence
c67daf87 8/////////////////////////////////////////////////////////////////////////// */
c801d85f
KB
9
10
da048e3d
RR
11#ifndef __GTK_PIZZA_H__
12#define __GTK_PIZZA_H__
c801d85f 13
e8106239
VZ
14#ifdef __cplusplus
15extern "C" {
16#endif /* __cplusplus */
17
c801d85f 18#include <gdk/gdk.h>
e8106239 19#include <gdk/gdkx.h>
c801d85f 20#include <gtk/gtkcontainer.h>
034be888 21#include <gtk/gtkadjustment.h>
d42508c2 22#ifndef __WXGTK20__
034be888 23#include <gtk/gtkfeatures.h>
d42508c2 24#endif
c801d85f 25
da048e3d
RR
26#define GTK_PIZZA(obj) GTK_CHECK_CAST (obj, gtk_pizza_get_type (), GtkPizza)
27#define GTK_PIZZA_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_pizza_get_type (), GtkPizzaClass)
28#define GTK_IS_PIZZA(obj) GTK_CHECK_TYPE (obj, gtk_pizza_get_type ())
c801d85f 29
5e014a0c
RR
30/* Shadow types */
31typedef enum
32{
0e09f76e
RR
33 GTK_MYSHADOW_NONE,
34 GTK_MYSHADOW_THIN,
35 GTK_MYSHADOW_IN,
36 GTK_MYSHADOW_OUT
5e014a0c 37} GtkMyShadowType;
c801d85f 38
b6fa52db 39typedef struct _GtkPizzaChild GtkPizzaChild;
da048e3d
RR
40typedef struct _GtkPizza GtkPizza;
41typedef struct _GtkPizzaClass GtkPizzaClass;
c801d85f 42
b6fa52db
RR
43struct _GtkPizzaChild
44{
45 GtkWidget *widget;
46 gint x;
47 gint y;
48 gint width;
49 gint height;
50};
51
da048e3d 52struct _GtkPizza
c801d85f 53{
0e09f76e
RR
54 GtkContainer container;
55 GList *children;
56 GtkMyShadowType shadow_type;
ed673c6a 57
0e09f76e
RR
58 guint width;
59 guint height;
ed673c6a 60
0e09f76e
RR
61 guint xoffset;
62 guint yoffset;
ed673c6a 63
0e09f76e 64 GdkWindow *bin_window;
ed673c6a 65
0e09f76e
RR
66 GdkVisibilityState visibility;
67 gulong configure_serial;
68 gint scroll_x;
69 gint scroll_y;
147bc491 70
0e09f76e
RR
71 gboolean clear_on_draw;
72 gboolean use_filter;
b420fb6a 73 gboolean external_expose;
c801d85f
KB
74};
75
da048e3d 76struct _GtkPizzaClass
c801d85f
KB
77{
78 GtkContainerClass parent_class;
034be888 79
da048e3d 80 void (*set_scroll_adjustments) (GtkPizza *pizza,
034be888
RR
81 GtkAdjustment *hadjustment,
82 GtkAdjustment *vadjustment);
c801d85f
KB
83};
84
da048e3d
RR
85guint gtk_pizza_get_type (void);
86GtkWidget* gtk_pizza_new (void);
147bc491 87
0e09f76e
RR
88void gtk_pizza_set_shadow_type (GtkPizza *pizza,
89 GtkMyShadowType type);
90
91void gtk_pizza_set_clear (GtkPizza *pizza,
92 gboolean clear);
ed673c6a 93
0e09f76e
RR
94void gtk_pizza_set_filter (GtkPizza *pizza,
95 gboolean use);
147bc491 96
b420fb6a
RR
97void gtk_pizza_set_external (GtkPizza *pizza,
98 gboolean expose);
99
0e09f76e
RR
100void gtk_pizza_scroll (GtkPizza *pizza,
101 gint dx,
102 gint dy);
8cb9f0d0
RR
103
104gint gtk_pizza_child_resized (GtkPizza *pizza,
105 GtkWidget *widget);
ed673c6a 106
0e09f76e
RR
107void gtk_pizza_put (GtkPizza *pizza,
108 GtkWidget *widget,
109 gint x,
110 gint y,
111 gint width,
112 gint height);
113
114void gtk_pizza_move (GtkPizza *pizza,
115 GtkWidget *widget,
116 gint x,
117 gint y );
fdd3ed7a 118
0e09f76e
RR
119void gtk_pizza_resize (GtkPizza *pizza,
120 GtkWidget *widget,
121 gint width,
122 gint height );
fdd3ed7a 123
0e09f76e
RR
124void gtk_pizza_set_size (GtkPizza *pizza,
125 GtkWidget *widget,
126 gint x,
127 gint y,
128 gint width,
129 gint height);
c801d85f
KB
130#ifdef __cplusplus
131}
132#endif /* __cplusplus */
133
134
da048e3d 135#endif /* __GTK_PIZZA_H__ */