]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/win_gtk.h
*** empty log message ***
[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
40 struct _GtkMyFixed
41 {
42 GtkContainer container;
43 GList *children;
44 GtkMyShadowType shadow_type;
45
46 guint width;
47 guint height;
48
49 guint xoffset;
50 guint yoffset;
51
52 GdkWindow *bin_window;
53
54 GdkVisibilityState visibility;
55 gulong configure_serial;
56 gint scroll_x;
57 gint scroll_y;
58 };
59
60 struct _GtkMyFixedClass
61 {
62 GtkContainerClass parent_class;
63
64 void (*set_scroll_adjustments) (GtkMyFixed *myfixed,
65 GtkAdjustment *hadjustment,
66 GtkAdjustment *vadjustment);
67 };
68
69 guint gtk_myfixed_get_type (void);
70 GtkWidget* gtk_myfixed_new (void);
71 void gtk_myfixed_set_shadow_type (GtkMyFixed *myfixed,
72 GtkMyShadowType type);
73
74 void gtk_myfixed_scroll (GtkMyFixed *myfixed,
75 gint dx,
76 gint dy);
77
78 void gtk_myfixed_put (GtkMyFixed *myfixed,
79 GtkWidget *widget,
80 gint x,
81 gint y,
82 gint width,
83 gint height);
84
85 void gtk_myfixed_move (GtkMyFixed *myfixed,
86 GtkWidget *widget,
87 gint x,
88 gint y );
89
90 void gtk_myfixed_resize (GtkMyFixed *myfixed,
91 GtkWidget *widget,
92 gint width,
93 gint height );
94
95 void gtk_myfixed_set_size (GtkMyFixed *myfixed,
96 GtkWidget *widget,
97 gint x,
98 gint y,
99 gint width,
100 gint height);
101 #ifdef __cplusplus
102 }
103 #endif /* __cplusplus */
104
105
106 #endif /* __GTK_MYFIXED_H__ */