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.ExtendedEventDescriptor; 26 27 private import glib.PtrArray; 28 private import glib.Str; 29 private import glib.c.functions; 30 private import gst.mpegts.c.functions; 31 public import gst.mpegts.c.types; 32 private import gtkd.Loader; 33 34 35 /** 36 * Extended Event Descriptor (EN 300 468 v.1.13.1) 37 */ 38 public final class ExtendedEventDescriptor 39 { 40 /** the main Gtk struct */ 41 protected GstMpegtsExtendedEventDescriptor* gstMpegtsExtendedEventDescriptor; 42 protected bool ownedRef; 43 44 /** Get the main Gtk struct */ 45 public GstMpegtsExtendedEventDescriptor* getExtendedEventDescriptorStruct(bool transferOwnership = false) 46 { 47 if (transferOwnership) 48 ownedRef = false; 49 return gstMpegtsExtendedEventDescriptor; 50 } 51 52 /** the main Gtk struct as a void* */ 53 protected void* getStruct() 54 { 55 return cast(void*)gstMpegtsExtendedEventDescriptor; 56 } 57 58 /** 59 * Sets our main struct and passes it to the parent class. 60 */ 61 public this (GstMpegtsExtendedEventDescriptor* gstMpegtsExtendedEventDescriptor, bool ownedRef = false) 62 { 63 this.gstMpegtsExtendedEventDescriptor = gstMpegtsExtendedEventDescriptor; 64 this.ownedRef = ownedRef; 65 } 66 67 ~this () 68 { 69 if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) 70 gst_mpegts_extended_event_descriptor_free(gstMpegtsExtendedEventDescriptor); 71 } 72 73 74 /** */ 75 public @property ubyte descriptorNumber() 76 { 77 return gstMpegtsExtendedEventDescriptor.descriptorNumber; 78 } 79 80 /** Ditto */ 81 public @property void descriptorNumber(ubyte value) 82 { 83 gstMpegtsExtendedEventDescriptor.descriptorNumber = value; 84 } 85 86 /** */ 87 public @property ubyte lastDescriptorNumber() 88 { 89 return gstMpegtsExtendedEventDescriptor.lastDescriptorNumber; 90 } 91 92 /** Ditto */ 93 public @property void lastDescriptorNumber(ubyte value) 94 { 95 gstMpegtsExtendedEventDescriptor.lastDescriptorNumber = value; 96 } 97 98 /** 99 * NULL terminated language code. 100 */ 101 public @property string languageCode() 102 { 103 return Str.toString(gstMpegtsExtendedEventDescriptor.languageCode); 104 } 105 106 /** Ditto */ 107 public @property void languageCode(string value) 108 { 109 gstMpegtsExtendedEventDescriptor.languageCode = Str.toStringz(value); 110 } 111 112 /** 113 * the #GstMpegtsExtendedEventItem 114 */ 115 public @property PtrArray items() 116 { 117 return new PtrArray(gstMpegtsExtendedEventDescriptor.items, false); 118 } 119 120 /** Ditto */ 121 public @property void items(PtrArray value) 122 { 123 gstMpegtsExtendedEventDescriptor.items = value.getPtrArrayStruct(); 124 } 125 126 /** */ 127 public @property string text() 128 { 129 return Str.toString(gstMpegtsExtendedEventDescriptor.text); 130 } 131 132 /** Ditto */ 133 public @property void text(string value) 134 { 135 gstMpegtsExtendedEventDescriptor.text = Str.toStringz(value); 136 } 137 138 /** */ 139 public static GType getType() 140 { 141 return gst_mpegts_extended_event_descriptor_get_type(); 142 } 143 144 /** */ 145 public void free() 146 { 147 gst_mpegts_extended_event_descriptor_free(gstMpegtsExtendedEventDescriptor); 148 ownedRef = false; 149 } 150 }