]>
Commit | Line | Data |
---|---|---|
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 _GtkPizza GtkPizza; | |
26 | ||
27 | struct _GtkPizza | |
28 | { | |
29 | GtkContainer container; | |
30 | GList *children; | |
31 | ||
32 | guint m_xoffset; | |
33 | guint m_yoffset; | |
34 | ||
35 | gboolean m_noscroll; | |
36 | ||
37 | GdkWindow *bin_window; | |
38 | }; | |
39 | ||
40 | WXDLLIMPEXP_CORE | |
41 | GtkType gtk_pizza_get_type (void); | |
42 | WXDLLIMPEXP_CORE | |
43 | GtkWidget* gtk_pizza_new (void); | |
44 | WXDLLIMPEXP_CORE | |
45 | GtkWidget* gtk_pizza_new_no_scroll (void); | |
46 | ||
47 | /* accessors */ | |
48 | ||
49 | WXDLLIMPEXP_CORE | |
50 | gint gtk_pizza_get_xoffset (GtkPizza *pizza); | |
51 | WXDLLIMPEXP_CORE | |
52 | gint gtk_pizza_get_yoffset (GtkPizza *pizza); | |
53 | WXDLLIMPEXP_CORE | |
54 | void gtk_pizza_set_xoffset (GtkPizza *pizza, gint xoffset); | |
55 | WXDLLIMPEXP_CORE | |
56 | void gtk_pizza_set_yoffset (GtkPizza *pizza, gint yoffset); | |
57 | ||
58 | ||
59 | WXDLLIMPEXP_CORE | |
60 | gint gtk_pizza_get_rtl_offset (GtkPizza *pizza); | |
61 | ||
62 | ||
63 | WXDLLIMPEXP_CORE | |
64 | void gtk_pizza_scroll (GtkPizza *pizza, | |
65 | gint dx, | |
66 | gint dy); | |
67 | ||
68 | WXDLLIMPEXP_CORE | |
69 | void gtk_pizza_put (GtkPizza *pizza, | |
70 | GtkWidget *widget, | |
71 | gint x, | |
72 | gint y, | |
73 | gint width, | |
74 | gint height); | |
75 | ||
76 | WXDLLIMPEXP_CORE | |
77 | void gtk_pizza_set_size (GtkPizza *pizza, | |
78 | GtkWidget *widget, | |
79 | gint x, | |
80 | gint y, | |
81 | gint width, | |
82 | gint height); | |
83 | #ifdef __cplusplus | |
84 | } | |
85 | #endif /* __cplusplus */ | |
86 | ||
87 | ||
88 | #endif /* __GTK_PIZZA_H__ */ |