2003-02-12 02:00:12 +00:00
<Type Name= "AspectFrame" FullName= "Gtk.AspectFrame" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "Lee Mallabone" Value= "public class AspectFrame : Gtk.Frame" />
2011-11-09 16:01:51 +00:00
<TypeSignature Language= "ILAsm" Value= ".class public auto ansi beforefieldinit AspectFrame extends Gtk.Frame" />
2003-02-12 02:00:12 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
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>
2011-11-09 16:01:51 +00:00
<Base >
<BaseTypeName > Gtk.Frame</BaseTypeName>
</Base>
<Interfaces >
</Interfaces>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-25 14:22:39 +00:00
<summary > A frame that constrains its child to a particular aspect ratio.</summary>
2003-03-07 01:30:00 +00:00
<remarks >
<para > The AspectFrame is useful when you want pack a widget so that it can resize but always retains the same aspect ratio. For instance, one might be drawing a small preview of a larger image. AspectFrame derives from <see cref= "T:Gtk.Frame" /> , so it can draw a label and a frame around the child. The frame will be "shrink-wrapped" to the size of the child.</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
<Members >
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public AspectFrame (IntPtr raw);" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor(native int raw) cil managed" />
2003-02-12 02:00:12 +00:00
<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
<param name= "raw" > Pointer to the C object.</param>
2011-11-09 16:01:51 +00:00
<summary > Internal constructor</summary>
2003-02-23 07:26:30 +00:00
<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 AspectFrame (string label, float xalign, float yalign, float ratio, bool obey_child);" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor(string label, float32 xalign, float32 yalign, float32 ratio, bool obey_child) cil managed" />
2003-02-12 02:00:12 +00:00
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "label" Type= "System.String" />
<Parameter Name= "xalign" Type= "System.Single" />
<Parameter Name= "yalign" Type= "System.Single" />
<Parameter Name= "ratio" Type= "System.Single" />
<Parameter Name= "obey_child" Type= "System.Boolean" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-03-07 01:30:00 +00:00
<param name= "label" > A title for the frame, can be <see langword= "null" /> .</param>
2003-02-25 14:22:39 +00:00
<param name= "xalign" > Horizontal alignment of the child within the allocation of the AspectFrame.</param>
<param name= "yalign" > Vertical alignment of the child within the allocation of the AspectFrame.</param>
<param name= "ratio" > The desired aspect ratio.</param>
2003-03-07 01:30:00 +00:00
<param name= "obey_child" > If <see langword= "true" /> , ratio is ignored, and the aspect ratio is taken from the requistion of the child.</param>
2011-11-09 16:01:51 +00:00
<summary > The main way to construct a new AspectFrame.</summary>
2003-03-07 01:30:00 +00:00
<remarks >
<para > Alignment values range from 0.0 (left/top aligned) to 1.0 (right/bottom aligned).</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "GType" >
<MemberSignature Language= "C#" Value= "public static GLib.GType GType { get; }" />
<MemberSignature Language= "ILAsm" Value= ".property valuetype GLib.GType GType" />
2003-02-12 02:00:12 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > GLib.GType</ReturnType>
2003-02-12 02:00:12 +00:00
</ReturnValue>
2011-11-09 16:01:51 +00:00
<Parameters />
2003-02-12 02:00:12 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<summary > GType Property.</summary>
<value > a <see cref= "T:GLib.GType" /> </value>
<remarks > Returns the native <see cref= "T:GLib.GType" /> value for <see cref= "T:Gtk.AspectFrame" /> .</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
2011-11-09 16:01:51 +00:00
</Member>
<Member MemberName= "ObeyChild" >
<MemberSignature Language= "C#" Value= "public bool ObeyChild { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance bool ObeyChild" />
<MemberType > Property</MemberType>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2011-11-09 16:01:51 +00:00
<AttributeName > GLib.Property("obey-child")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
2003-02-12 02:00:12 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Boolean</ReturnType>
2003-02-12 02:00:12 +00:00
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Allow the frame to use its child widget's aspect ratio.</summary>
<value > The current size ratio of the child widget</value>
2003-03-07 01:30:00 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
2011-11-09 16:01:51 +00:00
</Member>
<Member MemberName= "Ratio" >
<MemberSignature Language= "C#" Value= "public float Ratio { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance float32 Ratio" />
<MemberType > Property</MemberType>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2011-11-09 16:01:51 +00:00
<AttributeName > GLib.Property("ratio")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
2003-02-12 02:00:12 +00:00
<ReturnValue >
<ReturnType > System.Single</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-25 14:22:39 +00:00
<summary > The aspect ratio of the child widget's size.</summary>
2005-05-23 20:41:51 +00:00
<value > The aspect ratio between 0.0 and 1.0 representing the child's size constraints.</value>
2003-03-07 01:30:00 +00:00
<remarks >
<para > Setting this ratio is ignored if <see cref= "P:Gtk.AspectFrame.ObeyChild" /> is set to <see langword= "true" /> .</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
2005-08-23 17:02:47 +00:00
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "Set" >
<MemberSignature Language= "C#" Value= "public void Set (float xalign, float yalign, float ratio, bool obey_child);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void Set(float32 xalign, float32 yalign, float32 ratio, bool obey_child) cil managed" />
<MemberType > Method</MemberType>
2003-02-12 02:00:12 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Void</ReturnType>
2003-02-12 02:00:12 +00:00
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
2011-11-09 16:01:51 +00:00
<Parameter Name= "xalign" Type= "System.Single" />
<Parameter Name= "yalign" Type= "System.Single" />
<Parameter Name= "ratio" Type= "System.Single" />
<Parameter Name= "obey_child" Type= "System.Boolean" />
2003-12-24 01:35:30 +00:00
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "xalign" > Horizontal alignment of the child within the allocation of the AspectFrame.</param>
<param name= "yalign" > Vertical alignment of the child within the allocation of the AspectFrame.</param>
<param name= "ratio" > The desired aspect ratio.</param>
<param name= "obey_child" > If <see langword= "true" /> , ratio is ignored, and the aspect ratio is taken from the requistion of the child.</param>
<summary > Set the size and alignment properties of this AspectFrame.</summary>
<remarks >
<para > Alignment values range from 0.0 (left/top aligned) to 1.0 (right/bottom aligned).</para>
</remarks>
2003-03-07 01:30:00 +00:00
</Docs>
2011-11-09 16:01:51 +00:00
</Member>
<Member MemberName= "Xalign" >
<MemberSignature Language= "C#" Value= "public float Xalign { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance float32 Xalign" />
<MemberType > Property</MemberType>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2011-11-09 16:01:51 +00:00
<AttributeName > GLib.Property("xalign")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
2003-12-24 01:35:30 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Single</ReturnType>
2003-12-24 01:35:30 +00:00
</ReturnValue>
2003-03-07 01:30:00 +00:00
<Parameters >
2003-09-17 21:56:59 +00:00
</Parameters>
2003-03-07 01:30:00 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Horiontal alignment of the child widget in the AspectFrame.</summary>
<value > A value between 0.0 and 1.0.</value>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
2011-11-09 16:01:51 +00:00
</Member>
<Member MemberName= "Yalign" >
<MemberSignature Language= "C#" Value= "public float Yalign { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance float32 Yalign" />
<MemberType > Property</MemberType>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2011-11-09 16:01:51 +00:00
<AttributeName > GLib.Property("yalign")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
2011-11-09 16:01:51 +00:00
<ReturnValue >
<ReturnType > System.Single</ReturnType>
</ReturnValue>
<Parameters >
</Parameters>
<Docs >
<summary > Vertical alignment of the child widget in the AspectFrame.</summary>
<value > A value between 0.0 and 1.0.</value>
<remarks />
</Docs>
2005-08-23 17:02:47 +00:00
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2005-05-23 20:41:51 +00:00
</Type>