]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/win_gtk.h
wxMotif::wxFont supports encodings too (and shares 99% of font code with wxGTK)
[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
5e014a0c
RR
28/* Shadow types */
29typedef enum
30{
31 GTK_MYSHADOW_NONE,
32 GTK_MYSHADOW_THIN,
33 GTK_MYSHADOW_IN,
34 GTK_MYSHADOW_OUT,
35} GtkMyShadowType;
c801d85f
KB
36
37typedef struct _GtkMyFixed GtkMyFixed;
38typedef struct _GtkMyFixedClass GtkMyFixedClass;
39typedef struct _GtkMyFixedChild GtkMyFixedChild;
40
41struct _GtkMyFixed
42{
43 GtkContainer container;
c801d85f 44 GList *children;
034be888 45#if (GTK_MINOR_VERSION > 0)
5e014a0c 46 GtkMyShadowType shadow_type;
034be888 47#endif
c801d85f
KB
48};
49
50struct _GtkMyFixedClass
51{
52 GtkContainerClass parent_class;
034be888
RR
53
54#if (GTK_MINOR_VERSION > 0)
55 void (*set_scroll_adjustments) (GtkMyFixed *myfixed,
56 GtkAdjustment *hadjustment,
57 GtkAdjustment *vadjustment);
58#endif
c801d85f
KB
59};
60
61struct _GtkMyFixedChild
62{
63 GtkWidget *widget;
64 gint16 x;
65 gint16 y;
fdd3ed7a
RR
66 gint16 width;
67 gint16 height;
c801d85f
KB
68};
69
70guint gtk_myfixed_get_type (void);
71GtkWidget* gtk_myfixed_new (void);
034be888
RR
72#if (GTK_MINOR_VERSION > 0)
73void gtk_myfixed_set_shadow_type (GtkMyFixed *myfixed,
5e014a0c 74 GtkMyShadowType type);
034be888 75#endif
c801d85f
KB
76void gtk_myfixed_put (GtkMyFixed *myfixed,
77 GtkWidget *widget,
78 gint16 x,
fdd3ed7a
RR
79 gint16 y,
80 gint16 width,
81 gint16 height);
82
c801d85f
KB
83void gtk_myfixed_move (GtkMyFixed *myfixed,
84 GtkWidget *widget,
85 gint16 x,
fdd3ed7a
RR
86 gint16 y );
87
88void gtk_myfixed_resize (GtkMyFixed *myfixed,
89 GtkWidget *widget,
90 gint16 width,
91 gint16 height );
92
93void gtk_myfixed_set_size (GtkMyFixed *myfixed,
94 GtkWidget *widget,
95 gint16 x,
96 gint16 y,
97 gint16 width,
98 gint16 height);
c801d85f
KB
99#ifdef __cplusplus
100}
101#endif /* __cplusplus */
102
103
104#endif /* __GTK_MYFIXED_H__ */