]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/win_gtk.h
Minimum is now GTK+ 2.4
[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
da048e3d 25typedef struct _GtkPizza GtkPizza;
b6fa52db 26
da048e3d 27struct _GtkPizza
c801d85f 28{
0e09f76e
RR
29 GtkContainer container;
30 GList *children;
5b12ccee 31
a31bb944
RR
32 guint m_xoffset;
33 guint m_yoffset;
69597639 34
3e09bcfd
RR
35 gboolean m_noscroll;
36
0e09f76e 37 GdkWindow *bin_window;
c801d85f
KB
38};
39
20123d49 40WXDLLIMPEXP_CORE
e1ff9329 41GtkType gtk_pizza_get_type (void);
20123d49 42WXDLLIMPEXP_CORE
da048e3d 43GtkWidget* gtk_pizza_new (void);
3e09bcfd
RR
44WXDLLIMPEXP_CORE
45GtkWidget* gtk_pizza_new_no_scroll (void);
147bc491 46
a31bb944
RR
47/* accessors */
48
a31bb944
RR
49WXDLLIMPEXP_CORE
50gint gtk_pizza_get_xoffset (GtkPizza *pizza);
51WXDLLIMPEXP_CORE
52gint gtk_pizza_get_yoffset (GtkPizza *pizza);
53WXDLLIMPEXP_CORE
54void gtk_pizza_set_xoffset (GtkPizza *pizza, gint xoffset);
55WXDLLIMPEXP_CORE
56void gtk_pizza_set_yoffset (GtkPizza *pizza, gint yoffset);
57
58
428f4657
RR
59WXDLLIMPEXP_CORE
60gint gtk_pizza_get_rtl_offset (GtkPizza *pizza);
61
5b12ccee 62
20123d49 63WXDLLIMPEXP_CORE
5b12ccee 64void gtk_pizza_scroll (GtkPizza *pizza,
0e09f76e
RR
65 gint dx,
66 gint dy);
8cb9f0d0 67
20123d49 68WXDLLIMPEXP_CORE
0e09f76e
RR
69void gtk_pizza_put (GtkPizza *pizza,
70 GtkWidget *widget,
71 gint x,
72 gint y,
5b12ccee
MW
73 gint width,
74 gint height);
0e09f76e 75
20123d49 76WXDLLIMPEXP_CORE
0e09f76e
RR
77void gtk_pizza_set_size (GtkPizza *pizza,
78 GtkWidget *widget,
79 gint x,
80 gint y,
81 gint width,
82 gint height);
c801d85f
KB
83#ifdef __cplusplus
84}
85#endif /* __cplusplus */
86
87
da048e3d 88#endif /* __GTK_PIZZA_H__ */