]>
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 | |
da048e3d | 25 | typedef struct _GtkPizza GtkPizza; |
b6fa52db | 26 | |
da048e3d | 27 | struct _GtkPizza |
c801d85f | 28 | { |
0e09f76e RR |
29 | GtkContainer container; |
30 | GList *children; | |
5b12ccee | 31 | |
a31bb944 RR |
32 | guint m_xoffset; |
33 | guint m_yoffset; | |
69597639 | 34 | |
0e09f76e | 35 | GdkWindow *bin_window; |
c801d85f KB |
36 | }; |
37 | ||
20123d49 | 38 | WXDLLIMPEXP_CORE |
e1ff9329 | 39 | GtkType gtk_pizza_get_type (void); |
20123d49 | 40 | WXDLLIMPEXP_CORE |
da048e3d | 41 | GtkWidget* gtk_pizza_new (void); |
147bc491 | 42 | |
a31bb944 RR |
43 | /* accessors */ |
44 | ||
a31bb944 RR |
45 | WXDLLIMPEXP_CORE |
46 | gint gtk_pizza_get_xoffset (GtkPizza *pizza); | |
47 | WXDLLIMPEXP_CORE | |
48 | gint gtk_pizza_get_yoffset (GtkPizza *pizza); | |
49 | WXDLLIMPEXP_CORE | |
50 | void gtk_pizza_set_xoffset (GtkPizza *pizza, gint xoffset); | |
51 | WXDLLIMPEXP_CORE | |
52 | void gtk_pizza_set_yoffset (GtkPizza *pizza, gint yoffset); | |
53 | ||
54 | ||
428f4657 RR |
55 | WXDLLIMPEXP_CORE |
56 | gint gtk_pizza_get_rtl_offset (GtkPizza *pizza); | |
57 | ||
5b12ccee | 58 | |
20123d49 | 59 | WXDLLIMPEXP_CORE |
5b12ccee | 60 | void gtk_pizza_scroll (GtkPizza *pizza, |
0e09f76e RR |
61 | gint dx, |
62 | gint dy); | |
8cb9f0d0 | 63 | |
20123d49 | 64 | WXDLLIMPEXP_CORE |
0e09f76e RR |
65 | void gtk_pizza_put (GtkPizza *pizza, |
66 | GtkWidget *widget, | |
67 | gint x, | |
68 | gint y, | |
5b12ccee MW |
69 | gint width, |
70 | gint height); | |
0e09f76e | 71 | |
20123d49 | 72 | WXDLLIMPEXP_CORE |
0e09f76e RR |
73 | void gtk_pizza_set_size (GtkPizza *pizza, |
74 | GtkWidget *widget, | |
75 | gint x, | |
76 | gint y, | |
77 | gint width, | |
78 | gint height); | |
c801d85f KB |
79 | #ifdef __cplusplus |
80 | } | |
81 | #endif /* __cplusplus */ | |
82 | ||
83 | ||
da048e3d | 84 | #endif /* __GTK_PIZZA_H__ */ |