]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/win_gtk.h
Added wxWindowBase::CentreOnParent to allow top level windows to be
[wxWidgets.git] / include / wx / gtk1 / win_gtk.h
CommitLineData
c67daf87 1/* ///////////////////////////////////////////////////////////////////////////
c801d85f
KB
2// Name: win_gtk.h
3// Purpose: wxWindows's GTK base widget
4// Author: Robert Roebling
58614078
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
c801d85f 7// Licence: wxWindows licence
c67daf87 8/////////////////////////////////////////////////////////////////////////// */
c801d85f
KB
9
10
11#ifndef __GTK_MYFIXED_H__
12#define __GTK_MYFIXED_H__
13
c801d85f
KB
14#include <gdk/gdk.h>
15#include <gtk/gtkcontainer.h>
034be888
RR
16#include <gtk/gtkadjustment.h>
17#include <gtk/gtkfeatures.h>
c801d85f
KB
18
19#ifdef __cplusplus
20extern "C" {
21#endif /* __cplusplus */
22
23
24#define GTK_MYFIXED(obj) GTK_CHECK_CAST (obj, gtk_myfixed_get_type (), GtkMyFixed)
25#define GTK_MYFIXED_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_myfixed_get_type (), GtkMyFixedClass)
26#define GTK_IS_MYFIXED(obj) GTK_CHECK_TYPE (obj, gtk_myfixed_get_type ())
27
28
29typedef struct _GtkMyFixed GtkMyFixed;
30typedef struct _GtkMyFixedClass GtkMyFixedClass;
31typedef struct _GtkMyFixedChild GtkMyFixedChild;
32
33struct _GtkMyFixed
34{
35 GtkContainer container;
c801d85f 36 GList *children;
034be888
RR
37#if (GTK_MINOR_VERSION > 0)
38 GtkShadowType shadow_type;
39#endif
c801d85f
KB
40};
41
42struct _GtkMyFixedClass
43{
44 GtkContainerClass parent_class;
034be888
RR
45
46#if (GTK_MINOR_VERSION > 0)
47 void (*set_scroll_adjustments) (GtkMyFixed *myfixed,
48 GtkAdjustment *hadjustment,
49 GtkAdjustment *vadjustment);
50#endif
c801d85f
KB
51};
52
53struct _GtkMyFixedChild
54{
55 GtkWidget *widget;
56 gint16 x;
57 gint16 y;
fdd3ed7a
RR
58 gint16 width;
59 gint16 height;
c801d85f
KB
60};
61
62guint gtk_myfixed_get_type (void);
63GtkWidget* gtk_myfixed_new (void);
034be888
RR
64#if (GTK_MINOR_VERSION > 0)
65void gtk_myfixed_set_shadow_type (GtkMyFixed *myfixed,
66 GtkShadowType type);
67#endif
c801d85f
KB
68void gtk_myfixed_put (GtkMyFixed *myfixed,
69 GtkWidget *widget,
70 gint16 x,
fdd3ed7a
RR
71 gint16 y,
72 gint16 width,
73 gint16 height);
74
c801d85f
KB
75void gtk_myfixed_move (GtkMyFixed *myfixed,
76 GtkWidget *widget,
77 gint16 x,
fdd3ed7a
RR
78 gint16 y );
79
80void gtk_myfixed_resize (GtkMyFixed *myfixed,
81 GtkWidget *widget,
82 gint16 width,
83 gint16 height );
84
85void gtk_myfixed_set_size (GtkMyFixed *myfixed,
86 GtkWidget *widget,
87 gint16 x,
88 gint16 y,
89 gint16 width,
90 gint16 height);
c801d85f
KB
91#ifdef __cplusplus
92}
93#endif /* __cplusplus */
94
95
96#endif /* __GTK_MYFIXED_H__ */