1 // /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 
3 /* eel-gdk-extensions.h: Graphics routines to augment what's in gdk.
4 
5    Copyright (C) 1999, 2000 Eazel, Inc.
6 
7    The Gnome Library is free software; you can redistribute it and/or
8    modify it under the terms of the GNU Library General Public License as
9    published by the Free Software Foundation; either version 2 of the
10    License, or (at your option) any later version.
11 
12    The Gnome Library is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15    Library General Public License for more details.
16 
17    You should have received a copy of the GNU Library General Public
18    License along with the Gnome Library; see the file COPYING.LIB.  If not,
19    write to the Free Software Foundation, Inc., 51 Franklin Street - Suite 500,
20    Boston, MA 02110-1335, USA.
21 
22    Authors: Darin Adler <darin@eazel.com>,
23             Ramiro Estrugo <ramiro@eazel.com>
24 */
25 
26 #ifndef EEL_GDK_EXTENSIONS_H
27 #define EEL_GDK_EXTENSIONS_H
28 
29 #include <gdk/gdk.h>
30 
31 /* Bits returned by eel_gdk_parse_geometry */
32 typedef enum {
33 	EEL_GDK_NO_VALUE     = 0x00,
34 	EEL_GDK_X_VALUE      = 0x01,
35 	EEL_GDK_Y_VALUE      = 0x02,
36 	EEL_GDK_WIDTH_VALUE  = 0x04,
37 	EEL_GDK_HEIGHT_VALUE = 0x08,
38 	EEL_GDK_ALL_VALUES   = 0x0f,
39 	EEL_GDK_X_NEGATIVE   = 0x10,
40 	EEL_GDK_Y_NEGATIVE   = 0x20
41 } EelGdkGeometryFlags;
42 
43 /* Wrapper for XParseGeometry */
44 EelGdkGeometryFlags eel_gdk_parse_geometry                 (const char          *string,
45 							    int                 *x_return,
46 							    int                 *y_return,
47 							    guint               *width_return,
48 							    guint               *height_return);
49 
50 #endif /* EEL_GDK_EXTENSIONS_H */
51