mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 02:05:41 +00:00
ab07fa8056
svn path=/trunk/gtk-sharp/; revision=46164
533 lines
28 KiB
XML
533 lines
28 KiB
XML
<Type Name="Text" FullName="Atk.Text">
|
|
<TypeSignature Language="C#" Maintainer="auto" Value="public interface Text : GLib.IWrapper" />
|
|
<AssemblyInfo>
|
|
<AssemblyName>atk-sharp</AssemblyName>
|
|
<AssemblyPublicKey>
|
|
</AssemblyPublicKey>
|
|
<AssemblyVersion>2.6.0.0</AssemblyVersion>
|
|
</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>The interface implemented by components with text content.</summary>
|
|
<remarks>
|
|
<para>
|
|
<see cref="T:Atk.Text" /> should be implemented by <see cref="T:Atk.Object" />s on behalf of widgets that have text content which is either attributed or otherwise non-trivial. <see cref="T:Atk.Object" />s whose text content is simple, unattributed, and very brief may expose that content via atk_object_get_name instead; however if the text is editable, multi-line, typically longer than three or four words, attributed, selectable, or if the object already uses the 'name' ATK property for other information, the <see cref="T:Atk.Text" /> interface should be used to expose the text content. In the case of editable text content, <see cref="T:Atk.EditableText" /> (a subtype of the <see cref="T:Atk.Text" /> interface) should be implemented instead.
|
|
</para>
|
|
<para>
|
|
<see cref="T:Atk.Text" /> provides not only traversal facilities and change notification for text content, but also caret tracking and glyph bounding box calculations. Note that the text strings are exposed as UTF-8, and are therefore potentially multi-byte, and caret-to-byte offset mapping makes no assumptions about the character length; also bounding box glyph-to-offset mapping may be complex for languages which use ligatures.
|
|
</para>
|
|
</remarks>
|
|
</Docs>
|
|
<Interfaces>
|
|
<Interface>
|
|
<InterfaceName>GLib.IWrapper</InterfaceName>
|
|
</Interface>
|
|
</Interfaces>
|
|
<Members>
|
|
<Member MemberName="GetOffsetAtPoint">
|
|
<MemberSignature Language="C#" Value="public int GetOffsetAtPoint (int x, int y, Atk.CoordType coords);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Int32</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="x" Type="System.Int32" />
|
|
<Parameter Name="y" Type="System.Int32" />
|
|
<Parameter Name="coords" Type="Atk.CoordType" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Gets the offset of the character located at coordinates <paramref name="x" /> and <paramref name="y" />. </summary>
|
|
<param name="x"> screen x-position of character</param>
|
|
<param name="y"> screen y-position of character</param>
|
|
<param name="coords"> specify whether coordinates are relative to the screen or widget window</param>
|
|
<returns> the offset to the character which is located at the specified x and y coordinates.</returns>
|
|
<remarks>
|
|
<paramref name="x" /> and <paramref name="y" /> are interpreted as being relative to the screen or this widget's window depending on <paramref name="coords" />.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="SetSelection">
|
|
<MemberSignature Language="C#" Value="public bool SetSelection (int selection_num, int start_offset, int end_offset);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Boolean</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="selection_num" Type="System.Int32" />
|
|
<Parameter Name="start_offset" Type="System.Int32" />
|
|
<Parameter Name="end_offset" Type="System.Int32" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Changes the start and end offset of the specified selection.</summary>
|
|
<param name="selection_num"> The selection number. The selected regions are assigned numbers that correspond to how far the region is from the start of the text. The selected region closest to the beginning of the text region is assigned the number 0, etc. Note that adding, moving or deleting a selected region can change the numbering.</param>
|
|
<param name="start_offset"> the new start position of the selection</param>
|
|
<param name="end_offset"> the new end position of the selection</param>
|
|
<returns>
|
|
<see langword="true" /> if success, <see langword="false" /> otherwise</returns>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="SetCaretOffset">
|
|
<MemberSignature Language="C#" Value="public bool SetCaretOffset (int offset);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Boolean</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="offset" Type="System.Int32" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Sets the caret (cursor) position to the specified offset.</summary>
|
|
<param name="offset">position</param>
|
|
<returns>
|
|
<see langword="true" /> if success, <see langword="false" /> otherwise.</returns>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="RemoveSelection">
|
|
<MemberSignature Language="C#" Value="public bool RemoveSelection (int selection_num);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Boolean</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="selection_num" Type="System.Int32" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Removes the specified selection.</summary>
|
|
<param name="selection_num"> The selection number. The selected regions are assigned numbers that correspond to how far the region is from the start of the text. The selected region closest to the beginning of the text region is assigned the number 0, etc. Note that adding, moving or deleting a selected region can change the numbering.</param>
|
|
<returns>
|
|
<see langword="true" /> if success, <see langword="false" /> otherwise</returns>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetText">
|
|
<MemberSignature Language="C#" Value="public string GetText (int start_offset, int end_offset);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.String</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="start_offset" Type="System.Int32" />
|
|
<Parameter Name="end_offset" Type="System.Int32" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Gets the specified text.</summary>
|
|
<param name="start_offset"> start position</param>
|
|
<param name="end_offset"> end position</param>
|
|
<returns> the text from <paramref name="start_offset" /> up to, but not including <paramref name="end_offset" />.</returns>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="AddSelection">
|
|
<MemberSignature Language="C#" Value="public bool AddSelection (int start_offset, int end_offset);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Boolean</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="start_offset" Type="System.Int32" />
|
|
<Parameter Name="end_offset" Type="System.Int32" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Adds a selection bounded by the specified offsets.</summary>
|
|
<param name="start_offset"> the start position of the selected region</param>
|
|
<param name="end_offset"> the end position of the selected region</param>
|
|
<returns>
|
|
<see langword="true" /> if success, <see langword="false" /> otherwise</returns>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="DefaultAttributes">
|
|
<MemberSignature Language="C#" Value="public GLib.SList DefaultAttributes { get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>GLib.SList</ReturnType>
|
|
</ReturnValue>
|
|
<Docs>
|
|
<summary>Creates an <see cref="T:Atk.AttributeSet" /> which consists of the default values of attributes for the text.</summary>
|
|
<value> an <see cref="T:Atk.AttributeSet" /> which contains the default values of attributes, at <paramref name="offset" />.</value>
|
|
<remarks>See the enum <see cref="T:Atk.TextAttribute" /> for types of text attributes that can be returned. Note that other attributes may also be returned.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="NSelections">
|
|
<MemberSignature Language="C#" Value="public int NSelections { get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Int32</ReturnType>
|
|
</ReturnValue>
|
|
<Docs>
|
|
<summary>Gets the number of selected regions.</summary>
|
|
<value> The number of selected regions, or -1 if a failure occurred.</value>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="CaretOffset">
|
|
<MemberSignature Language="C#" Value="public int CaretOffset { get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Int32</ReturnType>
|
|
</ReturnValue>
|
|
<Docs>
|
|
<summary>Gets the offset position of the caret (cursor).</summary>
|
|
<value> the offset position of the caret (cursor).</value>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="CharacterCount">
|
|
<MemberSignature Language="C#" Value="public int CharacterCount { get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Int32</ReturnType>
|
|
</ReturnValue>
|
|
<Docs>
|
|
<summary>Gets the character count.</summary>
|
|
<value> the number of characters.</value>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="TextChanged">
|
|
<MemberSignature Language="C#" Value="public event Atk.TextChangedHandler TextChanged;" />
|
|
<MemberType>Event</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>Atk.TextChangedHandler</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Emitted when the text of the object which implements the AtkText interface changes.</summary>
|
|
<remarks>This signal will have a detail which is either "insert" or "delete" which identifies whether the text change was an insertion or a deletion.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="TextSelectionChanged">
|
|
<MemberSignature Language="C#" Value="public event EventHandler TextSelectionChanged;" />
|
|
<MemberType>Event</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.EventHandler</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Emitted when the selected text of an object which implements AtkText changes.</summary>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="TextCaretMoved">
|
|
<MemberSignature Language="C#" Value="public event Atk.TextCaretMovedHandler TextCaretMoved;" />
|
|
<MemberType>Event</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>Atk.TextCaretMovedHandler</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Emitted when the caret position of the text of an object which implements AtkText changes.</summary>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="TextAttributesChanged">
|
|
<MemberSignature Language="C#" Value="public event EventHandler TextAttributesChanged;" />
|
|
<MemberType>Event</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.EventHandler</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Emitted when the text attributes of the text of an object which implements AtkText changes.</summary>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetTextAfterOffset">
|
|
<MemberSignature Language="C#" Value="public string GetTextAfterOffset (int offset, Atk.TextBoundary boundary_type, out int start_offset, out int end_offset);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.String</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="offset" Type="System.Int32" />
|
|
<Parameter Name="boundary_type" Type="Atk.TextBoundary" />
|
|
<Parameter Name="start_offset" Type="System.Int32&" RefType="out" />
|
|
<Parameter Name="end_offset" Type="System.Int32&" RefType="out" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Gets the specified text.</summary>
|
|
<param name="offset">position</param>
|
|
<param name="boundary_type">a <see cref="T:Atk.TextBoundary" /></param>
|
|
<param name="start_offset"> the start offset of the returned string.</param>
|
|
<param name="end_offset"> the end offset of the returned string.</param>
|
|
<returns> the text after <paramref name="offset" /> bounded by the specified <paramref name="boundary_type" />.</returns>
|
|
<remarks>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.Char" /> the character after the offset is returned.
|
|
</para>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.WordStart" /> the returned string is from the word start after the offset to the next word start.
|
|
</para>
|
|
<para>
|
|
The returned string will contain the word after the offset if the offset is inside a word or if the offset is not inside a word.
|
|
</para>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.WordEnd" /> the returned string is from the word end at or after the offset to the next work end.
|
|
</para>
|
|
<para>
|
|
The returned string will contain the word after the offset if the offset is inside a word and will contain the word after the word after the offset if the offset is not inside a word.
|
|
</para>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.SentenceStart" /> the returned string is from the sentence start after the offset to the next sentence start.
|
|
</para>
|
|
<para>
|
|
The returned string will contain the sentence after the offset if the offset is inside a sentence or if the offset is not inside a sentence.
|
|
</para>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.SentenceEnd" /> the returned string is from the sentence end at or after the offset to the next sentence end.
|
|
</para>
|
|
<para>
|
|
The returned string will contain the sentence after the offset if the offset is inside a sentence and will contain the sentence after the sentence after the offset if the offset is not inside a sentence.
|
|
</para>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.LineStart" /> the returned string is from the line start after the offset to the next line start.
|
|
</para>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.LineEnd" /> the returned string is from the line end at or after the offset to the next line start.
|
|
</para>
|
|
</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetSelection">
|
|
<MemberSignature Language="C#" Value="public string GetSelection (int selection_num, out int start_offset, out int end_offset);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.String</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="selection_num" Type="System.Int32" />
|
|
<Parameter Name="start_offset" Type="System.Int32&" RefType="out" />
|
|
<Parameter Name="end_offset" Type="System.Int32&" RefType="out" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Gets the text from the specified selection.</summary>
|
|
<param name="selection_num"> The selection number. The selected regions are assigned numbers that correspond to how far the region is from the start of the text. The selected region closest to the beginning of the text region is assigned the number 0, etc. Note that adding, moving or deleting a selected region can change the numbering.</param>
|
|
<param name="start_offset"> passes back the start position of the selected region</param>
|
|
<param name="end_offset"> passes back the end position of the selected region</param>
|
|
<returns> the selected text.</returns>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetTextBeforeOffset">
|
|
<MemberSignature Language="C#" Value="public string GetTextBeforeOffset (int offset, Atk.TextBoundary boundary_type, out int start_offset, out int end_offset);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.String</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="offset" Type="System.Int32" />
|
|
<Parameter Name="boundary_type" Type="Atk.TextBoundary" />
|
|
<Parameter Name="start_offset" Type="System.Int32&" RefType="out" />
|
|
<Parameter Name="end_offset" Type="System.Int32&" RefType="out" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Gets the specified text.</summary>
|
|
<param name="offset">position</param>
|
|
<param name="boundary_type">a <see cref="T:Atk.TextBoundary" /></param>
|
|
<param name="start_offset"> the start offset of the returned string.</param>
|
|
<param name="end_offset"> the end offset of the returned string.</param>
|
|
<returns> the text before <paramref name="offset" /> bounded by the specified <paramref name="boundary_type" />.</returns>
|
|
<remarks>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.Char" /> the character after the offset is returned.
|
|
</para>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.WordStart" /> the returned string is from the word start after the offset to the next word start.
|
|
</para>
|
|
<para>
|
|
The returned string will contain the word after the offset if the offset is inside a word or if the offset is not inside a word.
|
|
</para>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.WordEnd" /> the returned string is from the word end at or after the offset to the next work end.
|
|
</para>
|
|
<para>
|
|
The returned string will contain the word after the offset if the offset is inside a word and will contain the word after the word after the offset if the offset is not inside a word.
|
|
</para>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.SentenceStart" /> the returned string is from the sentence start after the offset to the next sentence start.
|
|
</para>
|
|
<para>
|
|
The returned string will contain the sentence after the offset if the offset is inside a sentence or if the offset is not inside a sentence.
|
|
</para>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.SentenceEnd" /> the returned string is from the sentence end at or after the offset to the next sentence end.
|
|
</para>
|
|
<para>
|
|
The returned string will contain the sentence after the offset if the offset is inside a sentence and will contain the sentence after the sentence after the offset if the offset is not inside a sentence.
|
|
</para>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.LineStart" /> the returned string is from the line start after the offset to the next line start.
|
|
</para>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.LineEnd" /> the returned string is from the line end at or after the offset to the next line start.
|
|
</para>
|
|
</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetCharacterExtents">
|
|
<MemberSignature Language="C#" Value="public void GetCharacterExtents (int offset, out int x, out int y, out int width, out int height, Atk.CoordType coords);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="offset" Type="System.Int32" />
|
|
<Parameter Name="x" Type="System.Int32&" RefType="out" />
|
|
<Parameter Name="y" Type="System.Int32&" RefType="out" />
|
|
<Parameter Name="width" Type="System.Int32&" RefType="out" />
|
|
<Parameter Name="height" Type="System.Int32&" RefType="out" />
|
|
<Parameter Name="coords" Type="Atk.CoordType" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Get the bounding box containing the glyph representing the character at a particular text offset.</summary>
|
|
<param name="offset"> The offset of the text character for which bounding information is required.</param>
|
|
<param name="x"> Pointer for the x cordinate of the bounding box.</param>
|
|
<param name="y"> Pointer for the y cordinate of the bounding box.</param>
|
|
<param name="width"> Pointer for the width of the bounding box</param>
|
|
<param name="height"> Pointer for the height of the bounding box.</param>
|
|
<param name="coords"> specify whether coordinates are relative to the screen or widget window</param>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetRunAttributes">
|
|
<MemberSignature Language="C#" Value="public GLib.SList GetRunAttributes (int offset, out int start_offset, out int end_offset);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>GLib.SList</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="offset" Type="System.Int32" />
|
|
<Parameter Name="start_offset" Type="System.Int32&" RefType="out" />
|
|
<Parameter Name="end_offset" Type="System.Int32&" RefType="out" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Creates an <see cref="T:Atk.AttributeSet" /> which consists of the attributes explicitly set at the position offset in the text. <paramref name="start_offset" /> and <paramref name="end_offset" /> are set to the start and end of the range around <paramref name="offset" /> where the attributes are invariant.</summary>
|
|
<param name="offset"> the offset at which to get the attributes</param>
|
|
<param name="start_offset"> the address to put the start offset of the range</param>
|
|
<param name="end_offset"> the address to put the end offset of the range</param>
|
|
<returns> an <see cref="T:Atk.AttributeSet" /> which contains the attributes explicitly set at <paramref name="offset" />.</returns>
|
|
<remarks>See the enum <see cref="T:Atk.TextAttribute" /> for types of text attributes that can be returned. Note that other attributes may also be returned.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetTextAtOffset">
|
|
<MemberSignature Language="C#" Value="public string GetTextAtOffset (int offset, Atk.TextBoundary boundary_type, out int start_offset, out int end_offset);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.String</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="offset" Type="System.Int32" />
|
|
<Parameter Name="boundary_type" Type="Atk.TextBoundary" />
|
|
<Parameter Name="start_offset" Type="System.Int32&" RefType="out" />
|
|
<Parameter Name="end_offset" Type="System.Int32&" RefType="out" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Gets the specified text.</summary>
|
|
<param name="offset"> position</param>
|
|
<param name="boundary_type">a <see cref="T:Atk.TextBoundary" /></param>
|
|
<param name="start_offset"> the start offset of the returned string.</param>
|
|
<param name="end_offset"> the end offset of the returned string.</param>
|
|
<returns> the text at <paramref name="offset" /> bounded by the specified <paramref name="boundary_type" />.</returns>
|
|
<remarks>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.Char" /> the character after the offset is returned.
|
|
</para>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.WordStart" /> the returned string is from the word start after the offset to the next word start.
|
|
</para>
|
|
<para>
|
|
The returned string will contain the word after the offset if the offset is inside a word or if the offset is not inside a word.
|
|
</para>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.WordEnd" /> the returned string is from the word end at or after the offset to the next work end.
|
|
</para>
|
|
<para>
|
|
The returned string will contain the word after the offset if the offset is inside a word and will contain the word after the word after the offset if the offset is not inside a word.
|
|
</para>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.SentenceStart" /> the returned string is from the sentence start after the offset to the next sentence start.
|
|
</para>
|
|
<para>
|
|
The returned string will contain the sentence after the offset if the offset is inside a sentence or if the offset is not inside a sentence.
|
|
</para>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.SentenceEnd" /> the returned string is from the sentence end at or after the offset to the next sentence end.
|
|
</para>
|
|
<para>
|
|
The returned string will contain the sentence after the offset if the offset is inside a sentence and will contain the sentence after the sentence after the offset if the offset is not inside a sentence.
|
|
</para>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.LineStart" /> the returned string is from the line start after the offset to the next line start.
|
|
</para>
|
|
<para>
|
|
If the <paramref name="boundary_type" /> is <see cref="F:Atk.TextBoundary.LineEnd" /> the returned string is from the line end at or after the offset to the next line start.
|
|
</para>
|
|
</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetBoundedRanges">
|
|
<MemberSignature Language="C#" Value="public Atk.TextRange GetBoundedRanges (Atk.TextRectangle rect, Atk.CoordType coord_type, Atk.TextClipType x_clip_type, Atk.TextClipType y_clip_type);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>Atk.TextRange</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="rect" Type="Atk.TextRectangle" />
|
|
<Parameter Name="coord_type" Type="Atk.CoordType" />
|
|
<Parameter Name="x_clip_type" Type="Atk.TextClipType" />
|
|
<Parameter Name="y_clip_type" Type="Atk.TextClipType" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>To be added</summary>
|
|
<param name="rect">a <see cref="T:Atk.TextRectangle" /></param>
|
|
<param name="coord_type">a <see cref="T:System.Int32" /></param>
|
|
<param name="x_clip_type">a <see cref="T:System.Int32" /></param>
|
|
<param name="y_clip_type">a <see cref="T:System.Int32" /></param>
|
|
<returns>a <see cref="T:Atk.TextRange" /></returns>
|
|
<remarks>To be added</remarks>
|
|
<since version="Gtk# 2.4" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetRangeExtents">
|
|
<MemberSignature Language="C#" Value="public void GetRangeExtents (int start_offset, int end_offset, Atk.CoordType coord_type, Atk.TextRectangle rect);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="start_offset" Type="System.Int32" />
|
|
<Parameter Name="end_offset" Type="System.Int32" />
|
|
<Parameter Name="coord_type" Type="Atk.CoordType" />
|
|
<Parameter Name="rect" Type="Atk.TextRectangle" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>To be added</summary>
|
|
<param name="start_offset">a <see cref="T:System.Int32" /></param>
|
|
<param name="end_offset">a <see cref="T:System.Int32" /></param>
|
|
<param name="coord_type">a <see cref="T:System.Int32" /></param>
|
|
<param name="rect">a <see cref="T:Atk.TextRectangle" /></param>
|
|
<remarks>To be added</remarks>
|
|
<since version="Gtk# 2.4" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetCharacterAtOffset">
|
|
<MemberSignature Language="C#" Value="public char GetCharacterAtOffset (int offset);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Char</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="offset" Type="System.Int32" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Gets the specified text.</summary>
|
|
<param name="offset">position</param>
|
|
<returns>the character at <paramref name="offset" />.</returns>
|
|
<remarks>
|
|
</remarks>
|
|
</Docs>
|
|
</Member>
|
|
</Members>
|
|
</Type>
|