]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk/win_gtk.h
adding measuring contexts, streamlining printing 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 _GtkPizza GtkPizza;
26
27struct _GtkPizza
28{
29 GtkContainer container;
30 GList *children;
31
32 guint m_xoffset;
33 guint m_yoffset;
34
35 GdkWindow *bin_window;
36};
37
38WXDLLIMPEXP_CORE
39GtkType gtk_pizza_get_type (void);
40WXDLLIMPEXP_CORE
41GtkWidget* gtk_pizza_new (void);
42
43/* accessors */
44
45WXDLLIMPEXP_CORE
46gint gtk_pizza_get_xoffset (GtkPizza *pizza);
47WXDLLIMPEXP_CORE
48gint gtk_pizza_get_yoffset (GtkPizza *pizza);
49WXDLLIMPEXP_CORE
50void gtk_pizza_set_xoffset (GtkPizza *pizza, gint xoffset);
51WXDLLIMPEXP_CORE
52void gtk_pizza_set_yoffset (GtkPizza *pizza, gint yoffset);
53
54
55WXDLLIMPEXP_CORE
56gint gtk_pizza_get_rtl_offset (GtkPizza *pizza);
57
58
59WXDLLIMPEXP_CORE
60void gtk_pizza_scroll (GtkPizza *pizza,
61 gint dx,
62 gint dy);
63
64WXDLLIMPEXP_CORE
65void gtk_pizza_put (GtkPizza *pizza,
66 GtkWidget *widget,
67 gint x,
68 gint y,
69 gint width,
70 gint height);
71
72WXDLLIMPEXP_CORE
73void gtk_pizza_set_size (GtkPizza *pizza,
74 GtkWidget *widget,
75 gint x,
76 gint y,
77 gint width,
78 gint height);
79#ifdef __cplusplus
80}
81#endif /* __cplusplus */
82
83
84#endif /* __GTK_PIZZA_H__ */