]>
Commit | Line | Data |
---|---|---|
c67daf87 | 1 | /* /////////////////////////////////////////////////////////////////////////// |
c801d85f | 2 | // Name: win_gtk.h |
77ffb593 | 3 | // Purpose: wxWidgets's GTK base widget = GtkPizza |
c801d85f | 4 | // Author: Robert Roebling |
58614078 RR |
5 | // Id: $Id$ |
6 | // Copyright: (c) 1998 Robert Roebling | |
5b12ccee | 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 |
15 | extern "C" { | |
16 | #endif /* __cplusplus */ | |
17 | ||
c801d85f | 18 | #include <gtk/gtkcontainer.h> |
c801d85f | 19 | |
20123d49 MW |
20 | #include "wx/dlimpexp.h" |
21 | ||
da048e3d | 22 | #define GTK_PIZZA(obj) GTK_CHECK_CAST (obj, gtk_pizza_get_type (), GtkPizza) |
da048e3d | 23 | #define GTK_IS_PIZZA(obj) GTK_CHECK_TYPE (obj, gtk_pizza_get_type ()) |
c801d85f | 24 | |
b6fa52db | 25 | typedef struct _GtkPizzaChild GtkPizzaChild; |
da048e3d RR |
26 | typedef struct _GtkPizza GtkPizza; |
27 | typedef struct _GtkPizzaClass GtkPizzaClass; | |
c801d85f | 28 | |
b6fa52db RR |
29 | struct _GtkPizzaChild |
30 | { | |
31 | GtkWidget *widget; | |
32 | gint x; | |
33 | gint y; | |
34 | gint width; | |
35 | gint height; | |
36 | }; | |
37 | ||
da048e3d | 38 | struct _GtkPizza |
c801d85f | 39 | { |
0e09f76e RR |
40 | GtkContainer container; |
41 | GList *children; | |
5b12ccee | 42 | |
a31bb944 RR |
43 | guint m_xoffset; |
44 | guint m_yoffset; | |
69597639 | 45 | |
0e09f76e | 46 | GdkWindow *bin_window; |
c801d85f KB |
47 | }; |
48 | ||
da048e3d | 49 | struct _GtkPizzaClass |
c801d85f KB |
50 | { |
51 | GtkContainerClass parent_class; | |
034be888 | 52 | |
da048e3d | 53 | void (*set_scroll_adjustments) (GtkPizza *pizza, |
5b12ccee MW |
54 | GtkAdjustment *hadjustment, |
55 | GtkAdjustment *vadjustment); | |
c801d85f KB |
56 | }; |
57 | ||
20123d49 | 58 | WXDLLIMPEXP_CORE |
e1ff9329 | 59 | GtkType gtk_pizza_get_type (void); |
20123d49 | 60 | WXDLLIMPEXP_CORE |
da048e3d | 61 | GtkWidget* gtk_pizza_new (void); |
147bc491 | 62 | |
a31bb944 RR |
63 | /* accessors */ |
64 | ||
a31bb944 RR |
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 | ||
428f4657 RR |
75 | WXDLLIMPEXP_CORE |
76 | gint gtk_pizza_get_rtl_offset (GtkPizza *pizza); | |
77 | ||
5b12ccee | 78 | |
20123d49 | 79 | WXDLLIMPEXP_CORE |
5b12ccee | 80 | void gtk_pizza_scroll (GtkPizza *pizza, |
0e09f76e RR |
81 | gint dx, |
82 | gint dy); | |
8cb9f0d0 | 83 | |
20123d49 | 84 | WXDLLIMPEXP_CORE |
0e09f76e RR |
85 | void gtk_pizza_put (GtkPizza *pizza, |
86 | GtkWidget *widget, | |
87 | gint x, | |
88 | gint y, | |
5b12ccee MW |
89 | gint width, |
90 | gint height); | |
0e09f76e | 91 | |
20123d49 | 92 | WXDLLIMPEXP_CORE |
0e09f76e RR |
93 | void gtk_pizza_set_size (GtkPizza *pizza, |
94 | GtkWidget *widget, | |
95 | gint x, | |
96 | gint y, | |
97 | gint width, | |
98 | gint height); | |
c801d85f KB |
99 | #ifdef __cplusplus |
100 | } | |
101 | #endif /* __cplusplus */ | |
102 | ||
103 | ||
da048e3d | 104 | #endif /* __GTK_PIZZA_H__ */ |