]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/win_gtk.h
more properties
[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 /* Shadow types */
26 typedef enum
27 {
28 GTK_MYSHADOW_NONE,
29 GTK_MYSHADOW_THIN,
30 GTK_MYSHADOW_IN,
31 GTK_MYSHADOW_OUT
32 } GtkMyShadowType;
33
34 typedef struct _GtkPizzaChild GtkPizzaChild;
35 typedef struct _GtkPizza GtkPizza;
36 typedef struct _GtkPizzaClass GtkPizzaClass;
37
38 struct _GtkPizzaChild
39 {
40 GtkWidget *widget;
41 gint x;
42 gint y;
43 gint width;
44 gint height;
45 };
46
47 struct _GtkPizza
48 {
49 GtkContainer container;
50 GList *children;
51 GtkMyShadowType shadow_type;
52
53 guint m_xoffset;
54 guint m_yoffset;
55
56 gint m_width;
57
58 GdkWindow *bin_window;
59
60 gboolean external_expose;
61 };
62
63 struct _GtkPizzaClass
64 {
65 GtkContainerClass parent_class;
66
67 void (*set_scroll_adjustments) (GtkPizza *pizza,
68 GtkAdjustment *hadjustment,
69 GtkAdjustment *vadjustment);
70 };
71
72 WXDLLIMPEXP_CORE
73 GtkType gtk_pizza_get_type (void);
74 WXDLLIMPEXP_CORE
75 GtkWidget* gtk_pizza_new (void);
76
77 /* accessors */
78
79 WXDLLIMPEXP_CORE
80 gint gtk_pizza_get_xoffset (GtkPizza *pizza);
81 WXDLLIMPEXP_CORE
82 gint gtk_pizza_get_yoffset (GtkPizza *pizza);
83 WXDLLIMPEXP_CORE
84 void gtk_pizza_set_xoffset (GtkPizza *pizza, gint xoffset);
85 WXDLLIMPEXP_CORE
86 void gtk_pizza_set_yoffset (GtkPizza *pizza, gint yoffset);
87
88
89 WXDLLIMPEXP_CORE
90 gint gtk_pizza_get_rtl_offset (GtkPizza *pizza);
91
92 WXDLLIMPEXP_CORE
93 void gtk_pizza_set_shadow_type (GtkPizza *pizza,
94 GtkMyShadowType type);
95
96 WXDLLIMPEXP_CORE
97 void gtk_pizza_set_external (GtkPizza *pizza,
98 gboolean expose);
99
100 WXDLLIMPEXP_CORE
101 void gtk_pizza_scroll (GtkPizza *pizza,
102 gint dx,
103 gint dy);
104
105 WXDLLIMPEXP_CORE
106 void gtk_pizza_put (GtkPizza *pizza,
107 GtkWidget *widget,
108 gint x,
109 gint y,
110 gint width,
111 gint height);
112
113 WXDLLIMPEXP_CORE
114 void gtk_pizza_set_size (GtkPizza *pizza,
115 GtkWidget *widget,
116 gint x,
117 gint y,
118 gint width,
119 gint height);
120 #ifdef __cplusplus
121 }
122 #endif /* __cplusplus */
123
124
125 #endif /* __GTK_PIZZA_H__ */