]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk/win_gtk.h
use common AllocExclusive, rather than custom code
[wxWidgets.git] / include / wx / gtk / win_gtk.h
... / ...
CommitLineData
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
15extern "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
25typedef struct _GtkPizzaChild GtkPizzaChild;
26typedef struct _GtkPizza GtkPizza;
27typedef struct _GtkPizzaClass GtkPizzaClass;
28
29struct _GtkPizzaChild
30{
31 GtkWidget *widget;
32 gint x;
33 gint y;
34 gint width;
35 gint height;
36};
37
38struct _GtkPizza
39{
40 GtkContainer container;
41 GList *children;
42
43 guint m_xoffset;
44 guint m_yoffset;
45
46 GdkWindow *bin_window;
47};
48
49struct _GtkPizzaClass
50{
51 GtkContainerClass parent_class;
52
53 void (*set_scroll_adjustments) (GtkPizza *pizza,
54 GtkAdjustment *hadjustment,
55 GtkAdjustment *vadjustment);
56};
57
58WXDLLIMPEXP_CORE
59GtkType gtk_pizza_get_type (void);
60WXDLLIMPEXP_CORE
61GtkWidget* gtk_pizza_new (void);
62
63/* accessors */
64
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
75WXDLLIMPEXP_CORE
76gint gtk_pizza_get_rtl_offset (GtkPizza *pizza);
77
78
79WXDLLIMPEXP_CORE
80void gtk_pizza_scroll (GtkPizza *pizza,
81 gint dx,
82 gint dy);
83
84WXDLLIMPEXP_CORE
85void gtk_pizza_put (GtkPizza *pizza,
86 GtkWidget *widget,
87 gint x,
88 gint y,
89 gint width,
90 gint height);
91
92WXDLLIMPEXP_CORE
93void gtk_pizza_set_size (GtkPizza *pizza,
94 GtkWidget *widget,
95 gint x,
96 gint y,
97 gint width,
98 gint height);
99#ifdef __cplusplus
100}
101#endif /* __cplusplus */
102
103
104#endif /* __GTK_PIZZA_H__ */