]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk1/win_gtk.h
more compilation fixes for VC6 (#9492)
[wxWidgets.git] / include / wx / gtk1 / win_gtk.h
... / ...
CommitLineData
1/* ///////////////////////////////////////////////////////////////////////////
2// Name: wx/gtk1/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
15extern "C" {
16#endif /* __cplusplus */
17
18#include <gdk/gdk.h>
19#include <gdk/gdkx.h>
20#include <gtk/gtkcontainer.h>
21#include <gtk/gtkadjustment.h>
22#include <gtk/gtkfeatures.h>
23
24#include "wx/dlimpexp.h"
25
26#define GTK_PIZZA(obj) GTK_CHECK_CAST (obj, gtk_pizza_get_type (), GtkPizza)
27#define GTK_PIZZA_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_pizza_get_type (), GtkPizzaClass)
28#define GTK_IS_PIZZA(obj) GTK_CHECK_TYPE (obj, gtk_pizza_get_type ())
29
30/* Shadow types */
31typedef enum
32{
33 GTK_MYSHADOW_NONE,
34 GTK_MYSHADOW_THIN,
35 GTK_MYSHADOW_IN,
36 GTK_MYSHADOW_OUT
37} GtkMyShadowType;
38
39typedef struct _GtkPizzaChild GtkPizzaChild;
40typedef struct _GtkPizza GtkPizza;
41typedef struct _GtkPizzaClass GtkPizzaClass;
42
43struct _GtkPizzaChild
44{
45 GtkWidget *widget;
46 gint x;
47 gint y;
48 gint width;
49 gint height;
50};
51
52struct _GtkPizza
53{
54 GtkContainer container;
55 GList *children;
56 GtkMyShadowType shadow_type;
57
58 guint width;
59 guint height;
60
61 guint xoffset;
62 guint yoffset;
63
64 GdkWindow *bin_window;
65
66 GdkVisibilityState visibility;
67 gulong configure_serial;
68 gint scroll_x;
69 gint scroll_y;
70
71 gboolean clear_on_draw;
72 gboolean use_filter;
73 gboolean external_expose;
74};
75
76struct _GtkPizzaClass
77{
78 GtkContainerClass parent_class;
79
80 void (*set_scroll_adjustments) (GtkPizza *pizza,
81 GtkAdjustment *hadjustment,
82 GtkAdjustment *vadjustment);
83};
84
85WXDLLIMPEXP_CORE
86GtkType gtk_pizza_get_type (void);
87WXDLLIMPEXP_CORE
88GtkWidget* gtk_pizza_new (void);
89
90WXDLLIMPEXP_CORE
91void gtk_pizza_set_shadow_type (GtkPizza *pizza,
92 GtkMyShadowType type);
93
94WXDLLIMPEXP_CORE
95void gtk_pizza_set_clear (GtkPizza *pizza,
96 gboolean clear);
97
98WXDLLIMPEXP_CORE
99void gtk_pizza_set_filter (GtkPizza *pizza,
100 gboolean use);
101
102WXDLLIMPEXP_CORE
103void gtk_pizza_set_external (GtkPizza *pizza,
104 gboolean expose);
105
106WXDLLIMPEXP_CORE
107void gtk_pizza_scroll (GtkPizza *pizza,
108 gint dx,
109 gint dy);
110
111WXDLLIMPEXP_CORE
112gint gtk_pizza_child_resized (GtkPizza *pizza,
113 GtkWidget *widget);
114
115WXDLLIMPEXP_CORE
116void gtk_pizza_put (GtkPizza *pizza,
117 GtkWidget *widget,
118 gint x,
119 gint y,
120 gint width,
121 gint height);
122
123WXDLLIMPEXP_CORE
124void gtk_pizza_move (GtkPizza *pizza,
125 GtkWidget *widget,
126 gint x,
127 gint y );
128
129WXDLLIMPEXP_CORE
130void gtk_pizza_resize (GtkPizza *pizza,
131 GtkWidget *widget,
132 gint width,
133 gint height );
134
135WXDLLIMPEXP_CORE
136void gtk_pizza_set_size (GtkPizza *pizza,
137 GtkWidget *widget,
138 gint x,
139 gint y,
140 gint width,
141 gint height);
142#ifdef __cplusplus
143}
144#endif /* __cplusplus */
145
146
147#endif /* __GTK_PIZZA_H__ */