2003-02-12 02:00:12 +00:00
<Type Name= "Toolbar" FullName= "Gtk.Toolbar" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "Duncan Mak" Value= "public class Toolbar : Gtk.Container" />
2003-02-12 02:00:12 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2005-06-17 18:43:30 +00:00
<AssemblyVersion > 2.6.0.0</AssemblyVersion>
2003-02-12 02:00:12 +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 02:00:12 +00:00
<Docs >
2003-02-18 06:39:00 +00:00
<summary > Create bars of buttons and other widgets.</summary>
<remarks >
2003-07-17 06:38:40 +00:00
<para > A <see cref= "T:Gtk.Toolbar" /> is created with a call to <see cref= "C:Gtk.Toolbar()" /> .</para>
2003-02-18 06:39:00 +00:00
<para >
2003-06-27 03:09:54 +00:00
Buttons with text and/or images are added with <see cref= "M:Gtk.Toolbar.AppendItem(System.String,System.String,System.String,Gtk.Widget,Gtk.SignalFunc)" /> ,
<see cref= "M:Gtk.Toolbar.PrependItem(System.String,System.String,System.String,Gtk.Widget,Gtk.SignalFunc)" /> ,
and <see cref= "M:Gtk.Toolbar.InsertItem(System.String,System.String,System.String,Gtk.Widget,Gtk.SignalFunc,System.IntPtr,System.Int32)" /> .
2003-02-18 06:39:00 +00:00
</para>
<para >
2003-06-27 03:09:54 +00:00
Any of <see cref= "T:Gtk.ToggleButton" /> , <see cref= "T:Gtk.RadioButton" /> , or an arbitrary widget can be added to the toolbar with
<see cref= "M:Gtk.Toolbar.AppendElement(Gtk.ToolbarChildType,Gtk.Widget,System.String,System.String,System.String,Gtk.Widget,Gtk.SignalFunc)" /> ,
<see cref= "M:Gtk.Toolbar.PrependElement(Gtk.ToolbarChildType,Gtk.Widget,System.String,System.String,System.String,Gtk.Widget,Gtk.SignalFunc)" /> ,
and <see cref= "M:Gtk.Toolbar.InsertElement(Gtk.ToolbarChildType,Gtk.Widget,System.String,System.String,System.String,Gtk.Widget,Gtk.SignalFunc,System.IntPtr,System.Int32)" /> .
2003-02-18 06:39:00 +00:00
</para>
<para >
2003-06-27 03:09:54 +00:00
Widgets can be visibly grouped by adding gaps between widgets using <see cref= "M:Gtk.Toolbar.AppendSpace()" /> , <see cref= "M:Gtk.Toolbar.PrependSpace()" /> , and <see cref= "M:Gtk.Toolbar.InsertSpace(System.Int32)" /> .
2003-02-18 06:39:00 +00:00
</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
<Base >
<BaseTypeName > Gtk.Container</BaseTypeName>
</Base>
<Interfaces >
</Interfaces>
2005-05-23 20:41:51 +00:00
<Attributes >
<Attribute >
<AttributeName > System.Reflection.DefaultMember(MemberName="Item")</AttributeName>
</Attribute>
</Attributes>
2003-02-12 02:00:12 +00:00
<Members >
<Member MemberName= "PrependSpace" >
<MemberSignature Language= "C#" Value= "public void PrependSpace ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2005-01-05 20:40:10 +00:00
<summary > Deprecated.</summary>
<remarks > Adds a new space to the beginning of the toolbar.</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "UnsetStyle" >
<MemberSignature Language= "C#" Value= "public void UnsetStyle ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-02-23 07:26:30 +00:00
<summary > Unsets a toolbar style set with <see cref= "P:Gtk.Toolbar.ToolbarStyle" /> .</summary>
<remarks > Unsets a toolbar style set with <see cref= "P:Gtk.Toolbar.ToolbarStyle" /> , so that user preferences will be used to determine the toolbar style.</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "UnsetIconSize" >
<MemberSignature Language= "C#" Value= "public void UnsetIconSize ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-02-18 06:39:00 +00:00
<summary >
2003-02-23 07:26:30 +00:00
Unsets toolbar icon size set with <see cref= "P:Gtk.Toolbar.IconSize" /> .
2004-08-04 17:10:22 +00:00
</summary>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "InsertWidget" >
<MemberSignature Language= "C#" Value= "public void InsertWidget (Gtk.Widget widget, string tooltip_text, string tooltip_private_text, int position);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "widget" Type= "Gtk.Widget" />
<Parameter Name= "tooltip_text" Type= "System.String" />
<Parameter Name= "tooltip_private_text" Type= "System.String" />
<Parameter Name= "position" Type= "System.Int32" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2005-01-05 20:40:10 +00:00
<summary > Deprecated.</summary>
2003-02-23 07:26:30 +00:00
<param name= "widget" > a <see cref= "T:Gtk.Widget" /> to add to the toolbar.</param>
2003-06-27 03:09:54 +00:00
<param name= "tooltip_text" > The tooltip for the element.</param>
2003-02-18 06:39:00 +00:00
<param name= "tooltip_private_text" > Used for context-sensitive help about this toolbar element.</param>
<param name= "position" > The number of widgets to insert this widget after.</param>
2005-01-25 15:28:42 +00:00
<remarks > Inserts a widget in the toolbar at the given position.</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "AppendWidget" >
<MemberSignature Language= "C#" Value= "public void AppendWidget (Gtk.Widget widget, string tooltip_text, string tooltip_private_text);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "widget" Type= "Gtk.Widget" />
<Parameter Name= "tooltip_text" Type= "System.String" />
<Parameter Name= "tooltip_private_text" Type= "System.String" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2005-01-05 20:40:10 +00:00
<summary > Deprecated.</summary>
2003-02-23 07:26:30 +00:00
<param name= "widget" > A <see cref= "T:Gtk.Widget" /> to add to the toolbar.</param>
2003-06-27 03:09:54 +00:00
<param name= "tooltip_text" > The tooltip for the element.</param>
2003-02-18 06:39:00 +00:00
<param name= "tooltip_private_text" > Used for context-sensitive help about this toolbar element.</param>
2005-01-05 20:40:10 +00:00
<remarks > Adds a widget to the end of the given toolbar.</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "AppendSpace" >
<MemberSignature Language= "C#" Value= "public void AppendSpace ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2005-01-05 20:40:10 +00:00
<summary > Deprecated.</summary>
<remarks > Adds a new space to the end of the toolbar.</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "RemoveSpace" >
<MemberSignature Language= "C#" Value= "public void RemoveSpace (int position);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "position" Type= "System.Int32" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2005-01-05 20:40:10 +00:00
<summary > Deprecated.</summary>
2003-02-18 06:39:00 +00:00
<param name= "position" > The index of the space to remove.</param>
2005-01-05 20:40:10 +00:00
<remarks > Removes a space from the specified position.</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "PrependWidget" >
<MemberSignature Language= "C#" Value= "public void PrependWidget (Gtk.Widget widget, string tooltip_text, string tooltip_private_text);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "widget" Type= "Gtk.Widget" />
<Parameter Name= "tooltip_text" Type= "System.String" />
<Parameter Name= "tooltip_private_text" Type= "System.String" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2005-01-05 20:40:10 +00:00
<summary > Deprecated.</summary>
2003-02-23 07:26:30 +00:00
<param name= "widget" > a <see cref= "T:Gtk.Widget" /> to add to the toolbar.</param>
2003-06-27 03:09:54 +00:00
<param name= "tooltip_text" > The tooltip for the element.</param>
2003-02-18 06:39:00 +00:00
<param name= "tooltip_private_text" > Used for context-sensitive help about this toolbar element.</param>
2005-01-05 20:40:10 +00:00
<remarks > Adds a widget to the beginning of the given toolbar.</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "InsertSpace" >
<MemberSignature Language= "C#" Value= "public void InsertSpace (int position);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "position" Type= "System.Int32" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2005-01-05 20:40:10 +00:00
<summary > Deprecated. Do not use.</summary>
2003-02-18 06:39:00 +00:00
<param name= "position" > The number of widgets after which a space should be inserted.</param>
2005-01-05 20:40:10 +00:00
<remarks > Inserts a new space in the toolbar at the specified position.</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Toolbar (IntPtr raw);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-18 06:39:00 +00:00
<summary > Internal constructor</summary>
2003-02-23 07:26:30 +00:00
<param name= "raw" > Pointer to the C object.</param>
<remarks >
<para > This is an internal constructor, and should not be used by user code.</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Toolbar ();" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
2003-02-18 06:39:00 +00:00
<summary > Creates a new toolbar.</summary>
2004-08-04 17:10:22 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "IconSize" >
<MemberSignature Language= "C#" Value= "public Gtk.IconSize IconSize { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.IconSize</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-06-27 03:09:54 +00:00
<summary > This function sets the size of stock icons in the toolbar. You can call it both before you add the icons and after they have been added. The size you set will override user preferences for the default icon size.</summary>
2005-05-23 20:41:51 +00:00
<value > The icon size for the toolbar.</value>
2004-08-04 17:10:22 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Tooltips" >
<MemberSignature Language= "C#" Value= "public bool Tooltips { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-18 06:39:00 +00:00
<summary > Sets if the tooltips of a toolbar should be active or not.</summary>
2005-05-23 20:41:51 +00:00
<value > Whether tooltips are enabled.</value>
2004-08-04 17:10:22 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "ToolbarStyle" >
<MemberSignature Language= "C#" Value= "public Gtk.ToolbarStyle ToolbarStyle { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.ToolbarStyle</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-18 06:39:00 +00:00
<summary > Alters the view of toolbar to display either icons only, text only, or both.</summary>
2005-05-23 20:41:51 +00:00
<value > The current style of toolbar.</value>
2004-08-04 17:10:22 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
2005-06-16 18:56:42 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > GLib.Property(Name="toolbar_style")</AttributeName>
</Attribute>
2005-06-16 18:56:42 +00:00
</Attributes>
</Member>
2003-02-12 02:00:12 +00:00
<Member MemberName= "Orientation" >
<MemberSignature Language= "C#" Value= "public Gtk.Orientation Orientation { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.Orientation</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-07-17 06:38:40 +00:00
<summary > Sets the <see cref= "T:Gtk.Orientation" /> of the toolbar to either <see cref= "T:Gtk.Orientation.Horizontal" /> or <see cref= "T:Gtk.Orientation.Vertical" /> .</summary>
2005-05-23 20:41:51 +00:00
<value > The orientation of the toolbar.</value>
2004-08-04 17:10:22 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
2005-06-16 18:56:42 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > GLib.Property(Name="orientation")</AttributeName>
</Attribute>
2005-06-16 18:56:42 +00:00
</Attributes>
</Member>
2003-02-12 02:00:12 +00:00
<Member MemberName= "StyleChanged" >
2004-02-25 23:39:06 +00:00
<MemberSignature Language= "C#" Value= "public event Gtk.StyleChangedHandler StyleChanged;" />
2003-02-12 02:00:12 +00:00
<MemberType > Event</MemberType>
2003-09-17 21:56:59 +00:00
<ReturnValue >
2004-02-25 23:39:06 +00:00
<ReturnType > Gtk.StyleChangedHandler</ReturnType>
2003-09-17 21:56:59 +00:00
</ReturnValue>
2003-02-12 02:00:12 +00:00
<Parameters />
<Docs >
2003-02-18 06:39:00 +00:00
<summary > Used if you wish to perform an action when the orientation of a toolbar is changed.</summary>
2004-08-04 17:10:22 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
2005-06-16 18:56:42 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > GLib.Signal(CName="style-changed")</AttributeName>
</Attribute>
2005-06-16 18:56:42 +00:00
</Attributes>
</Member>
2003-02-12 02:00:12 +00:00
<Member MemberName= "OrientationChanged" >
2004-02-25 23:39:06 +00:00
<MemberSignature Language= "C#" Value= "public event Gtk.OrientationChangedHandler OrientationChanged;" />
2003-02-12 02:00:12 +00:00
<MemberType > Event</MemberType>
2003-09-17 21:56:59 +00:00
<ReturnValue >
2004-02-25 23:39:06 +00:00
<ReturnType > Gtk.OrientationChangedHandler</ReturnType>
2003-09-17 21:56:59 +00:00
</ReturnValue>
2003-02-12 02:00:12 +00:00
<Parameters />
<Docs >
2003-02-18 06:39:00 +00:00
<summary > Used if you wish to perform an action when ever the style of a toolbar is adjusted.</summary>
<remarks > For example, this would be a useful signal to connect to if you want to display more items on the toolbar when it is in icon-only mode; each item takes less space on the bar.</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
2005-06-16 18:56:42 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > GLib.Signal(CName="orientation-changed")</AttributeName>
</Attribute>
2005-06-16 18:56:42 +00:00
</Attributes>
</Member>
2003-12-24 01:35:30 +00:00
<Member MemberName= "GType" >
<MemberSignature Language= "C#" Value= "public static GLib.GType GType { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > GLib.GType</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-06-21 20:14:42 +00:00
<summary > GType Property.</summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:GLib.GType" /> </value>
2004-06-21 20:14:42 +00:00
<remarks > Returns the native <see cref= "T:GLib.GType" /> value for <see cref= "T:Gtk.Toolbar" /> .</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "OnOrientationChanged" >
<MemberSignature Language= "C#" Value= "protected virtual void OnOrientationChanged (Gtk.Orientation orientation);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "orientation" Type= "Gtk.Orientation" />
</Parameters>
<Docs >
2004-06-15 15:41:25 +00:00
<summary > Default handler for the <see cref= "M:Gtk.Toolbar.OrientationChanged" /> event.</summary>
2003-12-24 01:35:30 +00:00
<param name= "orientation" > a <see cref= "T:Gtk.Orientation" /> </param>
2004-06-15 15:41:25 +00:00
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.Toolbar.OrientationChanged" /> event.</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "OnStyleChanged" >
<MemberSignature Language= "C#" Value= "protected virtual void OnStyleChanged (Gtk.ToolbarStyle style);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "style" Type= "Gtk.ToolbarStyle" />
</Parameters>
<Docs >
2004-06-15 15:41:25 +00:00
<summary > Default handler for the <see cref= "M:Gtk.Toolbar.StyleChanged" /> event.</summary>
2003-12-24 01:35:30 +00:00
<param name= "style" > a <see cref= "T:Gtk.ToolbarStyle" /> </param>
2004-06-15 15:41:25 +00:00
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.Toolbar.StyleChanged" /> event.</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "PrependElement" >
<MemberSignature Language= "C#" Value= "public Gtk.Widget PrependElement (Gtk.ToolbarChildType type, Gtk.Widget widget, string text, string tooltip_text, string tooltip_private_text, Gtk.Widget icon, Gtk.SignalFunc cb);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.Widget</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "type" Type= "Gtk.ToolbarChildType" />
<Parameter Name= "widget" Type= "Gtk.Widget" />
<Parameter Name= "text" Type= "System.String" />
<Parameter Name= "tooltip_text" Type= "System.String" />
<Parameter Name= "tooltip_private_text" Type= "System.String" />
<Parameter Name= "icon" Type= "Gtk.Widget" />
<Parameter Name= "cb" Type= "Gtk.SignalFunc" />
</Parameters>
<Docs >
2004-08-04 17:10:22 +00:00
<summary >
2004-08-17 20:43:49 +00:00
<para >
2004-08-04 17:10:22 +00:00
This method is deprecated and should not be used in new code.
</para>
2004-08-17 20:43:49 +00:00
<para >
2004-08-04 17:10:22 +00:00
Adds a new button to the beginning of the toolbar (left or top, depending on toolbar orientation).
</para>
2004-08-17 20:43:49 +00:00
<para >
2004-08-04 17:10:22 +00:00
If type == <see cref= "T:Gtk.ToolbarChildType.Widget" /> , widget is used as the new element. If type == <see cref= "T:Gtk.ToolbarChildType.Radiobutton" /> , widget is used to determine the radio group for the new element. In all other cases, widget must be NULL.
</para>
2004-08-17 20:43:49 +00:00
</summary>
2004-08-04 17:10:22 +00:00
<param name= "type" > a <see cref= "T:Gtk.ToolbarChildType" /> , the type of widget to add</param>
<param name= "widget" > a <see cref= "T:Gtk.Widget" /> , the widget itself</param>
<param name= "text" > a <see cref= "T:System.String" /> , a label for the widget</param>
<param name= "tooltip_text" > a <see cref= "T:System.String" /> , simple tooltip text</param>
<param name= "tooltip_private_text" > a <see cref= "T:System.String" /> , context-sensitive detailed help</param>
<param name= "icon" > a <see cref= "T:Gtk.Widget" /> , the icon to use for this widget</param>
<param name= "cb" > a <see cref= "T:Gtk.SignalFunc" /> , a callback function to use when the new widget is touched.</param>
2003-12-24 01:35:30 +00:00
<returns > a <see cref= "T:Gtk.Widget" /> </returns>
2005-05-23 20:41:51 +00:00
<remarks > To be added.</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "InsertElement" >
<MemberSignature Language= "C#" Value= "public Gtk.Widget InsertElement (Gtk.ToolbarChildType type, Gtk.Widget widget, string text, string tooltip_text, string tooltip_private_text, Gtk.Widget icon, Gtk.SignalFunc cb, IntPtr user_data, int position);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.Widget</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "type" Type= "Gtk.ToolbarChildType" />
<Parameter Name= "widget" Type= "Gtk.Widget" />
<Parameter Name= "text" Type= "System.String" />
<Parameter Name= "tooltip_text" Type= "System.String" />
<Parameter Name= "tooltip_private_text" Type= "System.String" />
<Parameter Name= "icon" Type= "Gtk.Widget" />
<Parameter Name= "cb" Type= "Gtk.SignalFunc" />
<Parameter Name= "user_data" Type= "System.IntPtr" />
<Parameter Name= "position" Type= "System.Int32" />
</Parameters>
<Docs >
2004-08-04 17:10:22 +00:00
<summary >
2004-08-17 20:43:49 +00:00
<para >
2004-08-04 17:10:22 +00:00
This method is deprecated and should not be used in new code.
</para>
2004-08-17 20:43:49 +00:00
<para >
2004-08-04 17:10:22 +00:00
Adds a new button to the beginning of the toolbar (left or top, depending on toolbar orientation).
</para>
2004-08-17 20:43:49 +00:00
<para >
2004-08-04 17:10:22 +00:00
If type == <see cref= "T:Gtk.ToolbarChildType.Widget" /> , widget is used as the new element. If type == <see cref= "T:Gtk.ToolbarChildType.Radiobutton" /> , widget is used to determine the radio group for the new element. In all other cases, widget must be NULL.
</para>
2004-08-17 20:43:49 +00:00
</summary>
2004-08-04 17:10:22 +00:00
<param name= "type" > a <see cref= "T:Gtk.ToolbarChildType" /> , the type of widget to add</param>
<param name= "widget" > a <see cref= "T:Gtk.Widget" /> , the widget itself</param>
<param name= "text" > a <see cref= "T:System.String" /> , a label for the widget</param>
<param name= "tooltip_text" > a <see cref= "T:System.String" /> , simple tooltip text</param>
<param name= "tooltip_private_text" > a <see cref= "T:System.String" /> , context-sensitive detailed help</param>
<param name= "icon" > a <see cref= "T:Gtk.Widget" /> , the icon to use for this widget</param>
<param name= "cb" > a <see cref= "T:Gtk.SignalFunc" /> , a callback function to use when the new widget is touched.</param>
<param name= "user_data" > a <see cref= "T:System.IntPtr" /> , data to pass to the callback.</param>
<param name= "position" > a <see cref= "T:System.Int32" /> , the number of toolbar widgets to insert this element after.</param>
<returns > a <see cref= "T:Gtk.Widget" /> , the new toolbar element.</returns>
<remarks />
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "AppendItem" >
<MemberSignature Language= "C#" Value= "public Gtk.Widget AppendItem (string text, string tooltip_text, string tooltip_private_text, Gtk.Widget icon, Gtk.SignalFunc cb);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.Widget</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "text" Type= "System.String" />
<Parameter Name= "tooltip_text" Type= "System.String" />
<Parameter Name= "tooltip_private_text" Type= "System.String" />
<Parameter Name= "icon" Type= "Gtk.Widget" />
<Parameter Name= "cb" Type= "Gtk.SignalFunc" />
</Parameters>
<Docs >
2004-08-04 17:10:22 +00:00
<summary > Deprecated.</summary>
2003-12-24 01:35:30 +00:00
<param name= "text" > a <see cref= "T:System.String" /> </param>
<param name= "tooltip_text" > a <see cref= "T:System.String" /> </param>
<param name= "tooltip_private_text" > a <see cref= "T:System.String" /> </param>
<param name= "icon" > a <see cref= "T:Gtk.Widget" /> </param>
<param name= "cb" > a <see cref= "T:Gtk.SignalFunc" /> </param>
<returns > a <see cref= "T:Gtk.Widget" /> </returns>
2004-08-04 17:10:22 +00:00
<remarks />
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "InsertStock" >
<MemberSignature Language= "C#" Value= "public Gtk.Widget InsertStock (string stock_id, string tooltip_text, string tooltip_private_text, Gtk.SignalFunc cb, IntPtr user_data, int position);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.Widget</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "stock_id" Type= "System.String" />
<Parameter Name= "tooltip_text" Type= "System.String" />
<Parameter Name= "tooltip_private_text" Type= "System.String" />
<Parameter Name= "cb" Type= "Gtk.SignalFunc" />
<Parameter Name= "user_data" Type= "System.IntPtr" />
<Parameter Name= "position" Type= "System.Int32" />
</Parameters>
<Docs >
2004-06-24 13:52:21 +00:00
<summary > Deprecated.</summary>
2003-12-24 01:35:30 +00:00
<param name= "stock_id" > a <see cref= "T:System.String" /> </param>
<param name= "tooltip_text" > a <see cref= "T:System.String" /> </param>
<param name= "tooltip_private_text" > a <see cref= "T:System.String" /> </param>
<param name= "cb" > a <see cref= "T:Gtk.SignalFunc" /> </param>
<param name= "user_data" > a <see cref= "T:System.IntPtr" /> </param>
<param name= "position" > a <see cref= "T:System.Int32" /> </param>
<returns > a <see cref= "T:Gtk.Widget" /> </returns>
2004-08-04 17:10:22 +00:00
<remarks />
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "InsertItem" >
<MemberSignature Language= "C#" Value= "public Gtk.Widget InsertItem (string text, string tooltip_text, string tooltip_private_text, Gtk.Widget icon, Gtk.SignalFunc cb, IntPtr user_data, int position);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.Widget</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "text" Type= "System.String" />
<Parameter Name= "tooltip_text" Type= "System.String" />
<Parameter Name= "tooltip_private_text" Type= "System.String" />
<Parameter Name= "icon" Type= "Gtk.Widget" />
<Parameter Name= "cb" Type= "Gtk.SignalFunc" />
<Parameter Name= "user_data" Type= "System.IntPtr" />
<Parameter Name= "position" Type= "System.Int32" />
</Parameters>
<Docs >
2004-08-04 17:10:22 +00:00
<summary > Deprecated.</summary>
2003-12-24 01:35:30 +00:00
<param name= "text" > a <see cref= "T:System.String" /> </param>
<param name= "tooltip_text" > a <see cref= "T:System.String" /> </param>
<param name= "tooltip_private_text" > a <see cref= "T:System.String" /> </param>
<param name= "icon" > a <see cref= "T:Gtk.Widget" /> </param>
<param name= "cb" > a <see cref= "T:Gtk.SignalFunc" /> </param>
<param name= "user_data" > a <see cref= "T:System.IntPtr" /> </param>
<param name= "position" > a <see cref= "T:System.Int32" /> </param>
<returns > a <see cref= "T:Gtk.Widget" /> </returns>
2004-08-04 17:10:22 +00:00
<remarks />
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "PrependItem" >
<MemberSignature Language= "C#" Value= "public Gtk.Widget PrependItem (string text, string tooltip_text, string tooltip_private_text, Gtk.Widget icon, Gtk.SignalFunc cb);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.Widget</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "text" Type= "System.String" />
<Parameter Name= "tooltip_text" Type= "System.String" />
<Parameter Name= "tooltip_private_text" Type= "System.String" />
<Parameter Name= "icon" Type= "Gtk.Widget" />
<Parameter Name= "cb" Type= "Gtk.SignalFunc" />
</Parameters>
<Docs >
2004-08-04 17:10:22 +00:00
<summary > Deprecated.</summary>
2003-12-24 01:35:30 +00:00
<param name= "text" > a <see cref= "T:System.String" /> </param>
<param name= "tooltip_text" > a <see cref= "T:System.String" /> </param>
<param name= "tooltip_private_text" > a <see cref= "T:System.String" /> </param>
<param name= "icon" > a <see cref= "T:Gtk.Widget" /> </param>
<param name= "cb" > a <see cref= "T:Gtk.SignalFunc" /> </param>
<returns > a <see cref= "T:Gtk.Widget" /> </returns>
2004-08-04 17:10:22 +00:00
<remarks />
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "AppendElement" >
<MemberSignature Language= "C#" Value= "public Gtk.Widget AppendElement (Gtk.ToolbarChildType type, Gtk.Widget widget, string text, string tooltip_text, string tooltip_private_text, Gtk.Widget icon, Gtk.SignalFunc cb);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.Widget</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "type" Type= "Gtk.ToolbarChildType" />
<Parameter Name= "widget" Type= "Gtk.Widget" />
<Parameter Name= "text" Type= "System.String" />
<Parameter Name= "tooltip_text" Type= "System.String" />
<Parameter Name= "tooltip_private_text" Type= "System.String" />
<Parameter Name= "icon" Type= "Gtk.Widget" />
<Parameter Name= "cb" Type= "Gtk.SignalFunc" />
</Parameters>
<Docs >
2004-08-04 17:10:22 +00:00
<summary > Deprecated.</summary>
2003-12-24 01:35:30 +00:00
<param name= "type" > a <see cref= "T:Gtk.ToolbarChildType" /> </param>
<param name= "widget" > a <see cref= "T:Gtk.Widget" /> </param>
<param name= "text" > a <see cref= "T:System.String" /> </param>
<param name= "tooltip_text" > a <see cref= "T:System.String" /> </param>
<param name= "tooltip_private_text" > a <see cref= "T:System.String" /> </param>
<param name= "icon" > a <see cref= "T:Gtk.Widget" /> </param>
<param name= "cb" > a <see cref= "T:Gtk.SignalFunc" /> </param>
<returns > a <see cref= "T:Gtk.Widget" /> </returns>
2004-08-04 17:10:22 +00:00
<remarks />
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
2003-03-07 01:30:00 +00:00
<Member MemberName= ".ctor" >
2003-12-24 01:35:30 +00:00
<MemberSignature Language= "C#" Value= "protected Toolbar (GLib.GType gtype);" />
2003-03-07 01:30:00 +00:00
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-12-24 01:35:30 +00:00
<Parameter Name= "gtype" Type= "GLib.GType" />
2003-09-17 21:56:59 +00:00
</Parameters>
2003-03-07 01:30:00 +00:00
<Docs >
2004-06-21 20:33:11 +00:00
<summary > Protected Constructor.</summary>
2003-12-24 01:35:30 +00:00
<param name= "gtype" > a <see cref= "T:GLib.GType" /> </param>
2004-06-21 20:33:11 +00:00
<remarks > Chain to this constructor if you have manually registered a native <see cref= "T:GLib.GType" /> value for your subclass.</remarks>
2003-03-07 01:30:00 +00:00
</Docs>
2005-06-16 18:56:42 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > System.Obsolete(Message=null, IsError=False)</AttributeName>
</Attribute>
2005-06-16 18:56:42 +00:00
</Attributes>
</Member>
2004-11-05 21:25:40 +00:00
<Member MemberName= "ShowArrow" >
<MemberSignature Language= "C#" Value= "public bool ShowArrow { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-12-13 02:51:29 +00:00
<summary > Whether to show an arrow if the toolbar doesn't fit.</summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:System.Boolean" /> </value>
2004-12-21 04:08:27 +00:00
<remarks />
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2004-11-05 21:25:40 +00:00
</Docs>
2005-06-16 18:56:42 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > GLib.Property(Name="show_arrow")</AttributeName>
</Attribute>
2005-06-16 18:56:42 +00:00
</Attributes>
</Member>
2004-11-05 21:25:40 +00:00
<Member MemberName= "ReliefStyle" >
<MemberSignature Language= "C#" Value= "public Gtk.ReliefStyle ReliefStyle { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.ReliefStyle</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-12-13 02:51:29 +00:00
<summary > The relief style of buttons on the toolbar.</summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:Gtk.ReliefStyle" /> </value>
2004-12-21 04:08:27 +00:00
<remarks />
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2004-11-05 21:25:40 +00:00
</Docs>
</Member>
<Member MemberName= "NItems" >
<MemberSignature Language= "C#" Value= "public int NItems { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-12-13 02:51:29 +00:00
<summary > The number of items on the toolbar.</summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:System.Int32" /> </value>
2004-12-21 04:08:27 +00:00
<remarks />
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2004-11-05 21:25:40 +00:00
</Docs>
</Member>
<Member MemberName= "PopupContextMenu" >
<MemberSignature Language= "C#" Value= "public event Gtk.PopupContextMenuHandler PopupContextMenu;" />
<MemberType > Event</MemberType>
<ReturnValue >
<ReturnType > Gtk.PopupContextMenuHandler</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-12-13 02:51:29 +00:00
<summary > Emitted when the user right-clicks the toolbar or uses the
keybinding to display a popup menu.</summary>
<remarks >
Application developers should handle this signal if they want
to display a context menu on the toolbar.
</remarks>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2004-11-05 21:25:40 +00:00
</Docs>
2005-06-16 18:56:42 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > GLib.Signal(CName="popup_context_menu")</AttributeName>
</Attribute>
2005-06-16 18:56:42 +00:00
</Attributes>
</Member>
2004-11-05 21:25:40 +00:00
<Member MemberName= "OnPopupContextMenu" >
<MemberSignature Language= "C#" Value= "protected virtual bool OnPopupContextMenu (int x, int y, int button_number);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "x" Type= "System.Int32" />
<Parameter Name= "y" Type= "System.Int32" />
<Parameter Name= "button_number" Type= "System.Int32" />
</Parameters>
<Docs >
2004-12-08 02:37:02 +00:00
<summary > Default handler for the <see cref= "M:Gtk.Toolbar.PopupContextMenu" /> event.</summary>
2004-11-05 21:25:40 +00:00
<param name= "x" > a <see cref= "T:System.Int32" /> </param>
<param name= "y" > a <see cref= "T:System.Int32" /> </param>
<param name= "button_number" > a <see cref= "T:System.Int32" /> </param>
<returns > a <see cref= "T:System.Boolean" /> </returns>
2004-12-08 02:37:02 +00:00
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.Toolbar.PopupContextMenu" /> event.</remarks>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2004-11-05 21:25:40 +00:00
</Docs>
</Member>
<Member MemberName= "GetNthItem" >
<MemberSignature Language= "C#" Value= "public Gtk.ToolItem GetNthItem (int n);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.ToolItem</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "n" Type= "System.Int32" />
</Parameters>
<Docs >
2004-12-21 04:08:27 +00:00
<summary > Returns the <paramref name= "n" /> th item on the toolbar,
or <see langword= "null" /> if the toolbar does not contain an
<paramref name= "n" /> th item.</summary>
2004-11-05 21:25:40 +00:00
<param name= "n" > a <see cref= "T:System.Int32" /> </param>
<returns > a <see cref= "T:Gtk.ToolItem" /> </returns>
2004-12-21 04:08:27 +00:00
<remarks />
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2004-11-05 21:25:40 +00:00
</Docs>
</Member>
<Member MemberName= "Insert" >
<MemberSignature Language= "C#" Value= "public void Insert (Gtk.ToolItem item, int pos);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "item" Type= "Gtk.ToolItem" />
<Parameter Name= "pos" Type= "System.Int32" />
</Parameters>
<Docs >
2004-12-13 02:51:29 +00:00
<summary >
2004-12-21 04:08:27 +00:00
Insert a <see cref= "T:Gtk.ToolItem" /> into the toolbar at position
<paramref name= "pos" /> .
2004-12-13 02:51:29 +00:00
</summary>
2004-11-05 21:25:40 +00:00
<param name= "item" > a <see cref= "T:Gtk.ToolItem" /> </param>
<param name= "pos" > a <see cref= "T:System.Int32" /> </param>
2004-12-13 02:51:29 +00:00
<remarks >
2004-12-21 04:08:27 +00:00
If <paramref name= "pos" /> is 0 the item is prepended to the start
2004-12-13 02:51:29 +00:00
of the toolbar.
2004-12-21 04:08:27 +00:00
If <paramref name= "pos" /> is negative, the item is appended to the
2004-12-13 02:51:29 +00:00
end of the toolbar.
</remarks>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2004-11-05 21:25:40 +00:00
</Docs>
</Member>
<Member MemberName= "GetItemIndex" >
<MemberSignature Language= "C#" Value= "public int GetItemIndex (Gtk.ToolItem item);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Int32</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "item" Type= "Gtk.ToolItem" />
</Parameters>
<Docs >
2004-12-13 02:51:29 +00:00
<summary >
2004-12-21 04:08:27 +00:00
Returns the position of <paramref name= "item" /> on the toolbar,
2004-12-13 02:51:29 +00:00
starting from 0.
</summary>
2004-11-05 21:25:40 +00:00
<param name= "item" > a <see cref= "T:Gtk.ToolItem" /> </param>
<returns > a <see cref= "T:System.Int32" /> </returns>
2004-12-13 02:51:29 +00:00
<remarks >
2004-12-21 04:08:27 +00:00
It is an error if <paramref name= "item" /> is not a child of
2004-12-13 02:51:29 +00:00
the toolbar.
</remarks>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2004-11-05 21:25:40 +00:00
</Docs>
</Member>
<Member MemberName= "GetDropIndex" >
<MemberSignature Language= "C#" Value= "public int GetDropIndex (int x, int y);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Int32</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "x" Type= "System.Int32" />
<Parameter Name= "y" Type= "System.Int32" />
</Parameters>
<Docs >
2004-12-13 02:51:29 +00:00
<summary >
Returns the position corresponding to the indicated point on
the toolbar.
</summary>
2004-11-05 21:25:40 +00:00
<param name= "x" > a <see cref= "T:System.Int32" /> </param>
<param name= "y" > a <see cref= "T:System.Int32" /> </param>
<returns > a <see cref= "T:System.Int32" /> </returns>
2004-12-13 02:51:29 +00:00
<remarks >
This is useful when dragging items to the toolbar:
this function returns the position a new item should be
2004-12-21 04:08:27 +00:00
inserted. <paramref name= "x" /> and <paramref name= "y" /> are in
2004-12-13 02:51:29 +00:00
toolbar coordinates.
</remarks>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2004-11-05 21:25:40 +00:00
</Docs>
</Member>
* generator/StructBase.cs: update field-generation logic a bit
* generator/CodeGenerator.cs: add a --glue-includes flag
* generator/GenerationInfo.cs: Accept glue_includes value from
Main and output it to the glue_filename.
* generator/FieldBase.cs (Ignored): handle more ignorable cases.
(CheckGlue): New method to figure out what kind of glue we'll need
for a field.
(GenerateImports): generate appropriate imports per CheckGlue.
(GenerateGlue): Generate C glue for accessing a struct field;
either a fully-C-based accessor, or a method to just return the
field's offset in the struct.
(Generate): Use the generated glue to read the field.
* generator/PropertyBase.cs (CType): if the field is a single bit,
set its type to gboolean.
* generator/ObjectGen.cs (Generate):
* generator/OpaqueGen.cs (Generate): Call GenFields.
* generator/StructField.cs: Use FieldBase's glue-generation code
to handle bitfields. [#54489]
* generator/ObjectField.cs: Generates accessors for public fields
of objects and opaque structs. [#69514]
* generator/ClassBase.cs (ClassBase): Parse <fields> nodes and
create ObjectField objects.
(GenFields): Output field properties
(IgnoreMethod): Ignore Get/Set methods that duplicate fields
* generator/Makefile.am (sources): update
* {gdk,gnome,gtk,pango}/*.metadata: Mark some additional fields as
public. Rename/retype some fields for consistency with earlier
hand-coded bindings.
* {gdk,gnome,gtk,pango}/*.custom: Remove custom methods that can
now be autogenerated.
* {gdk,gnome,gtk,pango}/glue/*.c: Remove glue methods that can now
be autogenerated
* {gdk,glade,gnome,gtk,pango,vte}/Makefile.am
* {gdk,glade,gnome,gtk,pango,vte}/glue/Makefile.am
* {gdk,gnome,gtk,pango}/glue/makefile.win32: Update
svn path=/trunk/gtk-sharp/; revision=44563
2005-05-16 14:28:55 +00:00
<Member MemberName= "NumChildren" >
<MemberSignature Language= "C#" Value= "public int NumChildren { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > The number of items in the toolbar.</summary>
2005-05-23 20:41:51 +00:00
<value > The number of itesm.</value>
<remarks >
</remarks>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
* generator/StructBase.cs: update field-generation logic a bit
* generator/CodeGenerator.cs: add a --glue-includes flag
* generator/GenerationInfo.cs: Accept glue_includes value from
Main and output it to the glue_filename.
* generator/FieldBase.cs (Ignored): handle more ignorable cases.
(CheckGlue): New method to figure out what kind of glue we'll need
for a field.
(GenerateImports): generate appropriate imports per CheckGlue.
(GenerateGlue): Generate C glue for accessing a struct field;
either a fully-C-based accessor, or a method to just return the
field's offset in the struct.
(Generate): Use the generated glue to read the field.
* generator/PropertyBase.cs (CType): if the field is a single bit,
set its type to gboolean.
* generator/ObjectGen.cs (Generate):
* generator/OpaqueGen.cs (Generate): Call GenFields.
* generator/StructField.cs: Use FieldBase's glue-generation code
to handle bitfields. [#54489]
* generator/ObjectField.cs: Generates accessors for public fields
of objects and opaque structs. [#69514]
* generator/ClassBase.cs (ClassBase): Parse <fields> nodes and
create ObjectField objects.
(GenFields): Output field properties
(IgnoreMethod): Ignore Get/Set methods that duplicate fields
* generator/Makefile.am (sources): update
* {gdk,gnome,gtk,pango}/*.metadata: Mark some additional fields as
public. Rename/retype some fields for consistency with earlier
hand-coded bindings.
* {gdk,gnome,gtk,pango}/*.custom: Remove custom methods that can
now be autogenerated.
* {gdk,gnome,gtk,pango}/glue/*.c: Remove glue methods that can now
be autogenerated
* {gdk,glade,gnome,gtk,pango,vte}/Makefile.am
* {gdk,glade,gnome,gtk,pango,vte}/glue/Makefile.am
* {gdk,gnome,gtk,pango}/glue/makefile.win32: Update
svn path=/trunk/gtk-sharp/; revision=44563
2005-05-16 14:28:55 +00:00
</Docs>
</Member>
2005-01-25 15:28:42 +00:00
<Member MemberName= "InsertStock" >
<MemberSignature Language= "C#" Value= "public Gtk.Widget InsertStock (string stock_id, string tooltip_text, string tooltip_private_text, Gtk.SignalFunc cb, int position);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.Widget</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "stock_id" Type= "System.String" />
<Parameter Name= "tooltip_text" Type= "System.String" />
<Parameter Name= "tooltip_private_text" Type= "System.String" />
<Parameter Name= "cb" Type= "Gtk.SignalFunc" />
<Parameter Name= "position" Type= "System.Int32" />
</Parameters>
<Docs >
<summary > Deprecated</summary>
<param name= "stock_id" > a <see cref= "T:System.String" /> </param>
<param name= "tooltip_text" > a <see cref= "T:System.String" /> </param>
<param name= "tooltip_private_text" > a <see cref= "T:System.String" /> </param>
<param name= "cb" > a <see cref= "T:Gtk.SignalFunc" /> </param>
<param name= "position" > a <see cref= "T:System.Int32" /> </param>
<returns > a <see cref= "T:Gtk.Widget" /> </returns>
<remarks > Replaced by ToolItem API.</remarks>
</Docs>
</Member>
2005-04-21 17:10:54 +00:00
<Member MemberName= "SetDropHighlightItem" >
<MemberSignature Language= "C#" Value= "public void SetDropHighlightItem (Gtk.ToolItem tool_item, int index_);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "tool_item" Type= "Gtk.ToolItem" />
<Parameter Name= "index_" Type= "System.Int32" />
</Parameters>
<Docs >
<summary > To be added</summary>
<param name= "tool_item" > a <see cref= "T:Gtk.ToolItem" /> </param>
<param name= "index_" > a <see cref= "T:System.Int32" /> </param>
<remarks > To be added</remarks>
2005-06-16 19:27:40 +00:00
<since version= "Gtk# 2.6" />
2005-04-21 17:10:54 +00:00
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2005-06-17 18:43:30 +00:00
</Type>