Import line: | Atk = imports.gi.Atk; |
GIR File: | Atk-1.0.gir |
C documentation: | AtkText |
Interface : | Text |
Implementations: | Atk.NoOpObject |
None |
Method / Constructor | Defined By | |
---|---|---|
Adds a selection bounded by the specified offsets.
|
Atk.Text | |
get_bounded_ranges
(TextRectangle rect, CoordType coord_type, TextClipType x_clip_type, TextClipType y_clip_type)
:
Array
Get the ranges of text in the specified bounding box.
Get the ranges of text in the specified bounding box.
element of the array returned by this function will be NULL.
|
Atk.Text | |
get_caret_offset
()
:
gint32
Gets the offset position of the caret (cursor).
Gets the offset position of the caret (cursor).
|
Atk.Text | |
Atk.Text | ||
get_character_count
()
:
gint32
Gets the character count.
Gets the character count.
|
Atk.Text | |
get_character_extents
(gint32 offset, gint32 x, gint32 y, gint32 width, gint32 height, CoordType coords)
:
none
Get the bounding box containing the glyph representing the character at
a particular text offset.
Get the bounding box containing the glyph representing the character at
a particular text offset.
|
Atk.Text | |
get_default_attributes
()
:
Array
Creates an AtkAttributeSet which consists of the default values of
attributes for the text.
Creates an AtkAttributeSet which consists of the default values of
attributes for the text. See the enum AtkTextAttribute for types of text attributes that can be returned. Note that other attributes may also be returned. values of attributes. at offset. this atkattributeset should be freed by a call to atk_attribute_set_free().
|
Atk.Text | |
get_n_selections
()
:
gint32
Gets the number of selected regions.
Gets the number of selected regions.
occurred.
|
Atk.Text | |
Gets the offset of the character located at coordinates x and y.
Gets the offset of the character located at coordinates x and y. x and y
are interpreted as being relative to the screen or this widget's window depending on coords. the specified x and y coordinates.
|
Atk.Text | |
get_range_extents
(gint32 start_offset, gint32 end_offset, CoordType coord_type, TextRectangle rect)
:
none
Get the bounding box for text within the specified range.
Get the bounding box for text within the specified range.
|
Atk.Text | |
Creates an AtkAttributeSet which consists of the attributes explicitly
set at the position offset in the text.
Creates an AtkAttributeSet which consists of the attributes explicitly
set at the position offset in the text. start_offset and end_offset are set to the start and end of the range around offset where the attributes are invariant. Note that end_offset is the offset of the first character after the range. See the enum AtkTextAttribute for types of text attributes that can be returned. Note that other attributes may also be returned. explicitly set at offset. This AtkAttributeSet should be freed by a call to atk_attribute_set_free().
|
Atk.Text | |
Gets the text from the specified selection.
Gets the text from the specified selection.
|
Atk.Text | |
Atk.Text | ||
get_text_after_offset
(gint32 offset, TextBoundary boundary_type, gint32 start_offset, gint32 end_offset)
:
String
Gets the specified text.
Gets the specified text.
If the boundary_type if ATK_TEXT_BOUNDARY_CHAR the character after the offset is returned. If the boundary_type is ATK_TEXT_BOUNDARY_WORD_START the returned string is from the word start after the offset to the next word start. 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. If the boundary_type is ATK_TEXT_BOUNDARY_WORD_END the returned string is from the word end at or after the offset to the next work end. 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. If the boundary type is ATK_TEXT_BOUNDARY_SENTENCE_START the returned string is from the sentence start after the offset to the next sentence start. 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. If the boundary_type is ATK_TEXT_BOUNDARY_SENTENCE_END the returned string is from the sentence end at or after the offset to the next sentence end. 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. If the boundary type is ATK_TEXT_BOUNDARY_LINE_START the returned string is from the line start after the offset to the next line start. If the boundary_type is ATK_TEXT_BOUNDARY_LINE_END the returned string is from the line end at or after the offset to the next line end.
|
Atk.Text | |
get_text_at_offset
(gint32 offset, TextBoundary boundary_type, gint32 start_offset, gint32 end_offset)
:
String
Gets the specified text.
Gets the specified text.
If the boundary_type if ATK_TEXT_BOUNDARY_CHAR the character at the offset is returned. If the boundary_type is ATK_TEXT_BOUNDARY_WORD_START the returned string is from the word start at or before the offset to the word start after the offset. The returned string will contain the word at the offset if the offset is inside a word and will contain the word before the offset if the offset is not inside a word. If the boundary_type is ATK_TEXT_BOUNDARY_WORD_END the returned string is from the word end before the offset to the word end at or after the offset. The returned string will contain the word at the offset if the offset is inside a word and will contain the word after to the offset if the offset is not inside a word. If the boundary type is ATK_TEXT_BOUNDARY_SENTENCE_START the returned string is from the sentence start at or before the offset to the sentence start after the offset. The returned string will contain the sentence at the offset if the offset is inside a sentence and will contain the sentence before the offset if the offset is not inside a sentence. If the boundary_type is ATK_TEXT_BOUNDARY_SENTENCE_END the returned string is from the sentence end before the offset to the sentence end at or after the offset. The returned string will contain the sentence at the offset if the offset is inside a sentence and will contain the sentence after the offset if the offset is not inside a sentence. If the boundary type is ATK_TEXT_BOUNDARY_LINE_START the returned string is from the line start at or before the offset to the line start after the offset. If the boundary_type is ATK_TEXT_BOUNDARY_LINE_END the returned string is from the line end before the offset to the line end at or after the offset.
|
Atk.Text | |
get_text_before_offset
(gint32 offset, TextBoundary boundary_type, gint32 start_offset, gint32 end_offset)
:
String
Gets the specified text.
Gets the specified text.
If the boundary_type if ATK_TEXT_BOUNDARY_CHAR the character before the offset is returned. If the boundary_type is ATK_TEXT_BOUNDARY_WORD_START the returned string is from the word start before the word start before the offset to the word start before the offset. The returned string will contain the word before the offset if the offset is inside a word and will contain the word before the word before the offset if the offset is not inside a word. If the boundary_type is ATK_TEXT_BOUNDARY_WORD_END the returned string is from the word end before the word end at or before the offset to the word end at or before the offset. The returned string will contain the word before the offset if the offset is inside a word or if the offset is not inside a word. If the boundary type is ATK_TEXT_BOUNDARY_SENTENCE_START the returned string is from the sentence start before the sentence start before the offset to the sentence start before the offset. The returned string will contain the sentence before the offset if the offset is inside a sentence and will contain the sentence before the sentence before the offset if the offset is not inside a sentence. If the boundary_type is ATK_TEXT_BOUNDARY_SENTENCE_END the returned string is from the sentence end before the sentence end at or before the offset to the sentence end at or before the offset. The returned string will contain the sentence before the offset if the offset is inside a sentence or if the offset is not inside a sentence. If the boundary type is ATK_TEXT_BOUNDARY_LINE_START the returned string is from the line start before the line start ar or before the offset to the line start ar or before the offset. If the boundary_type is ATK_TEXT_BOUNDARY_LINE_END the returned string is from the line end before the line end before the offset to the line end before the offset.
|
Atk.Text | |
Removes the specified selection.
Removes the specified selection.
|
Atk.Text | |
Atk.Text | ||
Changes the start and end offset of the specified selection.
Changes the start and end offset of the specified selection.
|
Atk.Text |
Event | Defined By | |
---|---|---|
text_attributes_changed (Text self)
:
none
|
Atk.Text | |
Atk.Text | ||
Atk.Text | ||
Atk.Text | ||
Atk.Text | ||
text_selection_changed (Text self)
:
none
|
Atk.Text | |
Atk.Text |