2 # This file is part of duit.
4 # duit is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU Lesser General Public License as published by
6 # the Free Software Foundation; either version 2.1 of the License, or
7 # (at your option) any later version.
9 # duit 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
12 # GNU Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public License
15 # along with duit; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # define the license to use
23 * This file is part of duit.
25 * duit is free software; you can redistribute it and/or modify
26 * it under the terms of the GNU Lesser General Public License as published by
27 * the Free Software Foundation; either version 2.1 of the License, or
28 * (at your option) any later version.
30 * duit is distributed in the hope that it will be useful,
31 * but WITHOUT ANY WARRANTY; without even the implied warranty of
32 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33 * GNU Lesser General Public License for more details.
35 * You should have received a copy of the GNU Lesser General Public License
36 * along with duit; if not, write to the Free Software
37 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
40 // generated automatically - do not change
41 // find conversion definition on APILookup.txt
42 // implement new conversion functionalities on the wrap.utils pakage
49 # defines the simple token substitution
50 # TODO allow to create real aliases on the code and simple static token replacement
58 alias: gconstpointer void*
84 #alias: gunichar dchar
85 #alias: gunichar2 wchar
93 alias: default defaulx
98 alias: instance instanc
100 alias: version versio
103 alias: GLIB_SYSDEF_POLLIN =1
104 alias: GLIB_SYSDEF_POLLOUT =4
105 alias: GLIB_SYSDEF_POLLPRI =2
106 alias: GLIB_SYSDEF_POLLHUP =16
107 alias: GLIB_SYSDEF_POLLERR =8
108 alias: GLIB_SYSDEF_POLLNVAL =32
110 # ok, I'm not sure how to do this but I need to know the enum type for some enum entries
111 enumType: G_TOKEN_LAST TokenType.LAST
112 enumType: G_SIGNAL_RUN_FIRST SignalFlags.RUN_FIRST
113 enumType: G_SIGNAL_RUN_LAST SignalFlags.RUN_LAST
114 enumType: G_SIGNAL_NO_RECURSE SignalFlags.NO_RECURSE
115 enumType: G_SIGNAL_ACTION SignalFlags.ACTION
116 enumType: G_SIGNAL_NO_HOOKS SignalFlags.NO_HOOKS
117 enumType: G_PARAM_READABLE ParamFlags.READABLE
118 enumType: G_PARAM_WRITABLE ParamFlags.WRITABLE
119 enumType: G_PARAM_CONSTRUCT ParamFlags.CONSTRUCT
120 enumType: G_PARAM_CONSTRUCT_ONLY ParamFlags.CONSTRUCT_ONLY
123 # define the lookup and destination directories
124 # "src" and "obj" will be added to outputRoot
125 inputRoot: /home/ruimt/data/down/GTK/API/
126 outputRoot: /home/ruimt/devel/D/Duit/trunk/
128 # define the packages to process
130 package: gthread gthread
131 package: gobject gobject
132 package: cairo cairoLib
135 package: gdk-pixbuf gdkpixbuf
140 # define other packages to create
143 # define package by package, file by file
144 # sections with extra definitions for the typedefs.d package file
145 # these sections start with "<token>: start"
146 # and end with "<token>: end"
147 # addTypedefs // any definition on the top of the file
148 # addAliases // aliases definitions
149 # addEnums // enum definitions
150 # addStructs // struct definitions
151 # addTypes // type definitions
152 # addFuncts // functs definitions
153 # addUnions // unions definitions
154 # addConstants // constants definitions
156 # wrap: the current package
157 # file: the current file - must be the first no a new processing group
158 # struct: the main strcuture to be wrapped
159 # nostruct: the structs not to declare (probably will be declared on another file)
160 # class: - the output class (empty when output is not a class)
161 # More then one class is valid but each class needs a correspondent prefix
162 # prefix: - the gtk prefix that members to include (and to be omited)
163 # More then one prefix is valid and at least ont prefix must exist pre class
164 # noPrefix: Do not include functions that start with the prefix
165 # alias: define a local alias table
166 # import: create import
167 # strcutWrap: the strcut to wrap/unwrap in a Duit class
168 # outFile: the output file - need to be present to write the source code out
171 ###########################################################
173 ###########################################################
179 lookup: APILookupGLib.txt
180 lookup: APILookupGThread.txt
181 lookup: APILookupGObject.txt
182 lookup: APILookupCairo.txt
183 lookup: APILookupPango.txt
184 lookup: APILookupAtk.txt
185 lookup: APILookupGdkPixbuf.txt
186 lookup: APILookupGdk.txt
187 lookup: APILookupGtk.txt
188 lookup: APILookupGLd.txt
189 lookup: APILookupGLt.txt
191 htod: wrap/HTODopenGL.txt