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 gst.mpegts.AtscRRT;
26 
27 private import glib.ConstructionException;
28 private import glib.MemorySlice;
29 private import glib.PtrArray;
30 private import gobject.ObjectG;
31 private import gst.mpegts.c.functions;
32 public  import gst.mpegts.c.types;
33 private import gtkd.Loader;
34 
35 
36 /**
37  * Region Rating Table (A65)
38  *
39  * Since: 1.18
40  */
41 public final class AtscRRT
42 {
43 	/** the main Gtk struct */
44 	protected GstMpegtsAtscRRT* gstMpegtsAtscRRT;
45 	protected bool ownedRef;
46 
47 	/** Get the main Gtk struct */
48 	public GstMpegtsAtscRRT* getAtscRRTStruct(bool transferOwnership = false)
49 	{
50 		if (transferOwnership)
51 			ownedRef = false;
52 		return gstMpegtsAtscRRT;
53 	}
54 
55 	/** the main Gtk struct as a void* */
56 	protected void* getStruct()
57 	{
58 		return cast(void*)gstMpegtsAtscRRT;
59 	}
60 
61 	/**
62 	 * Sets our main struct and passes it to the parent class.
63 	 */
64 	public this (GstMpegtsAtscRRT* gstMpegtsAtscRRT, bool ownedRef = false)
65 	{
66 		this.gstMpegtsAtscRRT = gstMpegtsAtscRRT;
67 		this.ownedRef = ownedRef;
68 	}
69 
70 	~this ()
71 	{
72 		if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef )
73 			sliceFree(gstMpegtsAtscRRT);
74 	}
75 
76 
77 	/**
78 	 * The protocol version
79 	 */
80 	public @property ubyte protocolVersion()
81 	{
82 		return gstMpegtsAtscRRT.protocolVersion;
83 	}
84 
85 	/** Ditto */
86 	public @property void protocolVersion(ubyte value)
87 	{
88 		gstMpegtsAtscRRT.protocolVersion = value;
89 	}
90 
91 	/**
92 	 * the names
93 	 */
94 	public @property PtrArray names()
95 	{
96 		return new PtrArray(gstMpegtsAtscRRT.names, false);
97 	}
98 
99 	/** Ditto */
100 	public @property void names(PtrArray value)
101 	{
102 		gstMpegtsAtscRRT.names = value.getPtrArrayStruct();
103 	}
104 
105 	/**
106 	 * the number of dimensions defined for this rating table
107 	 */
108 	public @property ubyte dimensionsDefined()
109 	{
110 		return gstMpegtsAtscRRT.dimensionsDefined;
111 	}
112 
113 	/** Ditto */
114 	public @property void dimensionsDefined(ubyte value)
115 	{
116 		gstMpegtsAtscRRT.dimensionsDefined = value;
117 	}
118 
119 	/**
120 	 * A set of dimensions
121 	 */
122 	public @property PtrArray dimensions()
123 	{
124 		return new PtrArray(gstMpegtsAtscRRT.dimensions, false);
125 	}
126 
127 	/** Ditto */
128 	public @property void dimensions(PtrArray value)
129 	{
130 		gstMpegtsAtscRRT.dimensions = value.getPtrArrayStruct();
131 	}
132 
133 	/**
134 	 * descriptors
135 	 */
136 	public @property PtrArray descriptors()
137 	{
138 		return new PtrArray(gstMpegtsAtscRRT.descriptors, false);
139 	}
140 
141 	/** Ditto */
142 	public @property void descriptors(PtrArray value)
143 	{
144 		gstMpegtsAtscRRT.descriptors = value.getPtrArrayStruct();
145 	}
146 
147 	/** */
148 	public static GType getType()
149 	{
150 		return gst_mpegts_atsc_rrt_get_type();
151 	}
152 
153 	/** */
154 	public this()
155 	{
156 		auto __p = gst_mpegts_atsc_rrt_new();
157 
158 		if(__p is null)
159 		{
160 			throw new ConstructionException("null returned by new");
161 		}
162 
163 		this(cast(GstMpegtsAtscRRT*) __p);
164 	}
165 }