]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/win_gtk.h
wxOS2 updates for 10/5/99
[wxWidgets.git] / include / wx / gtk / win_gtk.h
1 /* ///////////////////////////////////////////////////////////////////////////
2 // Name: win_gtk.h
3 // Purpose: wxWindows's GTK base widget
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////// */
9
10
11 #ifndef __GTK_MYFIXED_H__
12 #define __GTK_MYFIXED_H__
13
14 #include <gdk/gdk.h>
15 #include <gtk/gtkcontainer.h>
16 #include <gtk/gtkadjustment.h>
17 #include <gtk/gtkfeatures.h>
18
19 #ifdef __cplusplus
20 extern "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 /* Shadow types */
29 typedef enum
30 {
31 GTK_MYSHADOW_NONE,
32 GTK_MYSHADOW_THIN,
33 GTK_MYSHADOW_IN,
34 GTK_MYSHADOW_OUT,
35 } GtkMyShadowType;
36
37 typedef struct _GtkMyFixed GtkMyFixed;
38 typedef struct _GtkMyFixedClass GtkMyFixedClass;
39 typedef struct _GtkMyFixedChild GtkMyFixedChild;
40
41 struct _GtkMyFixed
42 {
43 GtkContainer container;
44 GList *children;
45 #if (GTK_MINOR_VERSION > 0)
46 GtkMyShadowType shadow_type;
47 #endif
48 };
49
50 struct _GtkMyFixedClass
51 {
52 GtkContainerClass parent_class;
53
54 #if (GTK_MINOR_VERSION > 0)
55 void (*set_scroll_adjustments) (GtkMyFixed *myfixed,
56 GtkAdjustment *hadjustment,
57 GtkAdjustment *vadjustment);
58 #endif
59 };
60
61 struct _GtkMyFixedChild
62 {
63 GtkWidget *widget;
64 gint16 x;
65 gint16 y;
66 gint16 width;
67 gint16 height;
68 };
69
70 guint gtk_myfixed_get_type (void);
71 GtkWidget* gtk_myfixed_new (void);
72 #if (GTK_MINOR_VERSION > 0)
73 void gtk_myfixed_set_shadow_type (GtkMyFixed *myfixed,
74 GtkMyShadowType type);
75 #endif
76 void gtk_myfixed_put (GtkMyFixed *myfixed,
77 GtkWidget *widget,
78 gint16 x,
79 gint16 y,
80 gint16 width,
81 gint16 height);
82
83 void gtk_myfixed_move (GtkMyFixed *myfixed,
84 GtkWidget *widget,
85 gint16 x,
86 gint16 y );
87
88 void gtk_myfixed_resize (GtkMyFixed *myfixed,
89 GtkWidget *widget,
90 gint16 width,
91 gint16 height );
92
93 void gtk_myfixed_set_size (GtkMyFixed *myfixed,
94 GtkWidget *widget,
95 gint16 x,
96 gint16 y,
97 gint16 width,
98 gint16 height);
99 #ifdef __cplusplus
100 }
101 #endif /* __cplusplus */
102
103
104 #endif /* __GTK_MYFIXED_H__ */