2003-02-12 02:00:12 +00:00
<Type Name= "Scale" FullName= "Gtk.Scale" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "auto" Value= "public class Scale : Gtk.Range" />
2003-02-12 02:00:12 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2006-08-04 19:43:19 +00:00
<AssemblyVersion > 2.10.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-03-15 22:50:24 +00:00
<summary > A base class for the concrete slider widgets; <see cref= "T:Gtk.HScale" /> and <see cref= "T:Gtk.VScale" /> .</summary>
<remarks >
<para > A Scale is a slider control used to select a numeric value. Specific manipulation can be done with methods and properties on its base class, <see cref= "T:Gtk.Range" /> . To set the value of a scale, you would normally use the <see cref= "P:Gtk.Range.Value" /> property. To detect changes to the value, connect an event handler to the <see cref= "F:Gtk.Range.ValueChanged" /> event.</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
<Base >
<BaseTypeName > Gtk.Range</BaseTypeName>
</Base>
<Interfaces >
</Interfaces>
<Members >
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Scale (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>
<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= "ValuePos" >
<MemberSignature Language= "C#" Value= "public Gtk.PositionType ValuePos { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.PositionType</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-03-09 13:50:54 +00:00
<summary > Manage the position of the value, relative to the slider.</summary>
2005-05-23 20:41:51 +00:00
<value > Where the value is currently being drawn.</value>
2003-03-15 22:50:24 +00:00
<remarks >
2005-08-22 23:09:17 +00:00
<para > Note: This property is only meaningful if a value is being drawn. To ensure a value is drawn, use the <see cref= "P:Gtk.Scale.DrawValue" /> property.</para>
2003-03-15 22:50:24 +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 >
2005-12-09 23:12:49 +00:00
<AttributeName > GLib.Property(Name="value-pos")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-06-16 18:56:42 +00:00
</Attributes>
</Member>
2003-02-12 02:00:12 +00:00
<Member MemberName= "DrawValue" >
<MemberSignature Language= "C#" Value= "public bool DrawValue { 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-03-09 13:50:54 +00:00
<summary > Manage whether a label is displayed to show the current value.</summary>
2005-05-23 20:41:51 +00:00
<value > Whether the value is currently being displayed.</value>
2003-03-15 22:50:24 +00:00
<remarks >
<para > Use the <see cref= "P:Gtk.Scale.ValuePos" /> property to alter the position of displayed value.</para>
</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 >
2005-12-09 23:12:49 +00:00
<AttributeName > GLib.Property(Name="draw-value")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-06-16 18:56:42 +00:00
</Attributes>
</Member>
2003-02-12 02:00:12 +00:00
<Member MemberName= "Digits" >
<MemberSignature Language= "C#" Value= "public int Digits { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Int32</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-03-09 13:50:54 +00:00
<summary > Manage the number of decimal places for this slider.</summary>
2005-05-23 20:41:51 +00:00
<value > The number of decimal places currently being displayed.</value>
2003-03-15 22:50:24 +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="digits")</AttributeName>
</Attribute>
2005-06-16 18:56:42 +00:00
</Attributes>
</Member>
2003-02-12 02:00:12 +00:00
<Member MemberName= "FormatValue" >
2004-02-25 23:39:06 +00:00
<MemberSignature Language= "C#" Value= "public event Gtk.FormatValueHandler FormatValue;" />
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.FormatValueHandler</ReturnType>
2003-09-17 21:56:59 +00:00
</ReturnValue>
2003-02-12 02:00:12 +00:00
<Parameters />
<Docs >
2003-03-09 13:50:54 +00:00
<summary > Allows the format of the displayed value to be altered.</summary>
2003-03-15 22:50:24 +00:00
<remarks >
<para > Note: The signature of this event handler is currently incorrect.</para>
</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="format_value")</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.Scale" /> .</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "OnFormatValue" >
<MemberSignature Language= "C#" Value= "protected virtual string OnFormatValue (double value);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.String</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "value" Type= "System.Double" />
</Parameters>
<Docs >
2004-06-15 15:41:25 +00:00
<summary > Default handler for the <see cref= "M:Gtk.Scale.FormatValue" /> event.</summary>
2003-12-24 01:35:30 +00:00
<param name= "value" > a <see cref= "T:System.Double" /> </param>
<returns > a <see cref= "T:System.String" /> </returns>
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.Scale.FormatValue" /> event.</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 Scale (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-06-01 18:05:26 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "protected Scale ();" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
2004-08-29 08:58:39 +00:00
<summary > Protected constructor.</summary>
2004-11-05 21:25:40 +00:00
<remarks />
</Docs>
</Member>
<Member MemberName= "Layout" >
<MemberSignature Language= "C#" Value= "public Pango.Layout Layout { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Pango.Layout</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-12-30 18:55:02 +00:00
<summary > Gets the <see cref= "T:Pango.Layout" /> used to display the scale. </summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:Pango.Layout" /> </value>
2005-04-22 17:20:16 +00:00
<remarks >
</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= "GetLayoutOffsets" >
<MemberSignature Language= "C#" Value= "public void GetLayoutOffsets (out int x, out int y);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "x" Type= "System.Int32&" RefType= "out" />
<Parameter Name= "y" Type= "System.Int32&" RefType= "out" />
</Parameters>
<Docs >
2004-12-30 18:55:02 +00:00
<summary >
Obtains the coordinates where the scale will draw the <see cref= "T:Pango.Layout" />
representing the text in the scale.
</summary>
<param name= "x" > a <see cref= "T:System.Int32" /> , location to store X offset of layout</param>
<param name= "y" > a <see cref= "T:System.Int32" /> , location to store Y offset of layout </param>
<remarks >
Remember that when working with Pango you need to convert to
and from pixels using PANGO_PIXELS() or <see cref= "F:Pango.Scale.PangoScale" /> .
2005-04-22 17:20:16 +00:00
If <see cref= "P:Gtk.Scale.DrawValue" /> is <see langword= "false" /> , the return values are
2004-12-30 18:55:02 +00:00
undefined.
</remarks>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2004-06-01 18:05:26 +00:00
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2005-08-23 17:02:47 +00:00
</Type>