2 * This file is part of gtkD.
4 * gtkD 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 * gtkD 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 gtkD; 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 = GstIndexFactory.html
27 * outFile = IndexFactory
28 * strct = GstIndexFactory
39 * - gst_index_factory_
48 * - GstIndex* -> Index
49 * - GstIndexFactory* -> IndexFactory
54 module gstreamer
.IndexFactory
;
56 private import gstreamerc
.gstreamertypes
;
58 private import gstreamerc
.gstreamer
;
60 private import glib
.Str
;
61 private import gstreamer
.Index
;
67 * GstIndexFactory is used to dynamically create GstIndex implementations.
69 private import gstreamer
.PluginFeature
;
70 public class IndexFactory
: PluginFeature
73 /** the main Gtk struct */
74 protected GstIndexFactory
* gstIndexFactory
;
77 public GstIndexFactory
* getIndexFactoryStruct()
79 return gstIndexFactory
;
83 /** the main Gtk struct as a void* */
84 protected void* getStruct()
86 return cast(void*)gstIndexFactory
;
90 * Sets our main struct and passes it to the parent class
92 public this (GstIndexFactory
* gstIndexFactory
)
94 super(cast(GstPluginFeature
*)gstIndexFactory
);
95 this.gstIndexFactory
= gstIndexFactory
;
103 * Create a new indexfactory with the given parameters
105 * name of indexfactory to create
107 * long description of indexfactory to create
109 * the GType of the GstIndex element of this factory
111 * a new GstIndexFactory.
113 public this (char[] name
, char[] longdesc
, GType type
)
115 // GstIndexFactory* gst_index_factory_new (const gchar *name, const gchar *longdesc, GType type);
116 this(cast(GstIndexFactory
*)gst_index_factory_new(Str
.toStringz(name
), Str
.toStringz(longdesc
), type
) );
120 * Removes the index from the global list.
124 public void destroy()
126 // void gst_index_factory_destroy (GstIndexFactory *factory);
127 gst_index_factory_destroy(gstIndexFactory
);
131 * Search for an indexfactory of the given name.
133 * name of indexfactory to find
135 * GstIndexFactory if found, NULL otherwise
137 public static IndexFactory
find(char[] name
)
139 // GstIndexFactory* gst_index_factory_find (const gchar *name);
140 return new IndexFactory( gst_index_factory_find(Str
.toStringz(name
)) );
144 * Create a new GstIndex instance from the
145 * given indexfactory.
147 * the factory used to create the instance
149 * A new GstIndex instance.
151 public Index
create()
153 // GstIndex* gst_index_factory_create (GstIndexFactory *factory);
154 return new Index( gst_index_factory_create(gstIndexFactory
) );
158 * Create a new GstIndex instance from the
159 * indexfactory with the given name.
161 * the name of the factory used to create the instance
163 * A new GstIndex instance.
167 public static Index
make(char[] name
)
169 // GstIndex* gst_index_factory_make (const gchar *name);
170 return new Index( gst_index_factory_make(Str
.toStringz(name
)) );