]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/win_gtk.h
Compilation fixes
[wxWidgets.git] / include / wx / gtk / win_gtk.h
1 /* ///////////////////////////////////////////////////////////////////////////
2 // Name: win_gtk.h
3 // Purpose: wxWidgets's GTK base widget = GtkPizza
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////// */
9
10
11 #ifndef __GTK_PIZZA_H__
12 #define __GTK_PIZZA_H__
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif /* __cplusplus */
17
18 #include <gtk/gtkcontainer.h>
19
20 #include "wx/dlimpexp.h"
21
22 #define GTK_PIZZA(obj) GTK_CHECK_CAST (obj, gtk_pizza_get_type (), GtkPizza)
23 #define GTK_IS_PIZZA(obj) GTK_CHECK_TYPE (obj, gtk_pizza_get_type ())
24
25 typedef struct _GtkPizzaChild GtkPizzaChild;
26 typedef struct _GtkPizza GtkPizza;
27 typedef struct _GtkPizzaClass GtkPizzaClass;
28
29 struct _GtkPizzaChild
30 {
31 GtkWidget *widget;
32 gint x;
33 gint y;
34 gint width;
35 gint height;
36 };
37
38 struct _GtkPizza
39 {
40 GtkContainer container;
41 GList *children;
42
43 guint m_xoffset;
44 guint m_yoffset;
45
46 GdkWindow *bin_window;
47 };
48
49 struct _GtkPizzaClass
50 {
51 GtkContainerClass parent_class;
52
53 void (*set_scroll_adjustments) (GtkPizza *pizza,
54 GtkAdjustment *hadjustment,
55 GtkAdjustment *vadjustment);
56 };
57
58 WXDLLIMPEXP_CORE
59 GtkType gtk_pizza_get_type (void);
60 WXDLLIMPEXP_CORE
61 GtkWidget* gtk_pizza_new (void);
62
63 /* accessors */
64
65 WXDLLIMPEXP_CORE
66 gint gtk_pizza_get_xoffset (GtkPizza *pizza);
67 WXDLLIMPEXP_CORE
68 gint gtk_pizza_get_yoffset (GtkPizza *pizza);
69 WXDLLIMPEXP_CORE
70 void gtk_pizza_set_xoffset (GtkPizza *pizza, gint xoffset);
71 WXDLLIMPEXP_CORE
72 void gtk_pizza_set_yoffset (GtkPizza *pizza, gint yoffset);
73
74
75 WXDLLIMPEXP_CORE
76 gint gtk_pizza_get_rtl_offset (GtkPizza *pizza);
77
78
79 WXDLLIMPEXP_CORE
80 void gtk_pizza_scroll (GtkPizza *pizza,
81 gint dx,
82 gint dy);
83
84 WXDLLIMPEXP_CORE
85 void gtk_pizza_put (GtkPizza *pizza,
86 GtkWidget *widget,
87 gint x,
88 gint y,
89 gint width,
90 gint height);
91
92 WXDLLIMPEXP_CORE
93 void gtk_pizza_set_size (GtkPizza *pizza,
94 GtkWidget *widget,
95 gint x,
96 gint y,
97 gint width,
98 gint height);
99 #ifdef __cplusplus
100 }
101 #endif /* __cplusplus */
102
103
104 #endif /* __GTK_PIZZA_H__ */