]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/win_gtk.h
implement {Create,Clone}RefData for gtk wxBitmap
[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
b6fa52db 25typedef struct _GtkPizzaChild GtkPizzaChild;
da048e3d
RR
26typedef struct _GtkPizza GtkPizza;
27typedef struct _GtkPizzaClass GtkPizzaClass;
c801d85f 28
b6fa52db
RR
29struct _GtkPizzaChild
30{
31 GtkWidget *widget;
32 gint x;
33 gint y;
34 gint width;
35 gint height;
36};
37
da048e3d 38struct _GtkPizza
c801d85f 39{
0e09f76e
RR
40 GtkContainer container;
41 GList *children;
5b12ccee 42
a31bb944
RR
43 guint m_xoffset;
44 guint m_yoffset;
69597639 45
0e09f76e 46 GdkWindow *bin_window;
c801d85f
KB
47};
48
da048e3d 49struct _GtkPizzaClass
c801d85f
KB
50{
51 GtkContainerClass parent_class;
034be888 52
da048e3d 53 void (*set_scroll_adjustments) (GtkPizza *pizza,
5b12ccee
MW
54 GtkAdjustment *hadjustment,
55 GtkAdjustment *vadjustment);
c801d85f
KB
56};
57
20123d49 58WXDLLIMPEXP_CORE
e1ff9329 59GtkType gtk_pizza_get_type (void);
20123d49 60WXDLLIMPEXP_CORE
da048e3d 61GtkWidget* gtk_pizza_new (void);
147bc491 62
a31bb944
RR
63/* accessors */
64
a31bb944
RR
65WXDLLIMPEXP_CORE
66gint gtk_pizza_get_xoffset (GtkPizza *pizza);
67WXDLLIMPEXP_CORE
68gint gtk_pizza_get_yoffset (GtkPizza *pizza);
69WXDLLIMPEXP_CORE
70void gtk_pizza_set_xoffset (GtkPizza *pizza, gint xoffset);
71WXDLLIMPEXP_CORE
72void gtk_pizza_set_yoffset (GtkPizza *pizza, gint yoffset);
73
74
428f4657
RR
75WXDLLIMPEXP_CORE
76gint gtk_pizza_get_rtl_offset (GtkPizza *pizza);
77
5b12ccee 78
20123d49 79WXDLLIMPEXP_CORE
5b12ccee 80void gtk_pizza_scroll (GtkPizza *pizza,
0e09f76e
RR
81 gint dx,
82 gint dy);
8cb9f0d0 83
20123d49 84WXDLLIMPEXP_CORE
0e09f76e
RR
85void gtk_pizza_put (GtkPizza *pizza,
86 GtkWidget *widget,
87 gint x,
88 gint y,
5b12ccee
MW
89 gint width,
90 gint height);
0e09f76e 91
20123d49 92WXDLLIMPEXP_CORE
0e09f76e
RR
93void gtk_pizza_set_size (GtkPizza *pizza,
94 GtkWidget *widget,
95 gint x,
96 gint y,
97 gint width,
98 gint height);
c801d85f
KB
99#ifdef __cplusplus
100}
101#endif /* __cplusplus */
102
103
da048e3d 104#endif /* __GTK_PIZZA_H__ */