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 gio.IOExtension; 26 27 private import glib.Str; 28 private import gobject.ObjectG; 29 private import gobject.TypeClass; 30 private import gtkc.gio; 31 public import gtkc.giotypes; 32 33 34 public class IOExtension 35 { 36 /** the main Gtk struct */ 37 protected GIOExtension* gIOExtension; 38 39 /** Get the main Gtk struct */ 40 public GIOExtension* getIOExtensionStruct() 41 { 42 return gIOExtension; 43 } 44 45 /** the main Gtk struct as a void* */ 46 protected void* getStruct() 47 { 48 return cast(void*)gIOExtension; 49 } 50 51 /** 52 * Sets our main struct and passes it to the parent class. 53 */ 54 public this (GIOExtension* gIOExtension) 55 { 56 this.gIOExtension = gIOExtension; 57 } 58 59 /** 60 */ 61 62 /** 63 * Gets the name under which @extension was registered. 64 * 65 * Note that the same type may be registered as extension 66 * for multiple extension points, under different names. 67 * 68 * Return: the name of @extension. 69 */ 70 public string getName() 71 { 72 return Str.toString(g_io_extension_get_name(gIOExtension)); 73 } 74 75 /** 76 * Gets the priority with which @extension was registered. 77 * 78 * Return: the priority of @extension 79 */ 80 public int getPriority() 81 { 82 return g_io_extension_get_priority(gIOExtension); 83 } 84 85 /** 86 * Gets the type associated with @extension. 87 * 88 * Return: the type of @extension 89 */ 90 public GType getType() 91 { 92 return g_io_extension_get_type(gIOExtension); 93 } 94 95 /** 96 * Gets a reference to the class for the type that is 97 * associated with @extension. 98 * 99 * Return: the #GTypeClass for the type of @extension 100 */ 101 public TypeClass refClass() 102 { 103 auto p = g_io_extension_ref_class(gIOExtension); 104 105 if(p is null) 106 { 107 return null; 108 } 109 110 return ObjectG.getDObject!(TypeClass)(cast(GTypeClass*) p); 111 } 112 }