2003-02-21 18:59:11 +00:00
<Type Name= "Box" FullName= "Gtk.Box" >
<TypeSignature Language= "C#" Value= "public class Box : Gtk.Container, Implementor, IWrapper, IWrapper, IDisposable" Maintainer= "Lee Mallabone" />
2003-02-12 02:00:12 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
<AssemblyVersion > 0.0.0.0</AssemblyVersion>
<Attributes />
</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 21:50:19 +00:00
<summary > A Box is a Gtk container that holds an arbitrary number of widgets. This means its sole purpose is to provide layout, size and spacing for other widgets.</summary>
2003-02-23 07:26:30 +00:00
<remarks >
<para > A Box is a rectangular area organized into either a single row or a single column of child widgets, depending upon whether the box is horizontally or vertically oriented, respectively.</para>
<para > A Box is abstract - specific layout containers are provided in its sub classes, including a horizontal box, (<see cref= "T:Gtk.HBox" /> ), a vertical box (<see cref= "T:Gtk.VBox" /> ), and button boxes, (<see cref= "T:Gtk.ButtonBox" /> ).</para>
<para >
Widgets that are 'packed' into a box are considered to be the children of the box, and the box controls their layout. Properties such as <see cref= "P:Homogeneous" /> control the layout of all the children in the box, whereas specific packing settings can be applied to each child individually, such as <see cref= "M:SetChildPacking(Gtk.Widget,bool,bool,uint,Gtk.PackType)" /> .
2003-02-18 21:50:19 +00:00
</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
<Base >
<BaseTypeName > Gtk.Container</BaseTypeName>
</Base>
<Interfaces >
<Interface >
<InterfaceName > Atk.Implementor</InterfaceName>
</Interface>
<Interface >
<InterfaceName > GLib.IWrapper</InterfaceName>
</Interface>
<Interface >
<InterfaceName > GLib.IWrapper</InterfaceName>
</Interface>
<Interface >
<InterfaceName > System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes />
<Members >
<Member MemberName= "SetChildPacking" >
<MemberSignature Language= "C#" Value= "public void SetChildPacking (Gtk.Widget child, bool expand, bool fill, uint padding, Gtk.PackType pack_type);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "child" Type= "Gtk.Widget" />
<Parameter Name= "expand" Type= "System.Boolean" />
<Parameter Name= "fill" Type= "System.Boolean" />
<Parameter Name= "padding" Type= "System.UInt32" />
<Parameter Name= "pack_type" Type= "Gtk.PackType" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-18 21:50:19 +00:00
<summary > Change the packing properties of a child that is currently in this box.</summary>
<param name= "child" > The child widget whose layout should be adjusted</param>
2003-02-23 07:26:30 +00:00
<param name= "expand" > If <lang keyword= "true" /> , the child widget will expand to use as much space as it is given.</param>
<param name= "fill" > If <lang keyword= "true" /> , the child widget will request as much space as is available.</param>
2003-02-18 21:50:19 +00:00
<param name= "padding" > The size (in pixels) of a border to place around the specified child widget.</param>
<param name= "pack_type" > Whether this child widget should be packed from the beginning of the box, (eg. the left, or the top), or from the end, (eg. the right or the bottom)</param>
2003-02-23 07:26:30 +00:00
<remarks >
<para > It is more common to set any specific packing requirements on child widgets when they are initially added to the box. This can be done using <see cref= "M:PackStart(Gtk.Widget,bool,bool,uint)" /> and <see cref= "M:PackEnd(Gtk.Widget,bool,bool,uint)" /> .</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "QueryChildPacking" >
<MemberSignature Language= "C#" Value= "public void QueryChildPacking (Gtk.Widget child, bool expand, bool fill, uint padding, Gtk.PackType pack_type);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "child" Type= "Gtk.Widget" />
<Parameter Name= "expand" Type= "System.Boolean" />
<Parameter Name= "fill" Type= "System.Boolean" />
<Parameter Name= "padding" Type= "System.UInt32" />
<Parameter Name= "pack_type" Type= "Gtk.PackType" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
<summary > To be added</summary>
<param name= "child" > To be added: an object of type 'Gtk.Widget'</param>
<param name= "expand" > To be added: an object of type 'bool'</param>
<param name= "fill" > To be added: an object of type 'bool'</param>
<param name= "padding" > To be added: an object of type 'uint'</param>
<param name= "pack_type" > To be added: an object of type 'Gtk.PackType'</param>
<remarks > To be added</remarks>
</Docs>
</Member>
<Member MemberName= "PackEnd" >
<MemberSignature Language= "C#" Value= "public void PackEnd (Gtk.Widget widget);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "widget" Type= "Gtk.Widget" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-18 21:50:19 +00:00
<summary > Add a widget to the 'end' of a box with default packing settings.</summary>
<param name= "widget" > The child widget to add to the box.</param>
2003-02-23 07:26:30 +00:00
<remarks >
<para > The 'end' of a box is the right hand side in a <see cref= "T:Gtk.HBox" /> and the bottom in a <see cref= "T:Gtk.VBox" /> .</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "PackStart" >
<MemberSignature Language= "C#" Value= "public void PackStart (Gtk.Widget widget);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "widget" Type= "Gtk.Widget" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-18 21:50:19 +00:00
<summary > Add a widget to the 'start' of a box with default packing settings.</summary>
<param name= "widget" > The child widget to add to the box.</param>
2003-02-23 07:26:30 +00:00
<remarks >
<para > The 'start' of a box is the left hand side in a <see cref= "T:Gtk.HBox" /> and the top in a <see cref= "T:Gtk.VBox" /> .</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "PackStart" >
<MemberSignature Language= "C#" Value= "public void PackStart (Gtk.Widget child, bool expand, bool fill, uint padding);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "child" Type= "Gtk.Widget" />
<Parameter Name= "expand" Type= "System.Boolean" />
<Parameter Name= "fill" Type= "System.Boolean" />
<Parameter Name= "padding" Type= "System.UInt32" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-18 21:50:19 +00:00
<summary > Add a widget to the 'start' of a box with the specified packing properties.</summary>
<param name= "child" > A widget to pack into the box.</param>
2003-02-23 07:26:30 +00:00
<param name= "expand" > If <lang keyword= "true" /> , the child widget will expand to use as much space as it is given.</param>
<param name= "fill" > If <lang keyword= "true" /> , the child widget will request as much space as is available.</param>
2003-02-18 21:50:19 +00:00
<param name= "padding" > The size (in pixels) of a border to place around the specified child widget.</param>
2003-02-23 07:26:30 +00:00
<remarks >
<para > To add a widget to the start of a box with default packing, use <see cref= "M:PackStart()" /> </para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "PackEnd" >
<MemberSignature Language= "C#" Value= "public void PackEnd (Gtk.Widget child, bool expand, bool fill, uint padding);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "child" Type= "Gtk.Widget" />
<Parameter Name= "expand" Type= "System.Boolean" />
<Parameter Name= "fill" Type= "System.Boolean" />
<Parameter Name= "padding" Type= "System.UInt32" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-18 21:50:19 +00:00
<summary > Add a widget to the 'end' of a box with the specified packing properties.</summary>
<param name= "child" > A widget to pack into the box.</param>
2003-02-23 07:26:30 +00:00
<param name= "expand" > If <lang keyword= "true" /> , the child widget will expand to use as much space as it is given.</param>
<param name= "fill" > If <lang keyword= "true" /> , the child widget will request as much space as is available.</param>
2003-02-18 21:50:19 +00:00
<param name= "padding" > The size (in pixels) of a border to place around the specified child widget.</param>
2003-02-23 07:26:30 +00:00
<remarks >
<para > To add a widget to the end of a box with default packing, use <see cref= "M:PackEnd()" /> </para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "ReorderChild" >
<MemberSignature Language= "C#" Value= "public void ReorderChild (Gtk.Widget child, int position);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "child" Type= "Gtk.Widget" />
<Parameter Name= "position" Type= "System.Int32" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-18 21:50:19 +00:00
<summary > Alters the position of a child widget that has already been packed into a Box.</summary>
<param name= "child" > A widget that has already been packed into this box.</param>
2003-02-23 07:26:30 +00:00
<param name= "position" >
<para > The new position for this widget, indexed from zero. If negative, the <paramref name= "child" /> will be placed at the end of the box.</para>
</param>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Finalize" >
<MemberSignature Language= "C#" Value= "protected virtual void Finalize ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-02-23 07:26:30 +00:00
<summary > Disposes the resources associated with the object.</summary>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Box (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-23 07:26:30 +00:00
<summary > Internal constructor</summary>
<param name= "raw" > Pointer to the C object.</param>
<returns > An instance of Box, wrapping the C object.</returns>
<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= "protected Box ();" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
2003-02-18 21:50:19 +00:00
<summary > Internal constructor</summary>
2003-02-23 07:26:30 +00:00
<returns />
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "GType" >
<MemberSignature Language= "C#" Value= "public static uint GType { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.UInt32</ReturnType>
</ReturnValue>
<Docs >
2003-02-23 07:26:30 +00:00
<summary > The GLib Type for Gtk.Box</summary>
2003-03-07 01:30:00 +00:00
<returns > The GLib Type for the Gtk.Box class.</returns>
2003-02-23 07:26:30 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Spacing" >
<MemberSignature Language= "C#" Value= "public int Spacing { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Int32</ReturnType>
</ReturnValue>
2003-09-17 21:56:59 +00:00
<Parameters > </Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-18 21:50:19 +00:00
<summary > Adjust the spacing between child widgets.</summary>
<param name= "value" > The number of pixels of space to put between child widgets.</param>
<returns > The current pixel spacing between child widgets</returns>
2003-02-23 07:26:30 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Homogeneous" >
<MemberSignature Language= "C#" Value= "public bool Homogeneous { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
2003-09-17 21:56:59 +00:00
<Parameters > </Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-18 21:50:19 +00:00
<summary > Set the size of all child widgets to be the same</summary>
2003-02-23 07:26:30 +00:00
<param name= "value" > If <see langword= "true" /> , all child widgets are forced to have the same size, otherwise they appear at their preferred size.</param>
<returns >
<see langword= "true" /> if child widgets size themselves equally, false otherwise.</returns>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2003-03-07 01:30:00 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "protected Box (GLib.Type gtype);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "gtype" Type= "GLib.Type" />
</Parameters>
2003-03-07 01:30:00 +00:00
<Docs >
<summary > Internal constructor</summary>
<param name= "gtype" > GLib type for the type</param>
<returns > Creates a new instance of Box, using the GLib-provided type</returns>
<remarks >
<para > This is a constructor used by derivative types of <see cref= "T:Gtk.Box" /> that would have their own GLib type assigned to it. This is not typically used by C# code.</para>
</remarks>
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2003-09-17 21:56:59 +00:00
</Type>