1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19  
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 /*
25  * Conversion parameters:
26  * inFile  = gstreamer-GstParamSpec.html
27  * outPack = gstreamer
28  * outFile = ParamSpecFraction
29  * strct   = GstParamSpecFraction
30  * realStrct=
31  * ctorStrct=
32  * clss    = ParamSpecFraction
33  * interf  = 
34  * class Code: Yes
35  * interface Code: No
36  * template for:
37  * extend  = 
38  * implements:
39  * prefixes:
40  * 	- gst_param_spec_fraction_
41  * omit structs:
42  * omit prefixes:
43  * omit code:
44  * 	- gst_param_spec_fraction
45  * omit signals:
46  * imports:
47  * 	- glib.Str
48  * structWrap:
49  * module aliases:
50  * local aliases:
51  * overrides:
52  */
53 
54 module gstreamer.ParamSpecFraction;
55 
56 public  import gstreamerc.gstreamertypes;
57 
58 private import gstreamerc.gstreamer;
59 private import glib.ConstructionException;
60 private import gobject.ObjectG;
61 
62 private import glib.Str;
63 
64 
65 
66 /**
67  * GParamSpec implementations specific to GStreamer.
68  *
69  * Last reviewed on 2008-03-11 (0.10.18)
70  */
71 public class ParamSpecFraction
72 {
73 	
74 	/** the main Gtk struct */
75 	protected GstParamSpecFraction* gstParamSpecFraction;
76 	
77 	
78 	/** Get the main Gtk struct */
79 	public GstParamSpecFraction* getParamSpecFractionStruct()
80 	{
81 		return gstParamSpecFraction;
82 	}
83 	
84 	
85 	/** the main Gtk struct as a void* */
86 	protected void* getStruct()
87 	{
88 		return cast(void*)gstParamSpecFraction;
89 	}
90 	
91 	/**
92 	 * Sets our main struct and passes it to the parent class
93 	 */
94 	public this (GstParamSpecFraction* gstParamSpecFraction)
95 	{
96 		this.gstParamSpecFraction = gstParamSpecFraction;
97 	}
98 	
99 	/**
100 	 * This function creates a fraction GParamSpec for use by objects/elements
101 	 * that want to expose properties of fraction type. This function is typically
102 	 * used in connection with g_object_class_install_property() in a GObjects's
103 	 * instance_init function.
104 	 * Params:
105 	 * name = canonical name of the property specified
106 	 * nick = nick name for the property specified
107 	 * blurb = description of the property specified
108 	 * minNum = minimum value (fraction numerator)
109 	 * minDenom = minimum value (fraction denominator)
110 	 * maxNum = maximum value (fraction numerator)
111 	 * maxDenom = maximum value (fraction denominator)
112 	 * defaultNum = default value (fraction numerator)
113 	 * defaultDenom = default value (fraction denominator)
114 	 * flags = flags for the property specified
115 	 * Returns: a newly created parameter specification. [transfer full]
116 	 */
117 	public this(string name, string nick, string blurb, int minNum, int minDenom, int maxNum, int maxDenom, int defaultNum, int defaultDenom, GParamFlags flags)
118 	{
119 		// GParamSpec * gst_param_spec_fraction (const gchar *name,  const gchar *nick,  const gchar *blurb,  gint min_num,  gint min_denom,  gint max_num,  gint max_denom,  gint default_num,  gint default_denom,  GParamFlags flags);
120 		auto p = gst_param_spec_fraction(Str.toStringz(name), Str.toStringz(nick), Str.toStringz(blurb), minNum, minDenom, maxNum, maxDenom, defaultNum, defaultDenom, flags);
121 		if(p is null)
122 		{
123 			throw new ConstructionException("null returned by gst_param_spec_fraction");
124 		}
125 		this(cast(GstParamSpecFraction*) p);
126 	}
127 	
128 	/**
129 	 */
130 }