Debian Codegraph @

gtk/gtkmm/base.h

raw symbols SCIP
1 #ifndef _GTKMM_BASE_H
2 #define _GTKMM_BASE_H
3 /* base.h
4 *
5 * Copyright (C) 1998-2002 The gtkmm Development Team
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This 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 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
19 */
20
21 #include <glibmm/utility.h>
22 #include <glibmm/ustring.h>
23
24 /* This aint pretty, but I don't know a better way to make
25 sure things work when the stl classes are defined in a namespace */
26
27 // Gtk-- Base and other utility classes
28 #define GTK_VERSION_GT(major,minor) ((GTK_MAJOR_VERSION>major)||(GTK_MAJOR_VERSION==major)&&(GTK_MINOR_VERSION>minor))
29 #define GTK_VERSION_GE(major,minor) ((GTK_MAJOR_VERSION>major)||(GTK_MAJOR_VERSION==major)&&(GTK_MINOR_VERSION>=minor))
30 #define GTK_VERSION_EQ(major,minor) ((GTK_MAJOR_VERSION==major)&&(GTK_MINOR_VERSION==minor))
31 #define GTK_VERSION_NE(major,minor) ((GTK_MAJOR_VERSION!=major)||(GTK_MINOR_VERSION!=minor))
32 #define GTK_VERSION_LE(major,minor) ((GTK_MAJOR_VERSION<major)||(GTK_MAJOR_VERSION==major)&&(GTK_MINOR_VERSION<=minor))
33 #define GTK_VERSION_LT(major,minor) ((GTK_MAJOR_VERSION<major)||(GTK_MAJOR_VERSION==major)&&(GTK_MINOR_VERSION<minor))
34
35 #define GTK_VERSION_GT_MICRO(major,minor,micro) \
36 ((GTK_MAJOR_VERSION>major)|| \
37 (GTK_MAJOR_VERSION==major)&&(GTK_MINOR_VERSION>minor)||\
38 (GTK_MAJOR_VERSION==major)&&(GTK_MINOR_VERSION==minor)&&(GTK_MICRO_VERSION>micro))
39
40 #endif /* _GTKMM_BASE_H */