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.SCTESIT; 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 public final class SCTESIT 38 { 39 /** the main Gtk struct */ 40 protected GstMpegtsSCTESIT* gstMpegtsSCTESIT; 41 protected bool ownedRef; 42 43 /** Get the main Gtk struct */ 44 public GstMpegtsSCTESIT* getSCTESITStruct(bool transferOwnership = false) 45 { 46 if (transferOwnership) 47 ownedRef = false; 48 return gstMpegtsSCTESIT; 49 } 50 51 /** the main Gtk struct as a void* */ 52 protected void* getStruct() 53 { 54 return cast(void*)gstMpegtsSCTESIT; 55 } 56 57 /** 58 * Sets our main struct and passes it to the parent class. 59 */ 60 public this (GstMpegtsSCTESIT* gstMpegtsSCTESIT, bool ownedRef = false) 61 { 62 this.gstMpegtsSCTESIT = gstMpegtsSCTESIT; 63 this.ownedRef = ownedRef; 64 } 65 66 ~this () 67 { 68 if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) 69 sliceFree(gstMpegtsSCTESIT); 70 } 71 72 73 /** */ 74 public @property bool encryptedPacket() 75 { 76 return gstMpegtsSCTESIT.encryptedPacket != 0; 77 } 78 79 /** Ditto */ 80 public @property void encryptedPacket(bool value) 81 { 82 gstMpegtsSCTESIT.encryptedPacket = value; 83 } 84 85 /** */ 86 public @property ubyte encryptionAlgorithm() 87 { 88 return gstMpegtsSCTESIT.encryptionAlgorithm; 89 } 90 91 /** Ditto */ 92 public @property void encryptionAlgorithm(ubyte value) 93 { 94 gstMpegtsSCTESIT.encryptionAlgorithm = value; 95 } 96 97 /** */ 98 public @property ulong ptsAdjustment() 99 { 100 return gstMpegtsSCTESIT.ptsAdjustment; 101 } 102 103 /** Ditto */ 104 public @property void ptsAdjustment(ulong value) 105 { 106 gstMpegtsSCTESIT.ptsAdjustment = value; 107 } 108 109 /** */ 110 public @property ubyte cwIndex() 111 { 112 return gstMpegtsSCTESIT.cwIndex; 113 } 114 115 /** Ditto */ 116 public @property void cwIndex(ubyte value) 117 { 118 gstMpegtsSCTESIT.cwIndex = value; 119 } 120 121 /** */ 122 public @property ushort tier() 123 { 124 return gstMpegtsSCTESIT.tier; 125 } 126 127 /** Ditto */ 128 public @property void tier(ushort value) 129 { 130 gstMpegtsSCTESIT.tier = value; 131 } 132 133 /** */ 134 public @property ushort spliceCommandLength() 135 { 136 return gstMpegtsSCTESIT.spliceCommandLength; 137 } 138 139 /** Ditto */ 140 public @property void spliceCommandLength(ushort value) 141 { 142 gstMpegtsSCTESIT.spliceCommandLength = value; 143 } 144 145 /** */ 146 public @property GstMpegtsSCTESpliceCommandType spliceCommandType() 147 { 148 return gstMpegtsSCTESIT.spliceCommandType; 149 } 150 151 /** Ditto */ 152 public @property void spliceCommandType(GstMpegtsSCTESpliceCommandType value) 153 { 154 gstMpegtsSCTESIT.spliceCommandType = value; 155 } 156 157 /** */ 158 public @property bool spliceTimeSpecified() 159 { 160 return gstMpegtsSCTESIT.spliceTimeSpecified != 0; 161 } 162 163 /** Ditto */ 164 public @property void spliceTimeSpecified(bool value) 165 { 166 gstMpegtsSCTESIT.spliceTimeSpecified = value; 167 } 168 169 /** */ 170 public @property ulong spliceTime() 171 { 172 return gstMpegtsSCTESIT.spliceTime; 173 } 174 175 /** Ditto */ 176 public @property void spliceTime(ulong value) 177 { 178 gstMpegtsSCTESIT.spliceTime = value; 179 } 180 181 /** */ 182 public @property PtrArray splices() 183 { 184 return new PtrArray(gstMpegtsSCTESIT.splices, false); 185 } 186 187 /** Ditto */ 188 public @property void splices(PtrArray value) 189 { 190 gstMpegtsSCTESIT.splices = value.getPtrArrayStruct(); 191 } 192 193 /** */ 194 public @property PtrArray descriptors() 195 { 196 return new PtrArray(gstMpegtsSCTESIT.descriptors, false); 197 } 198 199 /** Ditto */ 200 public @property void descriptors(PtrArray value) 201 { 202 gstMpegtsSCTESIT.descriptors = value.getPtrArrayStruct(); 203 } 204 205 /** */ 206 public static GType getType() 207 { 208 return gst_mpegts_scte_sit_get_type(); 209 } 210 211 /** 212 * Allocates and initializes a #GstMpegtsSCTESIT. 213 * 214 * Returns: A newly allocated #GstMpegtsSCTESIT 215 * 216 * Throws: ConstructionException GTK+ fails to create the object. 217 */ 218 public this() 219 { 220 auto __p = gst_mpegts_scte_sit_new(); 221 222 if(__p is null) 223 { 224 throw new ConstructionException("null returned by new"); 225 } 226 227 this(cast(GstMpegtsSCTESIT*) __p); 228 } 229 }