]> Pileus Git - ~andy/gtk/blob - gtk/gtkfixed.h
Added gdk_text/string_extents() - too calculate all the metrics at once of
[~andy/gtk] / gtk / gtkfixed.h
1 /* GTK - The GIMP Toolkit
2  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19 #ifndef __GTK_FIXED_H__
20 #define __GTK_FIXED_H__
21
22
23 #include <gdk/gdk.h>
24 #include <gtk/gtkcontainer.h>
25
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* __cplusplus */
30
31
32 #define GTK_FIXED(obj)          GTK_CHECK_CAST (obj, gtk_fixed_get_type (), GtkFixed)
33 #define GTK_FIXED_CLASS(klass)  GTK_CHECK_CLASS_CAST (klass, gtk_fixed_get_type (), GtkFixedClass)
34 #define GTK_IS_FIXED(obj)       GTK_CHECK_TYPE (obj, gtk_fixed_get_type ())
35
36
37 typedef struct _GtkFixed        GtkFixed;
38 typedef struct _GtkFixedClass   GtkFixedClass;
39 typedef struct _GtkFixedChild   GtkFixedChild;
40
41 struct _GtkFixed
42 {
43   GtkContainer container;
44
45   GList *children;
46 };
47
48 struct _GtkFixedClass
49 {
50   GtkContainerClass parent_class;
51 };
52
53 struct _GtkFixedChild
54 {
55   GtkWidget *widget;
56   gint16 x;
57   gint16 y;
58 };
59
60
61 guint      gtk_fixed_get_type          (void);
62 GtkWidget* gtk_fixed_new               (void);
63 void       gtk_fixed_put               (GtkFixed       *fixed,
64                                         GtkWidget      *widget,
65                                         gint16         x,
66                                         gint16         y);
67 void       gtk_fixed_move              (GtkFixed       *fixed,
68                                         GtkWidget      *widget,
69                                         gint16         x,
70                                         gint16         y);
71
72 #ifdef __cplusplus
73 }
74 #endif /* __cplusplus */
75
76
77 #endif /* __GTK_FIXED_H__ */