GObject.Object
Gtk.TextLayout
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-2.0.gir |
C documentation: | GtkTextLayout |
Class : | TextLayout |
Extends: | GObject.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
buffer : Gtk.TextBuffer
read only
|
Gtk.TextLayout | |
cursor_direction : Number
read only
|
Gtk.TextLayout | |
cursor_visible : Number
read only
|
Gtk.TextLayout | |
default_style : Gtk.TextAttributes
read only
|
Gtk.TextLayout | |
height : Number
read only
|
Gtk.TextLayout | |
keyboard_direction : Number
read only
|
Gtk.TextLayout | |
ltr_context : Pango.Context
read only
|
Gtk.TextLayout | |
one_display_cache : Gtk.TextLineDisplay
read only
|
Gtk.TextLayout | |
one_style_cache : Gtk.TextAttributes
read only
|
Gtk.TextLayout | |
overwrite_mode : Number
read only
|
Gtk.TextLayout | |
parent_instance : GObject.Object
read only
|
Gtk.TextLayout | |
preedit_attrs : Pango.AttrList
read only
|
Gtk.TextLayout | |
preedit_cursor : Number
read only
|
Gtk.TextLayout | |
preedit_len : Number
read only
|
Gtk.TextLayout | |
preedit_string : String
read only
|
Gtk.TextLayout | |
rtl_context : Pango.Context
read only
|
Gtk.TextLayout | |
screen_width : Number
read only
|
Gtk.TextLayout | |
width : Number
read only
|
Gtk.TextLayout | |
wrap_loop_count : Number
read only
|
Gtk.TextLayout |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.TextLayout
(Object properties)
Create a new Gtk.TextLayout
Create a new Gtk.TextLayout
|
||
Gtk.TextLayout | ||
If the iterator is not fully in the range top <= y < bottom, then, if possible, move it the minimum distance so that the iterator in this range.
If the iterator is not fully in the range top <= y < bottom, then, if possible, move it the minimum distance so that the iterator in this range.
|
Gtk.TextLayout | |
Gtk.TextLayout | ||
default_style_changed
()
:
none
|
Gtk.TextLayout | |
free_line_data
(TextLine line, TextLineData line_data)
:
none
|
Gtk.TextLayout | |
free_line_display
(TextLineDisplay display)
:
none
|
Gtk.TextLayout | |
get_buffer
()
:
Gtk.TextBuffer
Gets the text buffer used by the layout.
Gets the text buffer used by the layout. See gtk_text_layout_set_buffer().
|
Gtk.TextLayout | |
Given an iterator within a text layout, determine the positions of the strong and weak cursors if the insertion point is at that iterator.
Given an iterator within a text layout, determine the positions of the strong and weak cursors if the insertion point is at that iterator. The position of each cursor is stored as a zero-width rectangle. The strong cursor location is the location where characters of the directionality equal to the base direction of the paragraph are inserted. The weak cursor location is the location where characters of the directionality opposite to the base direction of the paragraph are inserted.
|
Gtk.TextLayout | |
get_cursor_visible
()
:
Boolean
Returns whether the insertion cursor will be shown.
Returns whether the insertion cursor will be shown. shown, even if the text is editable.
|
Gtk.TextLayout | |
|
Gtk.TextLayout | |
|
Gtk.TextLayout | |
|
Gtk.TextLayout | |
|
Gtk.TextLayout | |
Get the iter at the beginning of the line which is displayed at the given y.
Get the iter at the beginning of the line which is displayed at the given y.
|
Gtk.TextLayout | |
|
Gtk.TextLayout | |
Find the range of y coordinates for the paragraph containing the given iter.
Find the range of y coordinates for the paragraph containing the given iter.
|
Gtk.TextLayout | |
Gtk.TextLayout | ||
get_size
()
:
Object
|
Gtk.TextLayout | |
|
Gtk.TextLayout | |
|
Gtk.TextLayout | |
is_valid
()
:
Boolean
Check if there are any invalid regions in a GtkTextLayout's buffer
Check if there are any invalid regions in a GtkTextLayout's buffer
|
Gtk.TextLayout | |
Tests whether an iterator is at the start of a display line.
Tests whether an iterator is at the start of a display line.
|
Gtk.TextLayout | |
Move to the beginning or end of a display line.
Move to the beginning or end of a display line.
|
Gtk.TextLayout | |
Move the iterator to the beginning of the next line.
Move the iterator to the beginning of the next line. The lines of a wrapped paragraph are treated as distinct for this operation.
|
Gtk.TextLayout | |
Move the iterator to the beginning of the previous line.
Move the iterator to the beginning of the previous line. The lines of a wrapped paragraph are treated as distinct for this operation.
|
Gtk.TextLayout | |
Keeping the iterator on the same line of the layout, move it to the specified X coordinate.
Keeping the iterator on the same line of the layout, move it to the specified X coordinate. The lines of a wrapped paragraph are treated as distinct for this operation.
|
Gtk.TextLayout | |
Move the iterator a given number of characters visually, treating it as the strong cursor position.
Move the iterator a given number of characters visually, treating it as the strong cursor position. If count is positive, then the new strong cursor position will be count positions to the right of the old cursor position. If count is negative then the new strong cursor position will be count positions to the left of the old cursor position. In the presence of bidirection text, the correspondence between logical and visual order will depend on the direction of the current run, and there may be jumps when the cursor is moved off of the end of a run.
|
Gtk.TextLayout | |
set_buffer
(TextBuffer buffer)
:
none
|
Gtk.TextLayout | |
|
Gtk.TextLayout | |
set_cursor_direction
(TextDirection direction)
:
none
Sets which text directions (left-to-right and/or right-to-left) for which cursors will be drawn for the insertion point.
Sets which text directions (left-to-right and/or right-to-left) for which cursors will be drawn for the insertion point. The visual point at which new text is inserted depends on whether the new text is right-to-left or left-to-right, so it may be desired to make the drawn position of the cursor depend on the keyboard state.
|
Gtk.TextLayout | |
set_cursor_visible
(Boolean cursor_visible)
:
none
Sets whether the insertion cursor should be shown.
Sets whether the insertion cursor should be shown. Generally, widgets using GtkTextLayout will hide the cursor when the widget does not have the input focus.
|
Gtk.TextLayout | |
set_default_style
(TextAttributes values)
:
none
|
Gtk.TextLayout | |
set_keyboard_direction
(TextDirection keyboard_dir)
:
none
Sets the keyboard direction; this is used as for the bidirectional base direction for the line with the cursor if the line contains only neutral characters.
Sets the keyboard direction; this is used as for the bidirectional base direction for the line with the cursor if the line contains only neutral characters.
|
Gtk.TextLayout | |
set_overwrite_mode
(Boolean overwrite)
:
none
Sets overwrite mode
Sets overwrite mode
|
Gtk.TextLayout | |
Set the preedit string and attributes.
Set the preedit string and attributes. The preedit string is a string showing text that is currently being edited and not yet committed into the buffer.
|
Gtk.TextLayout | |
set_screen_width
(Number width)
:
none
|
Gtk.TextLayout | |
spew
()
:
none
|
Gtk.TextLayout | |
validate
(Number max_pixels)
:
none
Validate regions of a GtkTextLayout.
Validate regions of a GtkTextLayout. The ::changed signal will be emitted for each region validated.
|
Gtk.TextLayout | |
Ensure that a region of a GtkTextLayout is valid.
Ensure that a region of a GtkTextLayout is valid. The ::changed signal will be emitted if any lines are validated.
|
Gtk.TextLayout | |
|
Gtk.TextLayout | |
wrap_loop_end
()
:
none
|
Gtk.TextLayout | |
wrap_loop_start
()
:
none
|
Gtk.TextLayout |
Event | Defined By | |
---|---|---|
|
Gtk.TextLayout | |
|
Gtk.TextLayout | |
invalidated (TextLayout self)
:
none
|
Gtk.TextLayout |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk
Method |
|
Gtk.TextChildAnchor
Method |
register_child
(Widget child, TextLayout layout)
:
none
|
Gtk.TextChildAnchor
Method |
queue_resize
(TextLayout layout)
:
none
|