2003-02-12 01:58:03 +00:00
<Type Name= "XMLCustomWidgetHandler" FullName= "Glade.XMLCustomWidgetHandler" >
2007-01-15 21:28:02 +00:00
<TypeSignature Language= "C#" Maintainer= "auto" Value= "public delegate Gtk.Widget XMLCustomWidgetHandler(XML xml, string func_name, string name, string string1, string string2, int int1, int int2);" />
2003-02-12 01:58:03 +00:00
<AssemblyInfo >
<AssemblyName > glade-sharp</AssemblyName>
2007-12-06 17:41:44 +00:00
<AssemblyVersion > 2.12.0.0</AssemblyVersion>
2003-02-12 01:58:03 +00:00
</AssemblyInfo>
2003-02-23 07:26:30 +00:00
<ThreadSafetyStatement > Gtk# is thread aware, but not thread safe; See the <link location= "node:gtk-sharp/programming/threads" > Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
2003-02-12 01:58:03 +00:00
<Docs >
2005-05-23 20:41:51 +00:00
<param name= "xml" > To be added.</param>
<param name= "func_name" > To be added.</param>
<param name= "name" > To be added.</param>
<param name= "string1" > To be added.</param>
<param name= "string2" > To be added.</param>
<param name= "int1" > To be added.</param>
<param name= "int2" > To be added.</param>
2004-07-14 02:01:45 +00:00
<summary > Event handler.</summary>
2006-07-26 17:20:32 +00:00
<remarks > this delegate is used for custom methods to call when a custom widget is found.
<code lang= "C#" >
public class View{
private Glade.XML gui; //Our gui made with glade
public View(){
// You have to made the handler before creating the view
Glade.XML.CustomHandler = CreationCustomWidget;
// creation of the view
gui=new Glade.XML("/home/alex/glade/projet.glade","View","");
// the handlers of the view are defined in this instance
gui.Autoconnect(this);
}
// Basic handler
public void OnDeleteWindow(object o,DeleteEventArgs arg){ Application.Quit }
// func_name: the name of the function (written in the field "creation function name" in glade)
// so we can distinguish between the custom widget we want to create
// name, string1, etc parameters set in glade
public Widget CreationCustomWidget(Glade.XML xml, string func_name, string name, string string1, string string2, int int1, int int2){
Button b = new Button("Hello Button");
b.Show();
return b;
}
}
</code> </remarks>
2005-05-23 20:41:51 +00:00
<returns > To be added.</returns>
2003-02-12 01:58:03 +00:00
</Docs>
<Base >
<BaseTypeName > System.Delegate</BaseTypeName>
</Base>
<Members />
2003-09-09 22:40:47 +00:00
<Parameters >
<Parameter Name= "xml" Type= "Glade.XML" />
<Parameter Name= "func_name" Type= "System.String" />
<Parameter Name= "name" Type= "System.String" />
<Parameter Name= "string1" Type= "System.String" />
<Parameter Name= "string2" Type= "System.String" />
<Parameter Name= "int1" Type= "System.Int32" />
<Parameter Name= "int2" Type= "System.Int32" />
</Parameters>
<ReturnValue >
<ReturnType > Gtk.Widget</ReturnType>
</ReturnValue>
2006-08-03 17:10:57 +00:00
</Type>