Class: Gtk::TextView
- Inherits:
-
Object
- Object
- Gtk::TextView
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#accepts_tab ⇒ TrueClass
Returns whether pressing the Tab key inserts a tab characters.
- #accepts_tab=(accepts_tab) ⇒ TrueClass
-
#accepts_tab? ⇒ TrueClass
Accepts-tab.
-
#add_child_at_anchor(child, anchor) ⇒ nil
Adds a child widget in the text buffer, at the given anchor.
-
#add_child_in_window(child, which_window, xpos, ypos) ⇒ nil
Adds a child at fixed coordinates in one of the text widget’s windows.
-
#backward_display_line(iter) ⇒ TrueClass
Moves the given iter backward by one display (wrapped) line.
-
#backward_display_line_start(iter) ⇒ TrueClass
Moves the given iter backward to the next display line start.
-
#bottom_margin ⇒ Integer
The bottom margin for text in the text view.
-
#bottom_margin=(bottom_margin) ⇒ Integer
The bottom margin for text in the text view.
-
#buffer ⇒ Gtk::TextBuffer
Buffer.
- #buffer=(buffer) ⇒ Gtk::TextBuffer
-
#buffer_to_window_coords(win, buffer_x, buffer_y, window_x, window_y) ⇒ nil
Converts coordinate (buffer_x, buffer_y) to coordinates for the window win, and stores the result in (window_x, window_y).
-
#cursor_visible ⇒ TrueClass
Find out whether the cursor should be displayed.
- #cursor_visible=(cursor_visible) ⇒ TrueClass
-
#cursor_visible? ⇒ TrueClass
Cursor-visible.
-
#default_attributes ⇒ Gtk::TextAttributes
Obtains a copy of the default text attributes.
-
#editable ⇒ TrueClass
Returns the default editability of the Gtk::TextView.
- #editable=(editable) ⇒ TrueClass
-
#editable? ⇒ TrueClass
Editable.
-
#forward_display_line(iter) ⇒ TrueClass
Moves the given iter forward by one display (wrapped) line.
-
#forward_display_line_end(iter) ⇒ TrueClass
Moves the given iter forward to the next display line end.
-
#get_border_window_size(type) ⇒ Integer
Gets the width of the specified border window.
-
#get_cursor_locations(iter, strong, weak) ⇒ nil
Given an iter within a text layout, determine the positions of the strong and weak cursors if the insertion point is at that iterator.
-
#get_iter_at_location(iter, x, y) ⇒ TrueClass
Retrieves the iterator at buffer coordinates x and y.
-
#get_iter_at_position(iter, trailing, x, y) ⇒ TrueClass
Retrieves the iterator pointing to the character at buffer coordinates x and y.
-
#get_iter_location(iter, location) ⇒ nil
Gets a rectangle which roughly contains the character at iter.
-
#get_line_at_y(target_iter, y, line_top) ⇒ nil
Gets the Gtk::TextIter at the start of the line containing the coordinate y.
-
#get_line_yrange(iter, y, height) ⇒ nil
Gets the y coordinate of the top of the line containing iter, and the height of the line.
-
#get_visible_rect(visible_rect) ⇒ nil
Fills visible_rect with the currently-visible region of the buffer, in buffer coordinates.
-
#get_window(win) ⇒ Gdk::Window
Retrieves the Gdk::Window corresponding to an area of the text view; possible windows include the overall widget window, child windows on the left, right, top, bottom, and the window that displays the text buffer.
-
#get_window_type(window) ⇒ Gtk::TextWindowType
Usually used to find out which window an event corresponds to.
-
#hadjustment ⇒ Gtk::Adjustment
Gets the horizontal-scrolling Gtk::Adjustment.
-
#im_context_filter_keypress(event) ⇒ TrueClass
Allow the Gtk::TextView input method to internally handle key press and release events.
-
#im_module ⇒ String
Which IM (input method) module should be used for this text_view.
-
#im_module=(im_module) ⇒ String
Which IM (input method) module should be used for this text_view.
-
#indent ⇒ Integer
Indent.
- #indent=(indent) ⇒ Integer
-
#input_hints ⇒ Gtk::InputHints
Additional hints (beyond Gtk::TextView:input-purpose) that allow input methods to fine-tune their behaviour.
-
#input_hints=(input_hints) ⇒ Gtk::InputHints
Additional hints (beyond Gtk::TextView:input-purpose) that allow input methods to fine-tune their behaviour.
-
#input_purpose ⇒ Gtk::InputPurpose
The purpose of this text field.
-
#input_purpose=(input_purpose) ⇒ Gtk::InputPurpose
The purpose of this text field.
-
#justification ⇒ Gtk::Justification
Justification.
- #justification=(justification) ⇒ Gtk::Justification
-
#left_margin ⇒ Integer
The default left margin for text in the text view.
-
#left_margin=(left_margin) ⇒ Integer
The default left margin for text in the text view.
-
#monospace ⇒ TrueClass
Gets the value of the Gtk::TextView:monospace property.
- #monospace=(monospace) ⇒ TrueClass
-
#monospace? ⇒ TrueClass
Monospace.
-
#move_child(child, xpos, ypos) ⇒ nil
Updates the position of a child, as for gtk_text_view_add_child_in_window().
-
#move_mark_onscreen(mark) ⇒ TrueClass
Moves a mark within the buffer so that it’s located within the currently-visible text area.
-
#move_visually(iter, count) ⇒ TrueClass
Move the iterator a given number of characters visually, treating it as the strong cursor position.
-
#new ⇒ Gtk::Widget
Creates a new Gtk::TextView.
-
#new_with_buffer(buffer) ⇒ Gtk::Widget
Creates a new Gtk::TextView widget displaying the buffer buffer.
-
#overwrite ⇒ TrueClass
Returns whether the Gtk::TextView is in overwrite mode or not.
- #overwrite=(overwrite) ⇒ TrueClass
-
#overwrite? ⇒ TrueClass
Overwrite.
-
#pixels_above_lines ⇒ Integer
Pixels-above-lines.
- #pixels_above_lines=(pixels_above_lines) ⇒ Integer
-
#pixels_below_lines ⇒ Integer
Pixels-below-lines.
- #pixels_below_lines=(pixels_below_lines) ⇒ Integer
-
#pixels_inside_wrap ⇒ Integer
Pixels-inside-wrap.
- #pixels_inside_wrap=(pixels_inside_wrap) ⇒ Integer
-
#place_cursor_onscreen ⇒ TrueClass
Moves the cursor to the currently visible region of the buffer, it it isn’t there already.
-
#populate_all=(populate_all) ⇒ TrueClass
If :populate-all is true, the Gtk::TextView::populate-popup signal is also emitted for touch popups.
-
#populate_all? ⇒ TrueClass
If :populate-all is true, the Gtk::TextView::populate-popup signal is also emitted for touch popups.
-
#reset_cursor_blink ⇒ nil
Ensures that the cursor is shown (i.e. not in an ‘off’ blink interval) and resets the time that it will stay blinking (or visible, in case blinking is disabled).
-
#reset_im_context ⇒ nil
Reset the input method context of the text view if needed.
-
#right_margin ⇒ Integer
The default right margin for text in the text view.
-
#right_margin=(right_margin) ⇒ Integer
The default right margin for text in the text view.
-
#scroll_mark_onscreen(mark) ⇒ nil
Scrolls text_view the minimum distance such that mark is contained within the visible area of the widget.
-
#scroll_to_iter(iter, within_margin, use_align, xalign, yalign) ⇒ TrueClass
Scrolls text_view so that iter is on the screen in the position indicated by xalign and yalign.
-
#scroll_to_mark(mark, within_margin, use_align, xalign, yalign) ⇒ nil
Scrolls text_view so that mark is on the screen in the position indicated by xalign and yalign.
-
#set_border_window_size(type, size) ⇒ nil
Sets the width of %GTK_TEXT_WINDOW_LEFT or %GTK_TEXT_WINDOW_RIGHT, or the height of %GTK_TEXT_WINDOW_TOP or %GTK_TEXT_WINDOW_BOTTOM.
-
#starts_display_line(iter) ⇒ TrueClass
Determines whether iter is at the start of a display line.
-
#tabs ⇒ Pango::TabArray
Tabs.
- #tabs=(tabs) ⇒ Pango::TabArray
-
#top_margin ⇒ Integer
The top margin for text in the text view.
-
#top_margin=(top_margin) ⇒ Integer
The top margin for text in the text view.
-
#vadjustment ⇒ Gtk::Adjustment
Gets the vertical-scrolling Gtk::Adjustment.
-
#window_to_buffer_coords(win, window_x, window_y, buffer_x, buffer_y) ⇒ nil
Converts coordinates on the window identified by win to buffer coordinates, storing the result in (buffer_x,buffer_y).
-
#wrap_mode ⇒ Gtk::WrapMode
Wrap-mode.
- #wrap_mode=(wrap_mode) ⇒ Gtk::WrapMode
Instance Method Details
#accepts_tab ⇒ TrueClass
Returns whether pressing the Tab key inserts a tab characters. gtk_text_view_set_accepts_tab().
#accepts_tab=(accepts_tab) ⇒ TrueClass
#accepts_tab? ⇒ TrueClass
Returns accepts-tab.
#add_child_at_anchor(child, anchor) ⇒ nil
Adds a child widget in the text buffer, at the given anchor.
#add_child_in_window(child, which_window, xpos, ypos) ⇒ nil
Adds a child at fixed coordinates in one of the text widget’s windows.
The window must have nonzero size (see gtk_text_view_set_border_window_size()). Note that the child coordinates are given relative to scrolling. When placing a child in #GTK_TEXT_WINDOW_WIDGET, scrolling is irrelevant, the child floats above all scrollable areas. But when placing a child in one of the scrollable windows (border windows or text window) it will move with the scrolling as needed.
#backward_display_line(iter) ⇒ TrueClass
Moves the given iter backward by one display (wrapped) line. A display line is different from a paragraph. Paragraphs are separated by newlines or other paragraph separator characters. Display lines are created by line-wrapping a paragraph. If wrapping is turned off, display lines and paragraphs will be the same. Display lines are divided differently for each view, since they depend on the view’s width; paragraphs are the same in all views, since they depend on the contents of the Gtk::TextBuffer.
#backward_display_line_start(iter) ⇒ TrueClass
Moves the given iter backward to the next display line start. A display line is different from a paragraph. Paragraphs are separated by newlines or other paragraph separator characters. Display lines are created by line-wrapping a paragraph. If wrapping is turned off, display lines and paragraphs will be the same. Display lines are divided differently for each view, since they depend on the view’s width; paragraphs are the same in all views, since they depend on the contents of the Gtk::TextBuffer.
#bottom_margin ⇒ Integer
The bottom margin for text in the text view.
Note that this property is confusingly named. In CSS terms, the value set here is padding, and it is applied in addition to the padding from the theme.
Don’t confuse this property with Gtk::Widget:margin-bottom.
#bottom_margin=(bottom_margin) ⇒ Integer
The bottom margin for text in the text view.
Note that this property is confusingly named. In CSS terms, the value set here is padding, and it is applied in addition to the padding from the theme.
Don’t confuse this property with Gtk::Widget:margin-bottom.
#buffer ⇒ Gtk::TextBuffer
Returns buffer.
#buffer=(buffer) ⇒ Gtk::TextBuffer
#buffer_to_window_coords(win, buffer_x, buffer_y, window_x, window_y) ⇒ nil
Converts coordinate (buffer_x, buffer_y) to coordinates for the window win, and stores the result in (window_x, window_y).
Note that you can’t convert coordinates for a nonexisting window (see gtk_text_view_set_border_window_size()).
#cursor_visible ⇒ TrueClass
Find out whether the cursor should be displayed.
#cursor_visible=(cursor_visible) ⇒ TrueClass
#cursor_visible? ⇒ TrueClass
Returns cursor-visible.
#default_attributes ⇒ Gtk::TextAttributes
Obtains a copy of the default text attributes. These are the attributes used for text unless a tag overrides them. You’d typically pass the default attributes in to gtk_text_iter_get_attributes() in order to get the attributes in effect at a given text position.
The return value is a copy owned by the caller of this function, and should be freed with gtk_text_attributes_unref().
#editable ⇒ TrueClass
Returns the default editability of the Gtk::TextView. Tags in the buffer may override this setting for some ranges of text.
#editable=(editable) ⇒ TrueClass
#editable? ⇒ TrueClass
Returns editable.
#forward_display_line(iter) ⇒ TrueClass
Moves the given iter forward by one display (wrapped) line. A display line is different from a paragraph. Paragraphs are separated by newlines or other paragraph separator characters. Display lines are created by line-wrapping a paragraph. If wrapping is turned off, display lines and paragraphs will be the same. Display lines are divided differently for each view, since they depend on the view’s width; paragraphs are the same in all views, since they depend on the contents of the Gtk::TextBuffer.
#forward_display_line_end(iter) ⇒ TrueClass
Moves the given iter forward to the next display line end. A display line is different from a paragraph. Paragraphs are separated by newlines or other paragraph separator characters. Display lines are created by line-wrapping a paragraph. If wrapping is turned off, display lines and paragraphs will be the same. Display lines are divided differently for each view, since they depend on the view’s width; paragraphs are the same in all views, since they depend on the contents of the Gtk::TextBuffer.
#get_border_window_size(type) ⇒ Integer
Gets the width of the specified border window. See gtk_text_view_set_border_window_size().
#get_cursor_locations(iter, strong, weak) ⇒ nil
Given an iter 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.
If iter is nil, the actual cursor position is used.
Note that if iter happens to be the actual cursor position, and there is currently an IM preedit sequence being entered, the returned locations will be adjusted to account for the preedit cursor’s offset within the preedit sequence.
The rectangle position is in buffer coordinates; use gtk_text_view_buffer_to_window_coords() to convert these coordinates to coordinates for one of the windows in the text view.
#get_iter_at_location(iter, x, y) ⇒ TrueClass
Retrieves the iterator at buffer coordinates x and y. Buffer coordinates are coordinates for the entire buffer, not just the currently-displayed portion. If you have coordinates from an event, you have to convert those to buffer coordinates with gtk_text_view_window_to_buffer_coords().
#get_iter_at_position(iter, trailing, x, y) ⇒ TrueClass
Retrieves the iterator pointing to the character at buffer coordinates x and y. Buffer coordinates are coordinates for the entire buffer, not just the currently-displayed portion. If you have coordinates from an event, you have to convert those to buffer coordinates with gtk_text_view_window_to_buffer_coords().
Note that this is different from gtk_text_view_get_iter_at_location(), which returns cursor locations, i.e. positions between characters.
#get_iter_location(iter, location) ⇒ nil
Gets a rectangle which roughly contains the character at iter. The rectangle position is in buffer coordinates; use gtk_text_view_buffer_to_window_coords() to convert these coordinates to coordinates for one of the windows in the text view.
#get_line_at_y(target_iter, y, line_top) ⇒ nil
Gets the Gtk::TextIter at the start of the line containing the coordinate y. y is in buffer coordinates, convert from window coordinates with gtk_text_view_window_to_buffer_coords(). If non-nil, line_top will be filled with the coordinate of the top edge of the line.
#get_line_yrange(iter, y, height) ⇒ nil
Gets the y coordinate of the top of the line containing iter, and the height of the line. The coordinate is a buffer coordinate; convert to window coordinates with gtk_text_view_buffer_to_window_coords().
#get_visible_rect(visible_rect) ⇒ nil
Fills visible_rect with the currently-visible region of the buffer, in buffer coordinates. Convert to window coordinates with gtk_text_view_buffer_to_window_coords().
#get_window(win) ⇒ Gdk::Window
Retrieves the Gdk::Window corresponding to an area of the text view; possible windows include the overall widget window, child windows on the left, right, top, bottom, and the window that displays the text buffer. Windows are nil and nonexistent if their width or height is 0, and are nonexistent before the widget has been realized.
#get_window_type(window) ⇒ Gtk::TextWindowType
Usually used to find out which window an event corresponds to.
If you connect to an event signal on text_view, this function should be called on ‘event->window` to see which window it was.
#hadjustment ⇒ Gtk::Adjustment
Gets the horizontal-scrolling Gtk::Adjustment.
#im_context_filter_keypress(event) ⇒ TrueClass
Allow the Gtk::TextView input method to internally handle key press and release events. If this function returns true, then no further processing should be done for this key event. See gtk_im_context_filter_keypress().
Note that you are expected to call this function from your handler when overriding key event handling. This is needed in the case when you need to insert your own key handling between the input method and the default key event handling of the Gtk::TextView.
static gboolean
gtk_foo_bar_key_press_event (GtkWidget *widget,
GdkEventKey *event)
{
guint keyval;
gdk_event_get_keyval ((GdkEvent*)event, &keyval);
if (keyval == GDK_KEY_Return || keyval == GDK_KEY_KP_Enter)
{
if (gtk_text_view_im_context_filter_keypress (GTK_TEXT_VIEW (widget), event))
return TRUE;
}
// Do some stuff
return GTK_WIDGET_CLASS (gtk_foo_bar_parent_class)->key_press_event (widget, event);
}
#im_module ⇒ String
Which IM (input method) module should be used for this text_view. See Gtk::IMContext.
Setting this to a non-nil value overrides the system-wide IM module setting. See the GtkSettings Gtk::Settings:gtk-im-module property.
#im_module=(im_module) ⇒ String
Which IM (input method) module should be used for this text_view. See Gtk::IMContext.
Setting this to a non-nil value overrides the system-wide IM module setting. See the GtkSettings Gtk::Settings:gtk-im-module property.
#indent ⇒ Integer
Returns indent.
#indent=(indent) ⇒ Integer
#input_hints ⇒ Gtk::InputHints
Additional hints (beyond Gtk::TextView:input-purpose) that allow input methods to fine-tune their behaviour.
#input_hints=(input_hints) ⇒ Gtk::InputHints
Additional hints (beyond Gtk::TextView:input-purpose) that allow input methods to fine-tune their behaviour.
#input_purpose ⇒ Gtk::InputPurpose
The purpose of this text field.
This property can be used by on-screen keyboards and other input methods to adjust their behaviour.
#input_purpose=(input_purpose) ⇒ Gtk::InputPurpose
The purpose of this text field.
This property can be used by on-screen keyboards and other input methods to adjust their behaviour.
#justification ⇒ Gtk::Justification
Returns justification.
#justification=(justification) ⇒ Gtk::Justification
#left_margin ⇒ Integer
The default left margin for text in the text view. Tags in the buffer may override the default.
Note that this property is confusingly named. In CSS terms, the value set here is padding, and it is applied in addition to the padding from the theme.
Don’t confuse this property with Gtk::Widget:margin-left.
#left_margin=(left_margin) ⇒ Integer
The default left margin for text in the text view. Tags in the buffer may override the default.
Note that this property is confusingly named. In CSS terms, the value set here is padding, and it is applied in addition to the padding from the theme.
Don’t confuse this property with Gtk::Widget:margin-left.
#monospace ⇒ TrueClass
Gets the value of the Gtk::TextView:monospace property.
#monospace=(monospace) ⇒ TrueClass
#monospace? ⇒ TrueClass
Returns monospace.
#move_child(child, xpos, ypos) ⇒ nil
Updates the position of a child, as for gtk_text_view_add_child_in_window().
#move_mark_onscreen(mark) ⇒ TrueClass
Moves a mark within the buffer so that it’s located within the currently-visible text area.
#move_visually(iter, count) ⇒ TrueClass
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 bi-directional 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.
#new ⇒ Gtk::Widget
Creates a new Gtk::TextView. If you don’t call gtk_text_view_set_buffer() before using the text view, an empty default buffer will be created for you. Get the buffer with gtk_text_view_get_buffer(). If you want to specify your own buffer, consider gtk_text_view_new_with_buffer().
#new_with_buffer(buffer) ⇒ Gtk::Widget
Creates a new Gtk::TextView widget displaying the buffer buffer. One buffer can be shared among many widgets. buffer may be nil to create a default buffer, in which case this function is equivalent to gtk_text_view_new(). The text view adds its own reference count to the buffer; it does not take over an existing reference.
#overwrite ⇒ TrueClass
Returns whether the Gtk::TextView is in overwrite mode or not.
#overwrite=(overwrite) ⇒ TrueClass
#overwrite? ⇒ TrueClass
Returns overwrite.
#pixels_above_lines ⇒ Integer
Returns pixels-above-lines.
#pixels_above_lines=(pixels_above_lines) ⇒ Integer
#pixels_below_lines ⇒ Integer
Returns pixels-below-lines.
#pixels_below_lines=(pixels_below_lines) ⇒ Integer
#pixels_inside_wrap ⇒ Integer
Returns pixels-inside-wrap.
#pixels_inside_wrap=(pixels_inside_wrap) ⇒ Integer
#place_cursor_onscreen ⇒ TrueClass
Moves the cursor to the currently visible region of the buffer, it it isn’t there already.
#populate_all=(populate_all) ⇒ TrueClass
If :populate-all is true, the Gtk::TextView::populate-popup signal is also emitted for touch popups.
#populate_all? ⇒ TrueClass
If :populate-all is true, the Gtk::TextView::populate-popup signal is also emitted for touch popups.
#reset_cursor_blink ⇒ nil
Ensures that the cursor is shown (i.e. not in an ‘off’ blink interval) and resets the time that it will stay blinking (or visible, in case blinking is disabled).
This function should be called in response to user input (e.g. from derived classes that override the textview’s Gtk::Widget::key-press-event handler).
#reset_im_context ⇒ nil
Reset the input method context of the text view if needed.
This can be necessary in the case where modifying the buffer would confuse on-going input method behavior.
#right_margin ⇒ Integer
The default right margin for text in the text view. Tags in the buffer may override the default.
Note that this property is confusingly named. In CSS terms, the value set here is padding, and it is applied in addition to the padding from the theme.
Don’t confuse this property with Gtk::Widget:margin-right.
#right_margin=(right_margin) ⇒ Integer
The default right margin for text in the text view. Tags in the buffer may override the default.
Note that this property is confusingly named. In CSS terms, the value set here is padding, and it is applied in addition to the padding from the theme.
Don’t confuse this property with Gtk::Widget:margin-right.
#scroll_mark_onscreen(mark) ⇒ nil
Scrolls text_view the minimum distance such that mark is contained within the visible area of the widget.
#scroll_to_iter(iter, within_margin, use_align, xalign, yalign) ⇒ TrueClass
Scrolls text_view so that iter is on the screen in the position indicated by xalign and yalign. An alignment of 0.0 indicates left or top, 1.0 indicates right or bottom, 0.5 means center. If use_align is false, the text scrolls the minimal distance to get the mark onscreen, possibly not scrolling at all. The effective screen for purposes of this function is reduced by a margin of size within_margin.
Note that this function uses the currently-computed height of the lines in the text buffer. Line heights are computed in an idle handler; so this function may not have the desired effect if it’s called before the height computations. To avoid oddness, consider using gtk_text_view_scroll_to_mark() which saves a point to be scrolled to after line validation.
#scroll_to_mark(mark, within_margin, use_align, xalign, yalign) ⇒ nil
Scrolls text_view so that mark is on the screen in the position indicated by xalign and yalign. An alignment of 0.0 indicates left or top, 1.0 indicates right or bottom, 0.5 means center. If use_align is false, the text scrolls the minimal distance to get the mark onscreen, possibly not scrolling at all. The effective screen for purposes of this function is reduced by a margin of size within_margin.
#set_border_window_size(type, size) ⇒ nil
Sets the width of %GTK_TEXT_WINDOW_LEFT or %GTK_TEXT_WINDOW_RIGHT, or the height of %GTK_TEXT_WINDOW_TOP or %GTK_TEXT_WINDOW_BOTTOM. Automatically destroys the corresponding window if the size is set to 0, and creates the window if the size is set to non-zero. This function can only be used for the “border windows”, and it won’t work with %GTK_TEXT_WINDOW_WIDGET, %GTK_TEXT_WINDOW_TEXT, or %GTK_TEXT_WINDOW_PRIVATE.
#starts_display_line(iter) ⇒ TrueClass
Determines whether iter is at the start of a display line. See gtk_text_view_forward_display_line() for an explanation of display lines vs. paragraphs.
#tabs ⇒ Pango::TabArray
Returns tabs.
#tabs=(tabs) ⇒ Pango::TabArray
#top_margin ⇒ Integer
The top margin for text in the text view.
Note that this property is confusingly named. In CSS terms, the value set here is padding, and it is applied in addition to the padding from the theme.
Don’t confuse this property with Gtk::Widget:margin-top.
#top_margin=(top_margin) ⇒ Integer
The top margin for text in the text view.
Note that this property is confusingly named. In CSS terms, the value set here is padding, and it is applied in addition to the padding from the theme.
Don’t confuse this property with Gtk::Widget:margin-top.
#vadjustment ⇒ Gtk::Adjustment
Gets the vertical-scrolling Gtk::Adjustment.
#window_to_buffer_coords(win, window_x, window_y, buffer_x, buffer_y) ⇒ nil
Converts coordinates on the window identified by win to buffer coordinates, storing the result in (buffer_x,buffer_y).
Note that you can’t convert coordinates for a nonexisting window (see gtk_text_view_set_border_window_size()).
#wrap_mode ⇒ Gtk::WrapMode
Returns wrap-mode.