mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 22:05:35 +00:00
1f555ab568
* configure.in : require gtk+ 2.6. * generator/ReturnValue.cs : invalidate Callback returns for now. * gtk/Gtk.metadata : some renames for conflicting new API. * parser/gapi2xml.pl : whitespace tweak for class VM regexen. * sources/Makefile.am : add new patch, kill atk patch, revise dirs. * sources/atkhyperlink.patch : kill unnecessary patch. * sources/gtkclipboard.patch : add new clipboard patch. * sources/gtk-sharp-sources.xml : parse gtk+-2.6. * */*-api.raw : regen pango, atk, gdk, and gtk for new versions. svn path=/trunk/gtk-sharp/; revision=43412
401 lines
19 KiB
XML
401 lines
19 KiB
XML
<Type Name="FontDescription" FullName="Pango.FontDescription">
|
|
<TypeSignature Language="C#" Value="public class FontDescription : GLib.Opaque, IWrapper" Maintainer="auto" />
|
|
<AssemblyInfo>
|
|
<AssemblyName>pango-sharp</AssemblyName>
|
|
<AssemblyPublicKey>
|
|
</AssemblyPublicKey>
|
|
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
|
<AssemblyCulture>neutral</AssemblyCulture>
|
|
<Attributes />
|
|
</AssemblyInfo>
|
|
<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>
|
|
<Docs>
|
|
<summary>Represents the description of an ideal font.</summary>
|
|
<remarks>This class is used both to list what fonts are available on the system and also for specifying the characteristics of a font to load.</remarks>
|
|
</Docs>
|
|
<Base>
|
|
<BaseTypeName>GLib.Opaque</BaseTypeName>
|
|
</Base>
|
|
<Interfaces>
|
|
<Interface>
|
|
<InterfaceName>GLib.IWrapper</InterfaceName>
|
|
</Interface>
|
|
</Interfaces>
|
|
<Attributes />
|
|
<Members>
|
|
<Member MemberName="FromString">
|
|
<MemberSignature Language="C#" Value="public static Pango.FontDescription FromString (string str);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>Pango.FontDescription</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="str" Type="System.String" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Creates a new font description from a string representation.</summary>
|
|
<param name="str">The string representation of the font description.</param>
|
|
<returns>The object of type <see cref="T:Pango.FontDescription" /> created.</returns>
|
|
<remarks>The form of the string representation is "[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]", where:
|
|
<list type="bullet">
|
|
<item>
|
|
<term>FAMILY-LIST is a comma separated list of families optionally terminated by a comma.</term>
|
|
</item>
|
|
<item>
|
|
<term>STYLE-OPTIONS is a whitespace separated list of words where each WORD describes one of style, variant, weight, or stretch.</term>
|
|
</item>
|
|
<item>
|
|
<term>SIZE is a decimal number (size in points)</term>
|
|
</item>
|
|
</list><para>
|
|
Any one of the options may be absent. If FAMILY-LIST is absent, then the family_name field of the resulting font description will be initialized to NULL. If STYLE-OPTIONS is missing, then all style options will be set to the default values. If SIZE is missing, the size in the resulting font description will be set to 0.
|
|
</para></remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="Copy">
|
|
<MemberSignature Language="C#" Value="public Pango.FontDescription Copy ();" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>Pango.FontDescription</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Make a copy of <see cref="T:Pango.FontDescription" /></summary>
|
|
<returns>an object of type <see cref="T:Pango.FontDescription" /></returns>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="BetterMatch">
|
|
<MemberSignature Language="C#" Value="public bool BetterMatch (Pango.FontDescription old_match, Pango.FontDescription new_match);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Boolean</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="old_match" Type="Pango.FontDescription" />
|
|
<Parameter Name="new_match" Type="Pango.FontDescription" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Determines which <see cref="T:Pango.FontDescription" /> better matches the current instance.</summary>
|
|
<param name="old_match">a <see cref="T:Pango.FontDescription" /> object</param>
|
|
<param name="new_match">a <see cref="T:Pango.FontDescription" /> object</param>
|
|
<returns>
|
|
<see langword="true" /> if new_match is a better match.</returns>
|
|
<remarks>Determines if the style attributes of new_match are a closer match for the current instance than old_match, or if old_match is <see langword="null" />, determines if new_match is a match at all. Approximate matching is done for weight and style; other attributes must match exactly.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="Free">
|
|
<MemberSignature Language="C#" Value="public void Free ();" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Frees a font description.</summary>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="MergeStatic">
|
|
<MemberSignature Language="C#" Value="public void MergeStatic (Pango.FontDescription desc_to_merge, bool replace_existing);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="desc_to_merge" Type="Pango.FontDescription" />
|
|
<Parameter Name="replace_existing" Type="System.Boolean" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Merges the fields of a font description into the current instance without copying the field data (shallow copy).</summary>
|
|
<param name="desc_to_merge">an object of type <see cref="T:Pango.FontDescription" /></param>
|
|
<param name="replace_existing">an object of type <see cref="T:System.Boolean" /></param>
|
|
<remarks>Like <see cref="T:Pango.FontDescription.Merge()" />, but only a shallow copy is made of the family name and other allocated fields. desc can only be used until <paramref name="desc_to_merge" /> is modified or freed. This is meant to be used when the merged font description is only needed temporarily.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="ToFilename">
|
|
<MemberSignature Language="C#" Value="public string ToFilename ();" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.String</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Creates a filename representation of a font description.</summary>
|
|
<returns>an object of type <see cref="T:System.String" /></returns>
|
|
<remarks>The filename created is identical to the result from calling <see cref="M:Pango.FontDescription.ToString" />, but with underscores instead of characters that are untypical in filenames, and in lower case only.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="Merge">
|
|
<MemberSignature Language="C#" Value="public void Merge (Pango.FontDescription desc_to_merge, bool replace_existing);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="desc_to_merge" Type="Pango.FontDescription" />
|
|
<Parameter Name="replace_existing" Type="System.Boolean" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Merges the fields of a font description into the current instance.</summary>
|
|
<param name="desc_to_merge">The <see cref="T:Pango.FontDescription" /> to merge from.</param>
|
|
<param name="replace_existing">If <see langword="true" />, replace fields in current instance with the corresponding values from <paramref name="desc_to_merge" />, even if they are already exist.</param>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="CopyStatic">
|
|
<MemberSignature Language="C#" Value="public Pango.FontDescription CopyStatic ();" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>Pango.FontDescription</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Make a copy of <see cref="T:Pango.FontDescription" /></summary>
|
|
<returns>an object of type <see cref="T:Pango.FontDescription" /></returns>
|
|
<remarks>Like <see cref="M:Pango.FontDescription.Copy()" />, but only a shallow copy is made of the family name and other allocated fields. The result can only be used until it is modified or freed. This is meant to be used when the copy is only needed temporarily.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="Equal">
|
|
<MemberSignature Language="C#" Value="public bool Equal (Pango.FontDescription desc2);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Boolean</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="desc2" Type="Pango.FontDescription" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Compares two font descriptions for equality.</summary>
|
|
<param name="desc2">an object of type <see cref="T:Pango.FontDescription" /> to test for equality</param>
|
|
<returns>an object of type <see cref="T:System.Boolean" /></returns>
|
|
<remarks>
|
|
<see langword="true" /> if the two font descriptions are proveably identical. (Two font descriptions may result in identical fonts being loaded, but still compare <see langword="false" />.)</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="UnsetFields">
|
|
<MemberSignature Language="C#" Value="public void UnsetFields (Pango.FontMask to_unset);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="to_unset" Type="Pango.FontMask" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Unsets some of the fields in the <see cref="T:Pango.FontDescription" />.</summary>
|
|
<param name="to_unset">an object of type <see cref="T:Pango.FontMask" />
|
|
(bitmask of fields in the desc to unset).</param>
|
|
<remarks>This merely marks the fields cleared, it does not clear the settings for those fields. To clear a family name set with <see cref="P:Pango.FontDescription.FamilyStatic" /> so that it won't be returned by <see cref="P:Pango.FontDescription.Family" />, you must actually set <see cref="P:Pango.FontDescription.Family" /> to <see langword="null" />.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName=".ctor">
|
|
<MemberSignature Language="C#" Value="public FontDescription (IntPtr raw);" />
|
|
<MemberType>Constructor</MemberType>
|
|
<ReturnValue />
|
|
<Parameters>
|
|
<Parameter Name="raw" Type="System.IntPtr" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Internal constructor</summary>
|
|
<param name="raw">Pointer to the C object.</param>
|
|
<returns>An instance of FontDescription, wrapping the C object.</returns>
|
|
<remarks>
|
|
<para>This is an internal constructor, and should not be used by user code.</para>
|
|
</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName=".ctor">
|
|
<MemberSignature Language="C#" Value="public FontDescription ();" />
|
|
<MemberType>Constructor</MemberType>
|
|
<ReturnValue />
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Default constructor</summary>
|
|
<returns>an object of type <see cref="T:Pango.FontDescription" /></returns>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="Style">
|
|
<MemberSignature Language="C#" Value="public Pango.Style Style { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>Pango.Style</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>The style of the font.</summary>
|
|
<param name="value"> the style for the font description</param>
|
|
<returns> the style for the font description</returns>
|
|
<remarks>Most fonts will either have a italic style or an oblique style, but not both, and font matching in Pango will match italic specifications with oblique fonts and vice-versa if an exact match is not found.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="Stretch">
|
|
<MemberSignature Language="C#" Value="public Pango.Stretch Stretch { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>Pango.Stretch</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>The stretch of the font.</summary>
|
|
<param name="value"> the stretch for the font description</param>
|
|
<returns> the stretch field for the font description.</returns>
|
|
<remarks>The stretch property specifies how narrow or wide the font should be.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="SetFields">
|
|
<MemberSignature Language="C#" Value="public Pango.FontMask SetFields { get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>Pango.FontMask</ReturnType>
|
|
</ReturnValue>
|
|
<Docs>
|
|
<summary>Determines which fields in the font description have been set.</summary>
|
|
<returns>a <see cref="T:Pango.FontMask" /> corresponding to the fields that have been set.</returns>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="Size">
|
|
<MemberSignature Language="C#" Value="public int Size { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Int32</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>The size of the font in pango units.</summary>
|
|
<param name="value"> the size for the font description in pango units.</param>
|
|
<returns> the size field for the font description in pango units. Returns 0 if the stretch field has not previously been set. Use <see cref="M:Pango.FontDescription.SetFields()" /> to find out if the field was explicitly set or not.</returns>
|
|
<remarks>There are <see cref="F:Pango.Scale.PangoScale" /> pango units in one device unit - for fonts, font points are the device unit. Therefore, the size of the font in points is <see cref="P:Pango.FontDescription.Size" /> / <see cref="F:Pango.Scale.PangoScale" />.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="FamilyStatic">
|
|
<MemberSignature Language="C#" Value="public string FamilyStatic { set; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.String</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Sets the family name of the font without copying the string.</summary>
|
|
<param name="value"> a string representing the family name.</param>
|
|
<returns />
|
|
<remarks>The family name represents a family of related font styles, and will resolve to a particular <see cref="T:Pango.FontFamily" />. In some uses of <see cref="T:Pango.FontDescription" />, it is also possible to use a comma separated list of family names for this property.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="Variant">
|
|
<MemberSignature Language="C#" Value="public Pango.Variant Variant { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>Pango.Variant</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>The variant of the font.</summary>
|
|
<param name="value"> the variant type for the font description.</param>
|
|
<returns> the variant type for the font description.</returns>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="Weight">
|
|
<MemberSignature Language="C#" Value="public Pango.Weight Weight { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>Pango.Weight</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>The weight (boldness) of the font.</summary>
|
|
<param name="value"> the weight for the font description.</param>
|
|
<returns> the weight for the font description.</returns>
|
|
<remarks>The weight property specifies how bold or light the font should be. In addition to the values of the <see cref="T:Pango.Weight" /> enumeration, other intermediate numeric values are possible.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="Family">
|
|
<MemberSignature Language="C#" Value="public string Family { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.String</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>The family name of the font.</summary>
|
|
<param name="value"> a string representing the family name.</param>
|
|
<returns> The family name field. (Will be <see langword="null" /> if not previously set.)</returns>
|
|
<remarks>The family name represents a family of related font styles, and will resolve to a particular <see cref="T:Pango.FontFamily" />. In some uses of <see cref="T:Pango.FontDescription" /> , it is also possible to use a comma separated list of family names for this property.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="ToString">
|
|
<MemberSignature Language="C#" Value="public override string ToString ();" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.String</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Creates a string representation of a font description.</summary>
|
|
<returns>a <see cref="T:System.String" /></returns>
|
|
<remarks>See <see cref="M:Pango.FontDescription.FromString()" /> for a description of the format of the string representation. The family list in the string description will only have a terminating comma if the last word of the list is a valid style option.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="Hash">
|
|
<MemberSignature Language="C#" Value="public uint Hash { get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.UInt32</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Computes a hash of a <see cref="T:Pango.FontDescription" /> structure suitable to be used.</summary>
|
|
<returns> the hash value.</returns>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GType">
|
|
<MemberSignature Language="C#" Value="public static GLib.GType GType { get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>GLib.GType</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>GType Property.</summary>
|
|
<returns>a <see cref="T:GLib.GType" /></returns>
|
|
<remarks>Returns the native <see cref="T:GLib.GType" /> value for <see cref="T:Pango.FontDescription" />.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="SizeIsAbsolute">
|
|
<MemberSignature Language="C#" Value="public bool SizeIsAbsolute { get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Boolean</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>To be added</summary>
|
|
<returns>a <see cref="T:System.Boolean" /></returns>
|
|
<remarks>To be added</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="AbsoluteSize">
|
|
<MemberSignature Language="C#" Value="public double AbsoluteSize { set; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Double</ReturnType>
|
|
</ReturnValue>
|
|
<Docs>
|
|
<summary>To be added</summary>
|
|
<returns>a <see cref="T:System.Double" /></returns>
|
|
<remarks>To be added</remarks>
|
|
</Docs>
|
|
</Member>
|
|
</Members>
|
|
</Type> |