]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/win_gtk.h
removed operator>>(istream&, wxString&) -- it's better to not have it at all than...
[wxWidgets.git] / include / wx / gtk / win_gtk.h
CommitLineData
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
15extern "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
5e014a0c
RR
25/* Shadow types */
26typedef enum
27{
0e09f76e
RR
28 GTK_MYSHADOW_NONE,
29 GTK_MYSHADOW_THIN,
30 GTK_MYSHADOW_IN,
31 GTK_MYSHADOW_OUT
5e014a0c 32} GtkMyShadowType;
c801d85f 33
b6fa52db 34typedef struct _GtkPizzaChild GtkPizzaChild;
da048e3d
RR
35typedef struct _GtkPizza GtkPizza;
36typedef struct _GtkPizzaClass GtkPizzaClass;
c801d85f 37
b6fa52db
RR
38struct _GtkPizzaChild
39{
40 GtkWidget *widget;
41 gint x;
42 gint y;
43 gint width;
44 gint height;
45};
46
da048e3d 47struct _GtkPizza
c801d85f 48{
0e09f76e
RR
49 GtkContainer container;
50 GList *children;
51 GtkMyShadowType shadow_type;
5b12ccee 52
a31bb944
RR
53 guint m_xoffset;
54 guint m_yoffset;
69597639
RR
55
56 gint m_width;
ed673c6a 57
0e09f76e 58 GdkWindow *bin_window;
c801d85f
KB
59};
60
da048e3d 61struct _GtkPizzaClass
c801d85f
KB
62{
63 GtkContainerClass parent_class;
034be888 64
da048e3d 65 void (*set_scroll_adjustments) (GtkPizza *pizza,
5b12ccee
MW
66 GtkAdjustment *hadjustment,
67 GtkAdjustment *vadjustment);
c801d85f
KB
68};
69
20123d49 70WXDLLIMPEXP_CORE
e1ff9329 71GtkType gtk_pizza_get_type (void);
20123d49 72WXDLLIMPEXP_CORE
da048e3d 73GtkWidget* gtk_pizza_new (void);
147bc491 74
a31bb944
RR
75/* accessors */
76
a31bb944
RR
77WXDLLIMPEXP_CORE
78gint gtk_pizza_get_xoffset (GtkPizza *pizza);
79WXDLLIMPEXP_CORE
80gint gtk_pizza_get_yoffset (GtkPizza *pizza);
81WXDLLIMPEXP_CORE
82void gtk_pizza_set_xoffset (GtkPizza *pizza, gint xoffset);
83WXDLLIMPEXP_CORE
84void gtk_pizza_set_yoffset (GtkPizza *pizza, gint yoffset);
85
86
428f4657
RR
87WXDLLIMPEXP_CORE
88gint gtk_pizza_get_rtl_offset (GtkPizza *pizza);
89
20123d49 90WXDLLIMPEXP_CORE
0e09f76e 91void gtk_pizza_set_shadow_type (GtkPizza *pizza,
5b12ccee
MW
92 GtkMyShadowType type);
93
20123d49 94WXDLLIMPEXP_CORE
5b12ccee 95void gtk_pizza_scroll (GtkPizza *pizza,
0e09f76e
RR
96 gint dx,
97 gint dy);
8cb9f0d0 98
20123d49 99WXDLLIMPEXP_CORE
0e09f76e
RR
100void gtk_pizza_put (GtkPizza *pizza,
101 GtkWidget *widget,
102 gint x,
103 gint y,
5b12ccee
MW
104 gint width,
105 gint height);
0e09f76e 106
20123d49 107WXDLLIMPEXP_CORE
0e09f76e
RR
108void gtk_pizza_set_size (GtkPizza *pizza,
109 GtkWidget *widget,
110 gint x,
111 gint y,
112 gint width,
113 gint height);
c801d85f
KB
114#ifdef __cplusplus
115}
116#endif /* __cplusplus */
117
118
da048e3d 119#endif /* __GTK_PIZZA_H__ */