2004-08-17 Mike Kestner <mkestner@ximian.com>
* pango/Pango.metadata : metadata for the pango audit. * pango/*.custom : customizations to fix audited API. * doc/en/* : docs for some api changes and additions. * glib/Marshaller.cs : some gunichar marshal-fu. * glib/glue/unichar.c : a new glue method. svn path=/trunk/gtk-sharp/; revision=32462
This commit is contained in:
parent
a95c723a5d
commit
fdcc41a70b
131 changed files with 853 additions and 356 deletions
|
@ -1,3 +1,11 @@
|
|||
2004-08-17 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* pango/Pango.metadata : metadata for the pango audit.
|
||||
* pango/*.custom : customizations to fix audited API.
|
||||
* doc/en/* : docs for some api changes and additions.
|
||||
* glib/Marshaller.cs : some gunichar marshal-fu.
|
||||
* glib/glue/unichar.c : a new glue method.
|
||||
|
||||
2004-08-13 John Luke <john.luke@gmail.com>
|
||||
|
||||
* gtk/Gtk.metadata: mark Gtk.StockManager.Lookup param as ref
|
||||
|
|
|
@ -14,12 +14,10 @@
|
|||
<remarks>
|
||||
<para>
|
||||
<see cref="T:Atk.EditableText" /> should be implemented by UI components which
|
||||
contain text which the user can edit, via the <see
|
||||
cref="T:Atk.Object" /> corresponding to that component (see <see cref="T:Atk.Object" />).
|
||||
contain text which the user can edit, via the <see cref="T:Atk.Object" /> corresponding to that component (see <see cref="T:Atk.Object" />).
|
||||
</para>
|
||||
<para>
|
||||
<see cref="T:Atk.EditableText" /> is a subclass of <see
|
||||
cref="T:Atk.Text" />, and as such, an
|
||||
<see cref="T:Atk.EditableText" /> is a subclass of <see cref="T:Atk.Text" />, and as such, an
|
||||
object which implements AtkEditableText is by definition an
|
||||
<see cref="T:Atk.Text" /> implementor as well.
|
||||
</para>
|
||||
|
@ -49,8 +47,7 @@
|
|||
<param name="end_pos">end position</param>
|
||||
<remarks>
|
||||
<para>
|
||||
This only deletes text up to, but not including <paramref
|
||||
name="end_pos" />. </para>
|
||||
This only deletes text up to, but not including <paramref name="end_pos" />. </para>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
|
@ -85,8 +82,7 @@
|
|||
<param name="end_pos">end position</param>
|
||||
<remarks>
|
||||
<para>
|
||||
This method only cuts the text up to <paremref
|
||||
name="end_pos" />, it does not include the text at that position.
|
||||
This method only cuts the text up to <paremref name="end_pos" />, it does not include the text at that position.
|
||||
</para>
|
||||
</remarks>
|
||||
</Docs>
|
||||
|
@ -107,8 +103,7 @@
|
|||
<param name="end_pos">end position</param>
|
||||
<remarks>
|
||||
<para>
|
||||
This method only copies the text up to <paremref
|
||||
name="end_pos" />, it does not include the text at that position.
|
||||
This method only copies the text up to <paremref name="end_pos" />, it does not include the text at that position.
|
||||
</para>
|
||||
</remarks>
|
||||
</Docs>
|
||||
|
@ -131,8 +126,7 @@
|
|||
<param name="end_offset">end of range in which to set attributes</param>
|
||||
<returns>
|
||||
<see langword="true" /> if attributes successfully set for
|
||||
the specified range, otherwise <see langword="false"/>
|
||||
</returns>
|
||||
the specified range, otherwise <see langword="false" /></returns>
|
||||
<remarks>
|
||||
<para>
|
||||
Sets the attributes for a specified range. See the
|
||||
|
@ -173,8 +167,7 @@
|
|||
<summary>Insert text at a given position.</summary>
|
||||
<param name="str1ng">the text to insert</param>
|
||||
<returns>the position after the text has been inserted</returns>.
|
||||
<remarks />
|
||||
</Docs>
|
||||
<remarks /></Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -18,8 +18,7 @@
|
|||
</summary>
|
||||
<remarks>
|
||||
<para>
|
||||
<see cref="T:Atk.Image" /> should be implemented by <see
|
||||
cref="T:Atk.Object" /> subtypes on behalf
|
||||
<see cref="T:Atk.Image" /> should be implemented by <see cref="T:Atk.Object" /> subtypes on behalf
|
||||
of components which display image/pixmap information onscreen,
|
||||
and which provide information (other than just widget borders,
|
||||
etc.) via that image content. For instance, icons, buttons
|
||||
|
@ -56,7 +55,8 @@
|
|||
<Docs>
|
||||
<summary>Sets the textual description for this image.</summary>
|
||||
<param name="description">a description to set for image</param>
|
||||
<returns><see langword="true" />, or <see langword="false" /> if operation could not be completed.</returns>
|
||||
<returns>
|
||||
<see langword="true" />, or <see langword="false" /> if operation could not be completed.</returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
|
@ -93,8 +93,7 @@
|
|||
</param>
|
||||
<remarks>
|
||||
<para>
|
||||
The values of <paramref name="x" /> and <paramref name="y"
|
||||
/>are returned as -1 if the values cannot be obtained.
|
||||
The values of <paramref name="x" /> and <paramref name="y" />are returned as -1 if the values cannot be obtained.
|
||||
</para>
|
||||
</remarks>
|
||||
</Docs>
|
||||
|
|
|
@ -133,5 +133,37 @@
|
|||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="GUnicharToChar">
|
||||
<MemberSignature Language="C#" Value="public static char GUnicharToChar (uint ucs4_char);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Char</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="ucs4_char" Type="System.UInt32" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Marshals a UCS4 character represented as an uint to a UTF16 char.</summary>
|
||||
<param name="ucs4_char">a <see cref="T:System.UInt32" /></param>
|
||||
<returns>a <see cref="T:System.Char" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="CharToGUnichar">
|
||||
<MemberSignature Language="C#" Value="public static uint CharToGUnichar (char c);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.UInt32</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="c" Type="System.Char" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Marshals a UTF16 char to a UCS4 character represented as an uint.</summary>
|
||||
<param name="c">a <see cref="T:System.Char" /></param>
|
||||
<returns>a <see cref="T:System.UInt32" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -83,7 +83,7 @@
|
|||
</Parameters>
|
||||
<Docs>
|
||||
<summary>The main keyboard key to use for this AccelKey.</summary>
|
||||
<remarks>Useful values are <see cref="T:System.Int32" /> enumerated in <see cref='T:Gdk.Key' />.</remarks>
|
||||
<remarks>Useful values are <see cref="T:System.Int32" /> enumerated in <see cref="T:Gdk.Key" />.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName=".ctor">
|
||||
|
@ -97,9 +97,9 @@
|
|||
</Parameters>
|
||||
<Docs>
|
||||
<summary>To be added</summary>
|
||||
<param name="key">a <see cref="T:System.Int32" /> enumerated in <see cref='T:Gdk.Key' /></param>
|
||||
<param name="mods">a <see cref="T:System.Int32" /> enumerated in <see cref='T:Gdk.ModifierType' />, the modifiers (shift, ctrl, etc) that apply for this AccelKey</param>
|
||||
<param name="flags">a <see cref="T:System.Int32" /> enumerated in <see cref='T:Gdk.AccelFlags' /> for whether this AccelKey should be displayed in the menu</param>
|
||||
<param name="key">a <see cref="T:System.Int32" /> enumerated in <see cref="T:Gdk.Key" /></param>
|
||||
<param name="mods">a <see cref="T:System.Int32" /> enumerated in <see cref="T:Gdk.ModifierType" />, the modifiers (shift, ctrl, etc) that apply for this AccelKey</param>
|
||||
<param name="flags">a <see cref="T:System.Int32" /> enumerated in <see cref="T:Gdk.AccelFlags" /> for whether this AccelKey should be displayed in the menu</param>
|
||||
<returns>a <see cref="T:Gtk.AccelKey" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
|
|
|
@ -177,8 +177,8 @@
|
|||
</Parameters>
|
||||
<Docs>
|
||||
<summary>The color that was selected before the current one.</summary>
|
||||
<param name="value">An object of type <see cref='M:Gdk.Color' /></param>
|
||||
<returns>a <see cref='M:Gdk.Color' /></returns>
|
||||
<param name="value">An object of type <see cref="M:Gdk.Color" /></param>
|
||||
<returns>a <see cref="M:Gdk.Color" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
|
|
|
@ -68,7 +68,6 @@
|
|||
<Parameter Name="end_pos" Type="System.Int32" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
|
||||
<summary>Deletes a sequence of characters. The characters that are deleted are those characters at positions from <paramref name="start_pos" /> up to, but not including <paramref name="end_pos" />. If <paramref name="end_pos" /> is negative, then the the characters deleted will be those characters from <paramref name="start_pos" /> to the end of the text.</summary>
|
||||
<param name="start_pos">An integer; the start position</param>
|
||||
<param name="end_pos">An integer; the end position</param>
|
||||
|
|
|
@ -260,7 +260,8 @@ namespace HtmlTest
|
|||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Selects a paragraph.</summary>
|
||||
<remarks></remarks>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="ZoomReset">
|
||||
|
|
|
@ -56,9 +56,9 @@
|
|||
<Parameters>
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>The underlying <see cref='T:Gtk.IconSet' /> in this data.</summary>
|
||||
<param name="value">a <see cref='T:Gtk.IconSet' /></param>
|
||||
<returns>an object of type <see cref='T:Gtk.IconSet' /></returns>
|
||||
<summary>The underlying <see cref="T:Gtk.IconSet" /> in this data.</summary>
|
||||
<param name="value">a <see cref="T:Gtk.IconSet" /></param>
|
||||
<returns>an object of type <see cref="T:Gtk.IconSet" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
|
|
|
@ -57,7 +57,8 @@
|
|||
</Parameters>
|
||||
<Docs>
|
||||
<summary>The type of this property.</summary>
|
||||
<remarks></remarks>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="PropertyName">
|
||||
|
|
|
@ -216,7 +216,8 @@
|
|||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Attaches a style to a window; this process allocates the colors and creates the GCs (graphics components) for the style - it specializes it to a particular visual and colormap. The process may involve the creation of a new style if the style has already been attached to a window with a different style and colormap.</summary>
|
||||
<param name="window"><see cref="T:Gdk.Window" />, the window to attach the style to</param>
|
||||
<param name="window">
|
||||
<see cref="T:Gdk.Window" />, the window to attach the style to</param>
|
||||
<returns> Either <paramref name="style" />, or a newly-created <see cref="T:Gtk.Style" />. If the style is newly created, the style parameter will be dereferenced, and the new style will have a reference count belonging to the caller.</returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
|
|
|
@ -425,7 +425,6 @@ If type == <see cref="T:Gtk.ToolbarChildType.Widget" />, widget is used as the n
|
|||
<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>
|
||||
|
|
|
@ -35,8 +35,8 @@
|
|||
<summary>
|
||||
Determines whether a drop is possible before the given <paramref name="dest" />, at the same depth as <paramref name="dest" />. i.e., can we drop the data in <paramref name="selection_data" /> at that location. <paramref name="dest" /> does not have to exist; the return value will almost certainly be FALSE if the parent of <paramref name="dest" /> doesn't exist, though.
|
||||
</summary>
|
||||
<param name="dest">a <see cref='M:Gtk.TreePath' />, the potential drop target</param>
|
||||
<param name="selection_data">a <see cref='M:Gtk.SelectionData' />, the data to drop</param>
|
||||
<param name="dest">a <see cref="M:Gtk.TreePath" />, the potential drop target</param>
|
||||
<param name="selection_data">a <see cref="M:Gtk.SelectionData" />, the data to drop</param>
|
||||
<returns>A boolean for whether the drop is possible.</returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
|
@ -55,12 +55,10 @@
|
|||
<summary>
|
||||
Asks the TreeDragDest to insert a row before the given <paramref name="dest_path" />, deriving the contents of the row from the given <see cref="M:Gtk.SelectionData" />.
|
||||
</summary>
|
||||
<param name="dest_path">a <see cref='M:Gtk.TreePath' />, where to drop the data</param>
|
||||
<param name="selection_data"> a <see cref='M:Gtk.SelectionData' />, the data to drop</param>
|
||||
<param name="dest_path">a <see cref="M:Gtk.TreePath" />, where to drop the data</param>
|
||||
<param name="selection_data"> a <see cref="M:Gtk.SelectionData" />, the data to drop</param>
|
||||
<returns>A boolean for whether the row was dropped successfully.</returns>
|
||||
<remarks>If dest_path is outside the tree so that inserting before it is impossible, FALSE will be returned. Also, FALSE may be returned if the new row cannot be created for some model-specific reason. Should robustly handle a destination path no longer found in the model.</remarks>
|
||||
|
||||
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
<param name="path">a <see cref="M:Gtk.TreePath" /></param>
|
||||
<param name="selection_data">a <see cref="M:Gtk.SelectionData" /> object to fill with data</param>
|
||||
<returns>A boolean; true if data of the required type was provided.</returns>
|
||||
<remarks>FIXME: the original doc says, "selection_data->target gives the required type of the data.", but there doesn't seem to be a parallel in Gtk#. Check this.</remarks>
|
||||
<remarks>FIXME: the original doc says, "selection_data->target gives the required type of the data.", but there doesn't seem to be a parallel in Gtk#. Check this.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="RowDraggable">
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
<Docs>
|
||||
<summary>Represents a particular node of a <see cref="T:Gtk.TreeView" />.</summary>
|
||||
<remarks>A TreePath can be converted into either an array of unsigned integers or a string. The string form is a list of numbers separated by a colon. Each number refers to the offset at that level. Thus, the path "0" refers to the root node and the path "2:4" refers to the fifth child of the third node.</remarks>
|
||||
|
||||
</Docs>
|
||||
<Base>
|
||||
<BaseTypeName>GLib.Opaque</BaseTypeName>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<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>A delegate for specifying the shape of functions passed as parameters to <see cref="F:Gtk.TreeSelection.SetSelectFunction()" />.</summary>
|
||||
<remarks>This function will get called on select and unselect of widget text. It should return <see langword='true' /> if the state of the tree node may be toggled and <see langword="false" /> if the state of the node should not be changed.</remarks>
|
||||
<remarks>This function will get called on select and unselect of widget text. It should return <see langword="true" /> if the state of the tree node may be toggled and <see langword="false" /> if the state of the node should not be changed.</remarks>
|
||||
</Docs>
|
||||
<Base>
|
||||
<BaseTypeName>System.Delegate</BaseTypeName>
|
||||
|
|
|
@ -74,7 +74,8 @@
|
|||
<summary>Creates a new vertical scrollbar.</summary>
|
||||
<param name="adjustment">The <see cref="T:Gtk.Adjustment" /> to use, or <see langword="null" /> to create a new adjustment.</param>
|
||||
<returns>The new <see cref="T:Gtk.VScrollbar" /></returns>
|
||||
<remarks></remarks>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="GType">
|
||||
|
|
|
@ -3485,8 +3485,7 @@ xs <Member MemberName="OnMapEvent">
|
|||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.Widget.MapEvent" /> event.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="OnKeyPressEvent">
|
||||
</Member><Member MemberName="OnKeyPressEvent">
|
||||
<MemberSignature Language="C#" Value="protected virtual bool OnKeyPressEvent (Gdk.EventKey evnt);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3501,8 +3500,7 @@ xs <Member MemberName="OnMapEvent">
|
|||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.Widget.KeyPressEvent" /> event.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="OnConfigureEvent">
|
||||
</Member><Member MemberName="OnConfigureEvent">
|
||||
<MemberSignature Language="C#" Value="protected virtual bool OnConfigureEvent (Gdk.EventConfigure evnt);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3517,8 +3515,7 @@ xs <Member MemberName="OnMapEvent">
|
|||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.Widget.ConfigureEvent" /> event.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="OnWindowStateEvent">
|
||||
</Member><Member MemberName="OnWindowStateEvent">
|
||||
<MemberSignature Language="C#" Value="protected virtual bool OnWindowStateEvent (Gdk.EventWindowState evnt);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3533,8 +3530,7 @@ xs <Member MemberName="OnMapEvent">
|
|||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.Widget.WindowStateEvent" /> event.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="OnVisibilityNotifyEvent">
|
||||
</Member><Member MemberName="OnVisibilityNotifyEvent">
|
||||
<MemberSignature Language="C#" Value="protected virtual bool OnVisibilityNotifyEvent (Gdk.EventVisibility evnt);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3549,8 +3545,7 @@ xs <Member MemberName="OnMapEvent">
|
|||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.Widget.VisibilityNotifyEvent" /> event.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="OnScrollEvent">
|
||||
</Member><Member MemberName="OnScrollEvent">
|
||||
<MemberSignature Language="C#" Value="protected virtual bool OnScrollEvent (Gdk.EventScroll evnt);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3565,8 +3560,7 @@ xs <Member MemberName="OnMapEvent">
|
|||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.Widget.ScrollEvent" /> event.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="OnKeyReleaseEvent">
|
||||
</Member><Member MemberName="OnKeyReleaseEvent">
|
||||
<MemberSignature Language="C#" Value="protected virtual bool OnKeyReleaseEvent (Gdk.EventKey evnt);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3581,8 +3575,7 @@ xs <Member MemberName="OnMapEvent">
|
|||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.Widget.KeyReleaseEvent" /> event.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="OnAccelClosuresChanged">
|
||||
</Member><Member MemberName="OnAccelClosuresChanged">
|
||||
<MemberSignature Language="C#" Value="protected virtual void OnAccelClosuresChanged ();" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3593,8 +3586,7 @@ xs <Member MemberName="OnMapEvent">
|
|||
<summary>Default handler for the <see cref="M:Gtk.Widget.AccelClosuresChanged" /> event.</summary>
|
||||
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.Widget.AccelClosuresChanged" /> event.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="OnSelectionRequestEvent">
|
||||
</Member><Member MemberName="OnSelectionRequestEvent">
|
||||
<MemberSignature Language="C#" Value="protected virtual bool OnSelectionRequestEvent (Gdk.EventSelection evnt);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3609,8 +3601,7 @@ xs <Member MemberName="OnMapEvent">
|
|||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.Widget.SelectionRequestEvent" /> event.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="OnPropertyNotifyEvent">
|
||||
</Member><Member MemberName="OnPropertyNotifyEvent">
|
||||
<MemberSignature Language="C#" Value="protected virtual bool OnPropertyNotifyEvent (Gdk.EventProperty evnt);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3625,8 +3616,7 @@ xs <Member MemberName="OnMapEvent">
|
|||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.Widget.PropertyNotifyEvent" /> event.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="OnUnmapEvent">
|
||||
</Member><Member MemberName="OnUnmapEvent">
|
||||
<MemberSignature Language="C#" Value="protected virtual bool OnUnmapEvent (Gdk.Event evnt);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3641,8 +3631,7 @@ xs <Member MemberName="OnMapEvent">
|
|||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.Widget.UnmapEvent" /> event.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="AddAccelerator">
|
||||
</Member><Member MemberName="AddAccelerator">
|
||||
<MemberSignature Language="C#" Value="public void AddAccelerator (string accel_signal, Gtk.AccelGroup accel_group, uint accel_key, Gdk.ModifierType accel_mods, Gtk.AccelFlags accel_flags);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3671,8 +3660,7 @@ xs <Member MemberName="OnMapEvent">
|
|||
</para>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="AddAccelerator">
|
||||
</Member><Member MemberName="AddAccelerator">
|
||||
<MemberSignature Language="C#" Value="public void AddAccelerator (string accel_signal, Gtk.AccelGroup accel_group, Gtk.AccelKey accel_key);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3697,8 +3685,7 @@ xs <Member MemberName="OnMapEvent">
|
|||
</para>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Events">
|
||||
</Member><Member MemberName="Events">
|
||||
<MemberSignature Language="C#" Value="public Gdk.EventMask Events { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3723,8 +3710,7 @@ xs <Member MemberName="OnMapEvent">
|
|||
</para>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="OnSizeRequested">
|
||||
</Member><Member MemberName="OnSizeRequested">
|
||||
<MemberSignature Language="C#" Value="protected virtual void OnSizeRequested (ref Gtk.Requisition requisition);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3738,8 +3724,7 @@ xs <Member MemberName="OnMapEvent">
|
|||
<param name="requisition">a <see cref="T:Gtk.Requisition" /></param>
|
||||
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.Widget.SizeRequested" /> event.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="GdkWindow">
|
||||
</Member><Member MemberName="GdkWindow">
|
||||
<MemberSignature Language="C#" Value="public Gdk.Window GdkWindow { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3751,8 +3736,7 @@ xs <Member MemberName="OnMapEvent">
|
|||
<returns>a <see cref="T:Gdk.Window" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Flags">
|
||||
</Member><Member MemberName="Flags">
|
||||
<MemberSignature Language="C#" Value="public int Flags { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3771,8 +3755,7 @@ xs <Member MemberName="OnMapEvent">
|
|||
</para>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="SizeRequest">
|
||||
</Member><Member MemberName="SizeRequest">
|
||||
<MemberSignature Language="C#" Value="public Gtk.Requisition SizeRequest ();" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3794,8 +3777,7 @@ xs <Member MemberName="OnMapEvent">
|
|||
</para>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName=".ctor">
|
||||
</Member><Member MemberName=".ctor">
|
||||
<MemberSignature Language="C#" Value="protected Widget ();" />
|
||||
<MemberType>Constructor</MemberType>
|
||||
<ReturnValue />
|
||||
|
@ -3805,8 +3787,7 @@ xs <Member MemberName="OnMapEvent">
|
|||
<returns>a <see cref="T:Gtk.Widget" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="FocusLineWidth">
|
||||
</Member><Member MemberName="FocusLineWidth">
|
||||
<MemberSignature Language="C#" Value="public int FocusLineWidth { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3822,8 +3803,7 @@ xs <Member MemberName="OnMapEvent">
|
|||
</para>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Allocation">
|
||||
</Member><Member MemberName="Allocation">
|
||||
<MemberSignature Language="C#" Value="public Gdk.Rectangle Allocation { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3842,8 +3822,7 @@ Widgets are required to honor the size allocation they receive; a size request i
|
|||
</para></returns>
|
||||
<remarks>None.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsMapped">
|
||||
</Member><Member MemberName="IsMapped">
|
||||
<MemberSignature Language="C#" Value="public bool IsMapped { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3855,8 +3834,7 @@ Widgets are required to honor the size allocation they receive; a size request i
|
|||
<returns>true if the widget is Mapped, false otherwise.</returns>
|
||||
<remarks>None.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsRealized">
|
||||
</Member><Member MemberName="IsRealized">
|
||||
<MemberSignature Language="C#" Value="public bool IsRealized { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3868,8 +3846,7 @@ Widgets are required to honor the size allocation they receive; a size request i
|
|||
<returns>returns true if the widget is Realized</returns>
|
||||
<remarks>None.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsNoWindow">
|
||||
</Member><Member MemberName="IsNoWindow">
|
||||
<MemberSignature Language="C#" Value="public bool IsNoWindow { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3881,8 +3858,7 @@ Widgets are required to honor the size allocation they receive; a size request i
|
|||
<returns>True if the NoWindow flag is set.</returns>
|
||||
<remarks>None.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsTopLevel">
|
||||
</Member><Member MemberName="IsTopLevel">
|
||||
<MemberSignature Language="C#" Value="public bool IsTopLevel { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3894,8 +3870,7 @@ Widgets are required to honor the size allocation they receive; a size request i
|
|||
<returns>True if the Toplevel flag is set.</returns>
|
||||
<remarks>None</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="HasGrab">
|
||||
</Member><Member MemberName="HasGrab">
|
||||
<MemberSignature Language="C#" Value="public bool HasGrab { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3907,8 +3882,7 @@ Widgets are required to honor the size allocation they receive; a size request i
|
|||
<returns>True if the HasGrab flag is set.</returns>
|
||||
<remarks>None.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsCompositeChild">
|
||||
</Member><Member MemberName="IsCompositeChild">
|
||||
<MemberSignature Language="C#" Value="public bool IsCompositeChild { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3920,8 +3894,7 @@ Widgets are required to honor the size allocation they receive; a size request i
|
|||
<returns>True if the CompositeChild flag is set</returns>
|
||||
<remarks>None</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsAppPaintable">
|
||||
</Member><Member MemberName="IsAppPaintable">
|
||||
<MemberSignature Language="C#" Value="public bool IsAppPaintable { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3933,8 +3906,7 @@ Widgets are required to honor the size allocation they receive; a size request i
|
|||
<returns>True if the AppPaintable flag is set</returns>
|
||||
<remarks>None</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsDoubleBuffered">
|
||||
</Member><Member MemberName="IsDoubleBuffered">
|
||||
<MemberSignature Language="C#" Value="public bool IsDoubleBuffered { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3946,8 +3918,7 @@ Widgets are required to honor the size allocation they receive; a size request i
|
|||
<returns>True if the DoubleBuffered flag is set.</returns>
|
||||
<remarks>None</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsDrawable">
|
||||
</Member><Member MemberName="IsDrawable">
|
||||
<MemberSignature Language="C#" Value="public bool IsDrawable { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3959,8 +3930,7 @@ Widgets are required to honor the size allocation they receive; a size request i
|
|||
<returns>True if the widget is able to be drawn on</returns>
|
||||
<remarks>None</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="SetFlag">
|
||||
</Member><Member MemberName="SetFlag">
|
||||
<MemberSignature Language="C#" Value="public void SetFlag (Gtk.WidgetFlags flag);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3974,8 +3944,7 @@ Widgets are required to honor the size allocation they receive; a size request i
|
|||
<param name="flag">a <see cref="T:Gtk.WidgetFlags" /> to set</param>
|
||||
<remarks>None.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="ClearFlag">
|
||||
</Member><Member MemberName="ClearFlag">
|
||||
<MemberSignature Language="C#" Value="public void ClearFlag (Gtk.WidgetFlags flag);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
|
@ -3989,6 +3958,5 @@ Widgets are required to honor the size allocation they receive; a size request i
|
|||
<param name="flag">a <see cref="T:Gtk.WidgetFlags" /> to set</param>
|
||||
<remarks>None</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Member></Members>
|
||||
</Type>
|
|
@ -208,5 +208,18 @@
|
|||
<remarks>This is an internal constructor, and should not be used by user code.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Families">
|
||||
<MemberSignature Language="C#" Value="public Pango.FontFamily [] Families { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Pango.FontFamily[]</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Returns an array of Font Families.</summary>
|
||||
<returns>a <see cref="T:Pango.FontFamily[]" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -155,20 +155,18 @@
|
|||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="ToBytes">
|
||||
<MemberSignature Language="C#" Value="public void ToBytes (out byte bytes, out int n_bytes);" />
|
||||
<MemberSignature Language="C#" Value="public void ToBytes (out byte [] bytes);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="bytes" Type="System.Byte&" RefType="out" />
|
||||
<Parameter Name="n_bytes" Type="System.Int32&" RefType="out" />
|
||||
<Parameter Name="bytes" Type="System.Byte[]&" RefType="out" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Convert a <see cref="T:Pango.Coverage" /> structure into a flat binary format.</summary>
|
||||
<param name="bytes"> location to store result</param>
|
||||
<param name="n_bytes">a <see cref="T:System.Int32&" /></param>
|
||||
<remarks />
|
||||
<param name="bytes">a <see cref="T:System.Byte[]" /></param>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
|
|
|
@ -26,23 +26,6 @@
|
|||
</Interfaces>
|
||||
<Attributes />
|
||||
<Members>
|
||||
<Member MemberName="DescriptionsFree">
|
||||
<MemberSignature Language="C#" Value="public static void DescriptionsFree (Pango.FontDescription descs, int n_descs);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="descs" Type="Pango.FontDescription" />
|
||||
<Parameter Name="n_descs" Type="System.Int32" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Free a group of descriptions.</summary>
|
||||
<param name="descs">an object of type <see cref="T:Pango.FontDescription" /></param>
|
||||
<param name="n_descs">an object of type <see cref="T:System.Int32" /></param>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="GetMetrics">
|
||||
<MemberSignature Language="C#" Value="public Pango.FontMetrics GetMetrics (Pango.Language language);" />
|
||||
<MemberType>Method</MemberType>
|
||||
|
|
|
@ -120,5 +120,19 @@
|
|||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Faces">
|
||||
<MemberSignature Language="C#" Value="public Pango.FontFace [] Faces { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Pango.FontFace[]</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>To be added</summary>
|
||||
<summary>The font faces that make up <paramref name="family" />.</summary>
|
||||
<returns>a <see cref="T:Pango.FontFace[]" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -146,5 +146,18 @@
|
|||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Families">
|
||||
<MemberSignature Language="C#" Value="public Pango.FontFamily [] Families { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Pango.FontFamily[]</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>List all families for a fontmap.</summary>
|
||||
<returns>a <see cref="T:Pango.FontFamily[]" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -74,22 +74,6 @@
|
|||
<remarks>The <paramref name="log_attrs" /> array must have one <see cref="T:Pango.LogAttr" /> for each position in text; if text contains N characters, it has N+1 positions, including the last position at the end of the text. text should be an entire paragraph; logical attributes cannot be computed without context (for example you need to see spaces on either side of a word to know the word is a word).</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="SkipSpace">
|
||||
<MemberSignature Language="C#" Value="public static bool SkipSpace (string pos);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="pos" Type="System.String" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Skips 0 or more characters of whitespace</summary>
|
||||
<param name="pos">a <see cref="T:System.String" /></param>
|
||||
<returns>a <see cref="T:System.Boolean" />, which is true if there are non-whitespace characters before the end of the string.</returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName=".ctor">
|
||||
<MemberSignature Language="C#" Value="public Global ();" />
|
||||
<MemberType>Constructor</MemberType>
|
||||
|
@ -223,5 +207,63 @@ If no delimiters are found, both <paramref name="paragraph_delimiter_index" /> a
|
|||
<returns>a <see cref="T:System.Boolean" />, false if a parse error occurred.</returns>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="SkipSpace">
|
||||
<MemberSignature Language="C#" Value="public static bool SkipSpace (ref string pos);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="pos" Type="System.String&" RefType="ref" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Skips 0 or more characters of whitespace</summary>
|
||||
<param name="pos">a <see cref="T:System.String" /></param>
|
||||
<returns>a <see cref="T:System.Boolean" />, which is true if there are non-whitespace characters before the end of the string.</returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="ScanInt">
|
||||
<MemberSignature Language="C#" Value="public static bool ScanInt (ref string pos, out int out_param);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="pos" Type="System.String&" RefType="ref" />
|
||||
<Parameter Name="out_param" Type="System.Int32&" RefType="out" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Scans a string looking for an integer. An integer consists of up to 31 decimal digits.</summary>
|
||||
<param name="pos">a <see cref="T:System.String" /></param>
|
||||
<param name="out_param">a <see cref="T:System.Int32" /></param>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="ParseMarkup">
|
||||
<MemberSignature Language="C#" Value="public static bool ParseMarkup (string markup, char accel_marker, out Pango.AttrList attrs, out string text, out char accel_char);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="markup" Type="System.String" />
|
||||
<Parameter Name="accel_marker" Type="System.Char" />
|
||||
<Parameter Name="attrs" Type="Pango.AttrList&" RefType="out" />
|
||||
<Parameter Name="text" Type="System.String&" RefType="out" />
|
||||
<Parameter Name="accel_char" Type="System.Char&" RefType="out" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Parses a markup text string into text and a list of attributes.</summary>
|
||||
<param name="markup">a <see cref="T:System.String" /></param>
|
||||
<param name="accel_marker">a <see cref="T:System.Char" /></param>
|
||||
<param name="attrs">a <see cref="T:Pango.AttrList" /></param>
|
||||
<param name="text">a <see cref="T:System.String" /></param>
|
||||
<param name="accel_char">a <see cref="T:System.Char" /></param>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -207,22 +207,6 @@ The X coordinate of the resulting <see cref="T:Pango.Rectangle" /> represents th
|
|||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="GetLogAttrs">
|
||||
<MemberSignature Language="C#" Value="public int GetLogAttrs (Pango.LogAttr attrs);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Int32</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="attrs" Type="Pango.LogAttr" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Retrieves an array of logical attributes for each character in the layout.</summary>
|
||||
<param name="attrs">a <see cref="T:Pango.LogAttr" /></param>
|
||||
<returns>a <see cref="T:System.Int32" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="GetPixelExtents">
|
||||
<MemberSignature Language="C#" Value="public void GetPixelExtents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);" />
|
||||
<MemberType>Method</MemberType>
|
||||
|
@ -305,7 +289,6 @@ The X coordinate of the resulting <see cref="T:Pango.Rectangle" /> represents th
|
|||
<Parameter Name="index_" Type="System.Int32&" RefType="out" />
|
||||
<Parameter Name="trailing" Type="System.Int32&" RefType="out" />
|
||||
</Parameters>
|
||||
|
||||
<Docs>
|
||||
<summary>Convert from X and Y position within a layout to the byte index to the character at that logical position.</summary>
|
||||
<param name="x">a <see cref="T:System.Int32" />, the X offset (in thousandths of a device unit) from the left edge of the layout.</param>
|
||||
|
@ -468,7 +451,8 @@ The X coordinate of the resulting <see cref="T:Pango.Rectangle" /> represents th
|
|||
<param name="alignment">a <see cref="T:Pango.Alignment" /> object.</param>
|
||||
<returns>an object of type <see cref="T:Pango.Alignment" /></returns>
|
||||
<returns>an object of type <see cref="T:Pango.Alignment" /></returns>
|
||||
<remarks></remarks>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Justify">
|
||||
|
@ -612,5 +596,38 @@ The X coordinate of the resulting <see cref="T:Pango.Rectangle" /> represents th
|
|||
<returns>The count of lines for the layout.</returns>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="LogAttrs">
|
||||
<MemberSignature Language="C#" Value="public Pango.LogAttr [] LogAttrs { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Pango.LogAttr[]</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Retrieves an array of logical attributes for each character in the layout.</summary>
|
||||
<returns>a <see cref="T:Pango.LogAttr[]" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="SetMarkupWithAccel">
|
||||
<MemberSignature Language="C#" Value="public void SetMarkupWithAccel (string markup, char accel_marker, out char accel_char);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="markup" Type="System.String" />
|
||||
<Parameter Name="accel_marker" Type="System.Char" />
|
||||
<Parameter Name="accel_char" Type="System.Char&" RefType="out" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Sets the text of a Layout includ</summary>
|
||||
<summary>Sets the layout text and attribute list from marked-up text with an accelerator marker (see markup format).</summary>
|
||||
<param name="markup">marked-up text</param>
|
||||
<param name="accel_marker">the character following this char is underlined.</param>
|
||||
<param name="accel_char">returns a parsed accelerator char from the marked-up text.</param>
|
||||
<remarks>Replaces the current text and attribute list.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
||||
|
|
|
@ -44,27 +44,6 @@
|
|||
<remarks>If the result is zero, the line and all associated memory will be freed.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="GetXRanges">
|
||||
<MemberSignature Language="C#" Value="public void GetXRanges (int start_index, int end_index, out int ranges, out int n_ranges);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="start_index" Type="System.Int32" />
|
||||
<Parameter Name="end_index" Type="System.Int32" />
|
||||
<Parameter Name="ranges" Type="System.Int32&" RefType="out" />
|
||||
<Parameter Name="n_ranges" Type="System.Int32&" RefType="out" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Gets a list of visual ranges corresponding to a given logical range.</summary>
|
||||
<param name="start_index"> Start byte index of the logical range. If this value is less than the start index for the line, then the first range will extend all the way to the leading edge of the layout. Otherwise it will start at the leading edge of the first character.</param>
|
||||
<param name="end_index"> Ending byte index of the logical range. If this value is greater than the end index for the line, then the last range will extend all the way to the trailing edge of the layout. Otherwise, it will end at the trailing edge of the last character.</param>
|
||||
<param name="ranges"> location to store a pointer to an array of ranges. The array will be of length 2*n_ranges, with each range starting at (*ranges)[2*n] and of width (*ranges)[2*n + 1] - (*ranges)[2*n]. This array must be freed with g_free(). The coordinates are relative to the layout and are in <see cref="T:Pango.GlyphUnit" />.</param>
|
||||
<param name="n_ranges"> The number of ranges stored in <paramref name="ranges" />.</param>
|
||||
<remarks>This list is not necessarily minimal - there may be consecutive ranges which are adjacent. The ranges will be sorted from left to right. The ranges are with respect to the left edge of the entire layout, not with respect to the line.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="XToIndex">
|
||||
<MemberSignature Language="C#" Value="public bool XToIndex (int x_pos, out int index_, out int trailing);" />
|
||||
<MemberType>Method</MemberType>
|
||||
|
@ -191,5 +170,24 @@
|
|||
<remarks>This is an internal constructor, and should not be used by user code.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="GetXRanges">
|
||||
<MemberSignature Language="C#" Value="public void GetXRanges (int start_index, int end_index, out int [] ranges);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="start_index" Type="System.Int32" />
|
||||
<Parameter Name="end_index" Type="System.Int32" />
|
||||
<Parameter Name="ranges" Type="System.Int32[]&" RefType="out" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Gets a list of visual ranges corresponding to a given logical range.</summary>
|
||||
<param name="start_index"> Start byte index of the logical range. If this value is less than the start index for the line, then the first range will extend all the way to the leading edge of the layout. Otherwise it will start at the leading edge of the first character.</param>
|
||||
<param name="end_index"> Ending byte index of the logical range. If this value is greater than the end index for the line, then the last range will extend all the way to the trailing edge of the layout. Otherwise, it will end at the trailing edge of the last character.</param>
|
||||
<param name="ranges"> location to store an array of ranges. The array will be of length 2*n_ranges, with each range starting at (*ranges)[2*n] and of width (*ranges)[2*n + 1] - (*ranges)[2*n]. This array must be freed with g_free(). The coordinates are relative to the layout and are in <see cref="T:Pango.GlyphUnit" />.</param>
|
||||
<remarks>This list is not necessarily minimal - there may be consecutive ranges which are adjacent. The ranges will be sorted from left to right. The ranges are with respect to the left edge of the entire layout, not with respect to the line.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -138,23 +138,6 @@
|
|||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="GetTabs">
|
||||
<MemberSignature Language="C#" Value="public void GetTabs (out Pango.TabAlign alignments, out int locations);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="alignments" Type="Pango.TabAlign&" RefType="out" />
|
||||
<Parameter Name="locations" Type="System.Int32&" RefType="out" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Gets the an array of alignments and positions.</summary>
|
||||
<param name="alignments">a <see cref="T:Pango.TabAlign&" /></param>
|
||||
<param name="locations">a <see cref="T:System.Int32&" /></param>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="GetTab">
|
||||
<MemberSignature Language="C#" Value="public void GetTab (int tab_index, out Pango.TabAlign alignment, out int location);" />
|
||||
<MemberType>Method</MemberType>
|
||||
|
@ -186,5 +169,22 @@
|
|||
<remarks>Returns the native <see cref="T:GLib.GType" /> value for <see cref="T:Pango.TabArray" />.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="GetTabs">
|
||||
<MemberSignature Language="C#" Value="public void GetTabs (out Pango.TabAlign[] alignments, out int [] locations);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="alignments" Type="Pango.TabAlign[]&" RefType="out" />
|
||||
<Parameter Name="locations" Type="System.Int32[]&" RefType="out" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Gets the an array of alignments and positions.</summary>
|
||||
<param name="alignments">an array of <see cref="T:Pango.TabAlign" /> indicating the alignment of each tab stop.</param>
|
||||
<param name="locations">an array of <see cref="T:System.Int32[]" /> indicating the location of each tab stop in pango units.</param>
|
||||
<remarks/>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
||||
|
|
|
@ -171,6 +171,28 @@ namespace GLib {
|
|||
{
|
||||
return local_epoch.AddSeconds ((int)time_t);
|
||||
}
|
||||
|
||||
[DllImport("glibsharpglue")]
|
||||
static extern IntPtr gtksharp_unichar_to_utf8_string (uint c);
|
||||
|
||||
public static char GUnicharToChar (uint ucs4_char)
|
||||
{
|
||||
IntPtr raw_ret = gtksharp_unichar_to_utf8_string (ucs4_char);
|
||||
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
|
||||
if (ret.Length > 1)
|
||||
throw new ArgumentOutOfRangeException ("ucs4char is not representable by a char.");
|
||||
|
||||
return ret [0];
|
||||
}
|
||||
|
||||
[DllImport("glibsharpglue")]
|
||||
static extern uint glibsharp_utf16_to_gunichar (ushort c);
|
||||
|
||||
public static uint CharToGUnichar (char c)
|
||||
{
|
||||
return glibsharp_utf16_to_gunichar ((ushort) c);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
/* Forward declarations */
|
||||
gchar *gtksharp_unichar_to_utf8_string (gunichar chr);
|
||||
gunichar glibsharp_utf16_to_unichar (guint16 chr);
|
||||
/* */
|
||||
|
||||
gchar *
|
||||
|
@ -35,3 +36,15 @@ gtksharp_unichar_to_utf8_string (gunichar chr)
|
|||
return buf;
|
||||
}
|
||||
|
||||
gunichar
|
||||
glibsharp_utf16_to_unichar (guint16 chr)
|
||||
{
|
||||
gunichar *ucs4_str;
|
||||
gunichar result;
|
||||
|
||||
ucs4_str = g_utf16_to_ucs4 (&chr, 1, NULL, NULL, NULL);
|
||||
result = *ucs4_str;
|
||||
g_free (ucs4_str);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
56
pango/Context.custom
Normal file
56
pango/Context.custom
Normal file
|
@ -0,0 +1,56 @@
|
|||
// Pango.Context.custom - Pango Context class customizations
|
||||
//
|
||||
// Authors: Mike Kestner <mkestner@ximian.com>
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport("libglib-2.0-0.dll")]
|
||||
static extern void g_free (IntPtr raw);
|
||||
|
||||
[DllImport("libpango-1.0-0.dll")]
|
||||
static extern void pango_context_list_families(IntPtr raw, out IntPtr families, out int n_families);
|
||||
|
||||
public FontFamily [] Families {
|
||||
get {
|
||||
int count;
|
||||
IntPtr array_ptr;
|
||||
pango_context_list_families (Handle, out array_ptr, out count);
|
||||
if (array_ptr == IntPtr.Zero)
|
||||
return new FontFamily [0];
|
||||
FontFamily [] result = new FontFamily [count];
|
||||
for (int i = 0; i < count; i++) {
|
||||
IntPtr fam_ptr = Marshal.ReadIntPtr (new IntPtr ((int)array_ptr + i * IntPtr.Size));
|
||||
result [i] = GLib.Object.GetObject (fam_ptr) as FontFamily;
|
||||
}
|
||||
|
||||
g_free (array_ptr);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("libpango-1.0-0.dll")]
|
||||
static extern void pango_context_list_families(IntPtr raw, IntPtr families, out int n_families);
|
||||
|
||||
[Obsolete]
|
||||
public int ListFamilies(Pango.FontFamily families) {
|
||||
int n_families;
|
||||
pango_context_list_families(Handle, families.Handle, out n_families);
|
||||
return n_families;
|
||||
}
|
||||
|
38
pango/Coverage.custom
Normal file
38
pango/Coverage.custom
Normal file
|
@ -0,0 +1,38 @@
|
|||
// Pango.Coverage.custom - Pango Coverage class customizations
|
||||
//
|
||||
// Author: Mike Kestner <mkestner@ximian.com>
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport("libglib-2.0-0.dll")]
|
||||
static extern void g_free (IntPtr raw);
|
||||
|
||||
[DllImport("libpango-1.0-0.dll")]
|
||||
static extern void pango_coverage_to_bytes (IntPtr raw, out IntPtr bytes, out int n_bytes);
|
||||
|
||||
public void ToBytes(out byte[] bytes)
|
||||
{
|
||||
int count;
|
||||
IntPtr array_ptr;
|
||||
pango_coverage_to_bytes (Handle, out array_ptr, out count);
|
||||
bytes = new byte [count];
|
||||
Marshal.Copy (array_ptr, bytes, 0, count);
|
||||
g_free (array_ptr);
|
||||
}
|
||||
|
56
pango/FontFamily.custom
Normal file
56
pango/FontFamily.custom
Normal file
|
@ -0,0 +1,56 @@
|
|||
// Pango.FontFamily.custom - Pango FontFamily class customizations
|
||||
//
|
||||
// Authors: Mike Kestner <mkestner@ximian.com>
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport("libglib-2.0-0.dll")]
|
||||
static extern void g_free (IntPtr raw);
|
||||
|
||||
[DllImport("libpango-1.0-0.dll")]
|
||||
static extern void pango_font_family_list_faces(IntPtr raw, out IntPtr faces, out int n_faces);
|
||||
|
||||
public FontFace [] Faces {
|
||||
get {
|
||||
int count;
|
||||
IntPtr array_ptr;
|
||||
pango_font_family_list_faces (Handle, out array_ptr, out count);
|
||||
if (array_ptr == IntPtr.Zero)
|
||||
return new FontFace [0];
|
||||
FontFace [] result = new FontFace [count];
|
||||
for (int i = 0; i < count; i++) {
|
||||
IntPtr fam_ptr = Marshal.ReadIntPtr (new IntPtr ((int)array_ptr + i * IntPtr.Size));
|
||||
result [i] = GLib.Object.GetObject (fam_ptr) as FontFace;
|
||||
}
|
||||
|
||||
g_free (array_ptr);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("libpango-1.0-0.dll")]
|
||||
static extern void pango_font_family_list_faces(IntPtr raw, IntPtr faces, out int n_faces);
|
||||
|
||||
[Obsolete]
|
||||
public int ListFaces(Pango.FontFace faces) {
|
||||
int n_faces;
|
||||
pango_font_family_list_faces(Handle, faces.Handle, out n_faces);
|
||||
return n_faces;
|
||||
}
|
||||
|
56
pango/FontMap.custom
Normal file
56
pango/FontMap.custom
Normal file
|
@ -0,0 +1,56 @@
|
|||
// Pango.FontMap.custom - Pango FontMap class customizations
|
||||
//
|
||||
// Authors: Mike Kestner <mkestner@ximian.com>
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport("libglib-2.0-0.dll")]
|
||||
static extern void g_free (IntPtr raw);
|
||||
|
||||
[DllImport("libpango-1.0-0.dll")]
|
||||
static extern void pango_font_map_list_families(IntPtr raw, out IntPtr families, out int n_families);
|
||||
|
||||
public FontFamily [] Families {
|
||||
get {
|
||||
int count;
|
||||
IntPtr array_ptr;
|
||||
pango_font_map_list_families (Handle, out array_ptr, out count);
|
||||
if (array_ptr == IntPtr.Zero)
|
||||
return new FontFamily [0];
|
||||
FontFamily [] result = new FontFamily [count];
|
||||
for (int i = 0; i < count; i++) {
|
||||
IntPtr fam_ptr = Marshal.ReadIntPtr (new IntPtr ((int)array_ptr + i * IntPtr.Size));
|
||||
result [i] = GLib.Object.GetObject (fam_ptr) as FontFamily;
|
||||
}
|
||||
|
||||
g_free (array_ptr);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("libpango-1.0-0.dll")]
|
||||
static extern void pango_font_map_list_families(IntPtr raw, IntPtr families, out int n_families);
|
||||
|
||||
[Obsolete]
|
||||
public int ListFamilies(Pango.FontFamily families) {
|
||||
int n_families;
|
||||
pango_font_map_list_families(Handle, families.Handle, out n_families);
|
||||
return n_families;
|
||||
}
|
||||
|
46
pango/Global.custom
Normal file
46
pango/Global.custom
Normal file
|
@ -0,0 +1,46 @@
|
|||
// Pango.Global.custom - Pango Global class customizations
|
||||
//
|
||||
// Authors: Mike Kestner <mkestner@ximian.com>
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport("libpango-1.0-0.dll")]
|
||||
static extern bool pango_scan_int(string pos, out int out_param);
|
||||
|
||||
[Obsolete]
|
||||
public static bool ScanInt(string pos, out int out_param) {
|
||||
bool raw_ret = pango_scan_int(pos, out out_param);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[DllImport("libpango-1.0-0.dll")]
|
||||
static extern bool pango_parse_markup (string markup, int length, uint accel_marker, out IntPtr attr_list_handle, out string text, out uint accel_char, IntPtr err);
|
||||
|
||||
public static bool ParseMarkup (string markup, char accel_marker, out Pango.AttrList attrs, out string text, out char accel_char)
|
||||
{
|
||||
uint ucs4_accel_char;
|
||||
IntPtr attrs_handle;
|
||||
bool result = pango_parse_markup (markup, -1, GLib.Marshaller.CharToGUnichar (accel_marker), out attrs_handle, out text, out ucs4_accel_char, IntPtr.Zero);
|
||||
accel_char = GLib.Marshaller.GUnicharToChar (ucs4_accel_char);
|
||||
attrs = new Pango.AttrList (attrs_handle);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
@ -37,3 +37,37 @@ public LayoutLine[] Lines {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport("libpango-1.0-0.dll")]
|
||||
static extern void pango_layout_set_markup_with_accel (IntPtr raw, string markup, int length, uint accel_marker, out uint accel_char);
|
||||
|
||||
public void SetMarkupWithAccel (string markup, char accel_marker, out char accel_char)
|
||||
{
|
||||
uint ucs4_accel_char;
|
||||
pango_layout_set_markup_with_accel (Handle, markup, -1, GLib.Marshaller.CharToGUnichar (accel_marker), out ucs4_accel_char);
|
||||
accel_char = GLib.Marshaller.GUnicharToChar (ucs4_accel_char);
|
||||
}
|
||||
|
||||
[DllImport("libglib-2.0-0.dll")]
|
||||
static extern void g_free (IntPtr raw);
|
||||
|
||||
[DllImport("libpango-1.0-0.dll")]
|
||||
static extern void pango_layout_get_log_attrs (IntPtr raw, out IntPtr attrs, out int n_attrs);
|
||||
|
||||
public LogAttr [] LogAttrs {
|
||||
get {
|
||||
int count;
|
||||
IntPtr array_ptr;
|
||||
pango_layout_get_log_attrs (Handle, out array_ptr, out count);
|
||||
if (array_ptr == IntPtr.Zero)
|
||||
return new LogAttr [0];
|
||||
LogAttr [] result = new LogAttr [count];
|
||||
for (int i = 0; i < count; i++) {
|
||||
IntPtr fam_ptr = Marshal.ReadIntPtr (new IntPtr ((int)array_ptr + i * IntPtr.Size));
|
||||
result [i] = LogAttr.New (fam_ptr);
|
||||
}
|
||||
|
||||
g_free (array_ptr);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
// Pango.LayoutLine.custom - Pango LayoutLine class customizations
|
||||
//
|
||||
// Authors: Jeroen Zwartepoorte <jeroen@xs4all.nl
|
||||
// Mike Kestner <mkestner@ximian.com>
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
//
|
||||
|
@ -52,3 +53,31 @@ public int Length {
|
|||
return pangosharp_pango_layout_line_get_length (Handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DllImport("libglib-2.0-0.dll")]
|
||||
static extern void g_free (IntPtr raw);
|
||||
|
||||
[DllImport("libpango-1.0-0.dll")]
|
||||
static extern void pango_layout_line_get_x_ranges(IntPtr raw, int start_index, int end_index, out IntPtr ranges_handle, out int n_ranges);
|
||||
|
||||
public void GetXRanges(int start_index, int end_index, out int[][] ranges)
|
||||
{
|
||||
// FIXME: this is broke
|
||||
throw new NotImplementedException ();
|
||||
/*
|
||||
int count;
|
||||
IntPtr array_ptr;
|
||||
pango_layout_line_get_x_ranges(Handle, start_index, end_index, out array_ptr, out count);
|
||||
ranges = new int[count] [];
|
||||
for (int i = 0; i < count; i++) {
|
||||
IntPtr tmp = new IntPtr (array_ptr + 2 * i * IntPtr.Size);
|
||||
IntPtr rng_ptr = Marshal.ReadIntPtr (tmp);
|
||||
IntPtr end_ptr = Marshal.ReadIntPtr (tmp, IntPtr.Size);
|
||||
|
||||
}
|
||||
Marshal.Copy (array_ptr, ranges, 0, count);
|
||||
g_free (array_ptr);
|
||||
*/
|
||||
}
|
||||
|
||||
|
|
|
@ -22,9 +22,15 @@ dist_sources = $(sources)
|
|||
|
||||
customs = \
|
||||
AttrIterator.custom \
|
||||
Context.custom \
|
||||
Coverage.custom \
|
||||
FontFamily.custom \
|
||||
FontMap.custom \
|
||||
Global.custom \
|
||||
GlyphItem.custom \
|
||||
Layout.custom \
|
||||
LayoutLine.custom
|
||||
LayoutLine.custom \
|
||||
TabArray.custom
|
||||
|
||||
build_customs = $(addprefix $(srcdir)/, $(customs))
|
||||
dist_customs = $(customs)
|
||||
|
|
|
@ -1,22 +1,39 @@
|
|||
<?xml version="1.0"?>
|
||||
<metadata>
|
||||
<attr path="/api/namespace/class[@cname='PangoGlobal']/method[@name='ParseMarkup']/*/*[@name='attr_list']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/class[@cname='PangoGlobal']/method[@name='ParseMarkup']/*/*[@name='text']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/class[@cname='PangoGlobal']/method[@name='ParseMarkup']/*/*[@name='accel_char']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='PangoTabArray']/constructor[@cname='pango_tab_array_new_with_positions']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='PangoTabArray']/method[@name='GetTabs']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/callback[@cname='PangoFT2SubstituteFunc']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='PangoGlobal']/method[@name='GetMirrorChar']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='PangoGlobal']/method[@name='ParseMarkup']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='PangoGlobal']/method[@name='ReadLine']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='PangoGlobal']/method[@name='ReorderItems']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='PangoGlobal']/method[@name='ScanInt']/*/*[@name='pos']" name="pass_as">ref</attr>
|
||||
<attr path="/api/namespace/class[@cname='PangoGlobal']/method[@name='ScanString']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='PangoGlobal']/method[@name='ScanWord']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='PangoGlobal']/method[@name='SkipSpace']/*/*[@name='pos']" name="pass_as">ref</attr>
|
||||
<attr path="/api/namespace/object[@cname='PangoContext']/method[@name='ListFamilies']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='PangoFont']/method[@name='DescriptionsFree']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='PangoFontFamily']/method[@name='ListFaces']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='PangoFontMap']/method[@name='ListFamilies']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='PangoFT2FontMap']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='GetCursorPos']/*/*[@type='PangoRectangle*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='GetExtents']/*/*[@type='PangoRectangle*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='GetLines']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='GetLogAttrs']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='GetPixelExtents']/*/*[@type='PangoRectangle*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='GetPixelSize']/*/*[@type='int*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='GetSize']/*/*[@type='int*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='IndexToPos']/*/*[@type='PangoRectangle*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='SetMarkupWithAccel']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='PangoAttrIterator']/method[@name='GetAttrs']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='PangoAttrIterator']/method[@name='GetFont']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='PangoCoverage']/method[@name='ToBytes']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='PangoGlyphItem']/method[@name='ApplyAttrs']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='PangoLayoutLine']" name="opaque">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='PangoLayoutLine']/method[@name='GetExtents']/*/*[@type='PangoRectangle*']" name="pass_as">ref</attr>
|
||||
<attr path="/api/namespace/struct[@cname='PangoLayoutLine']/method[@name='GetExtents']/*/*[@type='PangoRectangle*']" name="null_ok">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='PangoLayoutLine']/method[@name='GetPixelExtents']/*/*[@type='PangoRectangle*']" name="pass_as">ref</attr>
|
||||
<attr path="/api/namespace/struct[@cname='PangoLayoutLine']/method[@name='GetPixelExtents']/*/*[@type='PangoRectangle*']" name="null_ok">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='PangoLayoutLine']/method[@name='GetXRanges']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='PangoWin32FontCache']" name="hidden">1</attr>
|
||||
</metadata>
|
||||
|
|
46
pango/TabArray.custom
Normal file
46
pango/TabArray.custom
Normal file
|
@ -0,0 +1,46 @@
|
|||
// Pango.TabArray.custom - Pango TabArray class customizations
|
||||
//
|
||||
// Author: Mike Kestner <mkestner@ximian.com>
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport("libglib-2.0-0.dll")]
|
||||
static extern void g_free (IntPtr raw);
|
||||
|
||||
[DllImport("libpango-1.0-0.dll")]
|
||||
static extern void pango_tab_array_get_tabs (IntPtr raw, out IntPtr alignments, out IntPtr locations);
|
||||
|
||||
public void GetTabs (out TabAlign[] alignments, out int[] locations)
|
||||
{
|
||||
int sz = Size;
|
||||
IntPtr align_ptr, loc_ptr;
|
||||
alignments = new TabAlign [sz];
|
||||
locations = new int [sz];
|
||||
int[] tmp = new int [sz];
|
||||
if (sz == 0)
|
||||
return;
|
||||
pango_tab_array_get_tabs (Handle, out align_ptr, out loc_ptr);
|
||||
Marshal.Copy (loc_ptr, locations, 0, sz);
|
||||
Marshal.Copy (align_ptr, tmp, 0, sz);
|
||||
for (int i = 0; i < sz; i++)
|
||||
alignments [i] = (TabAlign) tmp [i];
|
||||
g_free (align_ptr);
|
||||
g_free (loc_ptr);
|
||||
}
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
<configuration>
|
||||
<dllmap dll="libglib-2.0-0.dll" target="libglib-2.0@LIB_PREFIX@.0@LIB_SUFFIX@"/>
|
||||
<dllmap dll="libpango-1.0-0.dll" target="libpango-1.0@LIB_PREFIX@.0@LIB_SUFFIX@"/>
|
||||
</configuration>
|
||||
|
|
Loading…
Reference in a new issue