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
19 // generated automatically - do not change
20 // find conversion definition on APILookup.txt
21 // implement new conversion functionalities on the wrap.utils pakage
24 * Conversion parameters:
25 * inFile = pango-Engines.html
49 module pango
.PgEngine
;
51 private import pango
.pangotypes
;
53 private import lib
.pango
;
55 private import glib
.Str
;
59 * Pango utilizes a module architecture in which the language-specific
60 * and render-system-specific components are provided by loadable
61 * modules. Each loadable module supplies one or more
62 * engines. Each engine
63 * has an associated engine type and
64 * render type. These two types are represented by
66 * Each dynamically-loaded module exports several functions which provide
67 * the public API. These functions are script_engine_list(),
68 * script_engine_init() and script_engine_exit, and
69 * script_engine_create(). The latter three functions are used when
70 * creating engines from the module at run time, while the first
71 * function is used when building a catalog of all available modules.
85 * Function to be provided by a module to list the engines that the
86 * module supplies. The function stores a pointer to an array
87 * of PangoEngineInfo structures and the length of that array in
89 * Note that script_engine_init() will not be called before this
92 * location to store a pointer to an array of engines.
94 * location to store the number of elements in engines.
96 public static void list(PangoEngineInfo
** engines
, int* nEngines
)
98 // void script_engine_list (PangoEngineInfo **engines, int *n_engines);
99 script_engine_list(engines
, nEngines
);
103 * Function to be provided by a module to register any
104 * GObject types in the module.
106 * a GTypeModule structure used to associate any
107 * GObject types created in this module with the module.
109 public static void init(GTypeModule
* modul
)
111 // void script_engine_init (GTypeModule *module);
112 script_engine_init(modul
);
116 * Function to be provided by the module that is called
117 * when the module is unloading. Frequently does nothing.
119 public static void exit()
121 // void script_engine_exit (void);
122 script_engine_exit();
126 * Function to be provided by the module to create an instance
127 * of one of the engines implemented by the module.
129 * the ID of an engine as reported by script_engine_list.
131 * a newly created PangoEngine of the specified
132 * type, or NULL if an error occurred. (In normal operation,
133 * a module should not return NULL. A NULL return is only
134 * acceptable in the case where system misconfiguration or
135 * bugs in the driver routine are encountered.)
137 public static PangoEngine
* create(char[] id
)
139 // PangoEngine* script_engine_create (const char *id);
140 return script_engine_create(Str
.toStringz(id
));