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 module gstreamer.AllocationParams;
26 
27 private import gobject.ObjectG;
28 private import gstreamerc.gstreamer;
29 public  import gstreamerc.gstreamertypes;
30 
31 
32 /**
33  * Parameters to control the allocation of memory
34  */
35 public class AllocationParams
36 {
37 	/** the main Gtk struct */
38 	protected GstAllocationParams* gstAllocationParams;
39 	protected bool ownedRef;
40 
41 	/** Get the main Gtk struct */
42 	public GstAllocationParams* getAllocationParamsStruct()
43 	{
44 		return gstAllocationParams;
45 	}
46 
47 	/** the main Gtk struct as a void* */
48 	protected void* getStruct()
49 	{
50 		return cast(void*)gstAllocationParams;
51 	}
52 
53 	/**
54 	 * Sets our main struct and passes it to the parent class.
55 	 */
56 	public this (GstAllocationParams* gstAllocationParams, bool ownedRef = false)
57 	{
58 		this.gstAllocationParams = gstAllocationParams;
59 		this.ownedRef = ownedRef;
60 	}
61 
62 
63 	/** */
64 	public static GType getType()
65 	{
66 		return gst_allocation_params_get_type();
67 	}
68 
69 	/**
70 	 * Create a copy of @params.
71 	 *
72 	 * Free-function: gst_allocation_params_free
73 	 *
74 	 * Return: a new ##GstAllocationParams, free with
75 	 *     gst_allocation_params_free().
76 	 */
77 	public AllocationParams copy()
78 	{
79 		auto p = gst_allocation_params_copy(gstAllocationParams);
80 		
81 		if(p is null)
82 		{
83 			return null;
84 		}
85 		
86 		return ObjectG.getDObject!(AllocationParams)(cast(GstAllocationParams*) p, true);
87 	}
88 
89 	/**
90 	 * Free @params
91 	 */
92 	public void free()
93 	{
94 		gst_allocation_params_free(gstAllocationParams);
95 	}
96 
97 	/**
98 	 * Initialize @params to its default values
99 	 */
100 	public void init()
101 	{
102 		gst_allocation_params_init(gstAllocationParams);
103 	}
104 }