]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/win_gtk.h
1. wxApp::ProcessPendingEvents() is now common, added appcmn.cpp and
[wxWidgets.git] / include / wx / gtk / 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
5e014a0c
RR
28/* Shadow types */
29typedef enum
30{
31 GTK_MYSHADOW_NONE,
32 GTK_MYSHADOW_THIN,
33 GTK_MYSHADOW_IN,
cf1f0870 34 GTK_MYSHADOW_OUT
5e014a0c 35} GtkMyShadowType;
c801d85f
KB
36
37typedef struct _GtkMyFixed GtkMyFixed;
38typedef struct _GtkMyFixedClass GtkMyFixedClass;
c801d85f
KB
39
40struct _GtkMyFixed
41{
42 GtkContainer container;
c801d85f 43 GList *children;
5e014a0c 44 GtkMyShadowType shadow_type;
ed673c6a
RR
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;
147bc491
RR
58
59 gboolean clear_on_draw;
c801d85f
KB
60};
61
62struct _GtkMyFixedClass
63{
64 GtkContainerClass parent_class;
034be888 65
034be888
RR
66 void (*set_scroll_adjustments) (GtkMyFixed *myfixed,
67 GtkAdjustment *hadjustment,
68 GtkAdjustment *vadjustment);
c801d85f
KB
69};
70
71guint gtk_myfixed_get_type (void);
72GtkWidget* gtk_myfixed_new (void);
147bc491 73
034be888 74void gtk_myfixed_set_shadow_type (GtkMyFixed *myfixed,
5e014a0c 75 GtkMyShadowType type);
ed673c6a 76
147bc491
RR
77void gtk_my_fixed_set_clear (GtkMyFixed *myfixed,
78 gboolean clear);
79
ed673c6a
RR
80void gtk_myfixed_scroll (GtkMyFixed *myfixed,
81 gint dx,
82 gint dy);
83
c801d85f
KB
84void gtk_myfixed_put (GtkMyFixed *myfixed,
85 GtkWidget *widget,
ed673c6a
RR
86 gint x,
87 gint y,
88 gint width,
89 gint height);
fdd3ed7a 90
c801d85f
KB
91void gtk_myfixed_move (GtkMyFixed *myfixed,
92 GtkWidget *widget,
ed673c6a
RR
93 gint x,
94 gint y );
fdd3ed7a
RR
95
96void gtk_myfixed_resize (GtkMyFixed *myfixed,
97 GtkWidget *widget,
ed673c6a
RR
98 gint width,
99 gint height );
fdd3ed7a
RR
100
101void gtk_myfixed_set_size (GtkMyFixed *myfixed,
102 GtkWidget *widget,
ed673c6a
RR
103 gint x,
104 gint y,
105 gint width,
106 gint height);
c801d85f
KB
107#ifdef __cplusplus
108}
109#endif /* __cplusplus */
110
111
112#endif /* __GTK_MYFIXED_H__ */