Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > e3918135d52936bad0ecc8654eedea12 > files > 346

Falcon-doc-0.9.6.8-1.fc15.noarch.rpm

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" >
<head><meta content="text/html;charset=&amp;quot;utf-8&amp;quot;" http-equiv="Content-type"/><link href="faldoc.css" rel="stylesheet" type="text/css"/><title> - Class GtkTextView</title></head><body class="faldoc"><ul class="navi_top"><li class="top"><a href="index.html">Top: Table of contents</a></li>
         <li class="up"><a href="gtk.html">Up: The Falcon GTK Binding module</a></li>
         <li class="prev"><a href="gtk_GtkTextTagTable.html">Previous: Class GtkTextTagTable</a></li>
         <li class="next"><a href="gtk_GtkToggleAction.html">Next: Class GtkToggleAction</a></li>
         <li class="clear"></li>
         </ul><div id="page_body"><h1><span class="toc_number">10.119</span>Class GtkTextView</h1><p class="brief">Widget that displays a GtkTextBuffer </p>
         <pre class="prototype">Class GtkTextView</pre>
         <p>You may wish to begin by reading the text widget conceptual overview which gives an overview of all the objects and data types related to the text widget and how they work together. </p>
<table class="members">
         <tbody><tr class="member_type"><td class="member_type" colspan="2">Methods</td></tr>
               <tr><td><a href="#add_child_in_window">add_child_in_window</a></td><td>Adds a child at fixed coordinates in one of the text widget's windows. </td></tr>
               <tr><td><a href="#backward_display_line">backward_display_line</a></td><td>Moves the given iter backward by one display (wrapped) line. </td></tr>
               <tr><td><a href="#backward_display_line_start">backward_display_line_start</a></td><td>Moves the given iter backward to the next display line start. </td></tr>
               <tr><td><a href="#buffer_to_window_coords">buffer_to_window_coords</a></td><td>Converts coordinate (buffer_x, buffer_y) to coordinates for the window win, and stores the result in (window_x, window_y). </td></tr>
               <tr><td><a href="#forward_display_line">forward_display_line</a></td><td>Moves the given iter forward by one display (wrapped) line. </td></tr>
               <tr><td><a href="#forward_display_line_end">forward_display_line_end</a></td><td>Moves the given iter forward to the next display line end. </td></tr>
               <tr><td><a href="#get_accepts_tab">get_accepts_tab</a></td><td>Returns whether pressing the Tab key inserts a tab characters. </td></tr>
               <tr><td><a href="#get_border_window_size">get_border_window_size</a></td><td>Gets the width of the specified border window. </td></tr>
               <tr><td><a href="#get_buffer">get_buffer</a></td><td>Returns the GtkTextBuffer being displayed by this text view. </td></tr>
               <tr><td><a href="#get_cursor_visible">get_cursor_visible</a></td><td>Find out whether the cursor is being displayed. </td></tr>
               <tr><td><a href="#get_editable">get_editable</a></td><td>Returns the default editability of the GtkTextView. </td></tr>
               <tr><td><a href="#get_indent">get_indent</a></td><td>Gets the default indentation of paragraphs in text_view. </td></tr>
               <tr><td><a href="#get_iter_at_location">get_iter_at_location</a></td><td>Retrieves the iterator at buffer coordinates x and y. </td></tr>
               <tr><td><a href="#get_iter_at_position">get_iter_at_position</a></td><td>Retrieves the iterator pointing to the character at buffer coordinates x and y. </td></tr>
               <tr><td><a href="#get_justification">get_justification</a></td><td>Gets the default justification of paragraphs in text_view. </td></tr>
               <tr><td><a href="#get_left_margin">get_left_margin</a></td><td>Gets the default left margin size of paragraphs in the text_view. </td></tr>
               <tr><td><a href="#get_line_at_y">get_line_at_y</a></td><td>Gets the GtkTextIter at the start of the line containing the coordinate y. </td></tr>
               <tr><td><a href="#get_line_yrange">get_line_yrange</a></td><td>Gets the y coordinate of the top of the line containing iter, and the height of the line. </td></tr>
               <tr><td><a href="#get_overwrite">get_overwrite</a></td><td>Returns whether the GtkTextView is in overwrite mode or not. </td></tr>
               <tr><td><a href="#get_pixels_above_lines">get_pixels_above_lines</a></td><td>Gets the default number of pixels to put above paragraphs. </td></tr>
               <tr><td><a href="#get_pixels_below_lines">get_pixels_below_lines</a></td><td>Gets the value set by set_pixels_below_lines(). </td></tr>
               <tr><td><a href="#get_pixels_inside_wrap">get_pixels_inside_wrap</a></td><td>Gets the value set by set_pixels_inside_wrap(). </td></tr>
               <tr><td><a href="#get_right_margin">get_right_margin</a></td><td>Sets the default right margin for text in the text view. </td></tr>
               <tr><td><a href="#get_wrap_mode">get_wrap_mode</a></td><td>Gets the line wrapping for the view. </td></tr>
               <tr><td><a href="#move_child">move_child</a></td><td>Updates the position of a child, as for add_child_in_window(). </td></tr>
               <tr><td><a href="#move_mark_onscreen">move_mark_onscreen</a></td><td>Moves a mark within the buffer so that it's located within the currently-visible text area. </td></tr>
               <tr><td><a href="#move_visually">move_visually</a></td><td>Move the iterator a given number of characters visually, treating it as the strong cursor position. </td></tr>
               <tr><td><a href="#new_with_buffer">new_with_buffer</a></td><td>Creates a new GtkTextView widget displaying the buffer buffer. </td></tr>
               <tr><td><a href="#place_cursor_onscreen">place_cursor_onscreen</a></td><td>Moves the cursor to the currently visible region of the buffer, it it isn't there already. </td></tr>
               <tr><td><a href="#scroll_mark_onscreen">scroll_mark_onscreen</a></td><td>Scrolls text_view the minimum distance such that mark is contained within the visible area of the widget. </td></tr>
               <tr><td><a href="#scroll_to_iter">scroll_to_iter</a></td><td>Scrolls text_view so that iter is on the screen in the position indicated by xalign and yalign. </td></tr>
               <tr><td><a href="#scroll_to_mark">scroll_to_mark</a></td><td>Scrolls text_view so that mark is on the screen in the position indicated by xalign and yalign. </td></tr>
               <tr><td><a href="#set_accepts_tab">set_accepts_tab</a></td><td>Sets the behavior of the text widget when the Tab key is pressed. </td></tr>
               <tr><td><a href="#set_border_window_size">set_border_window_size</a></td><td>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. </td></tr>
               <tr><td><a href="#set_buffer">set_buffer</a></td><td>Sets buffer as the buffer being displayed by text_view. </td></tr>
               <tr><td><a href="#set_cursor_visible">set_cursor_visible</a></td><td>Toggles whether the insertion point is displayed. </td></tr>
               <tr><td><a href="#set_editable">set_editable</a></td><td>Sets the default editability of the GtkTextView. </td></tr>
               <tr><td><a href="#set_indent">set_indent</a></td><td>Sets the default indentation for paragraphs in text_view. </td></tr>
               <tr><td><a href="#set_justification">set_justification</a></td><td>Sets the default justification of text in text_view. </td></tr>
               <tr><td><a href="#set_left_margin">set_left_margin</a></td><td>Sets the default left margin for text in text_view. </td></tr>
               <tr><td><a href="#set_overwrite">set_overwrite</a></td><td>Changes the GtkTextView overwrite mode. </td></tr>
               <tr><td><a href="#set_pixels_above_lines">set_pixels_above_lines</a></td><td>Sets the default number of blank pixels above paragraphs in text_view. </td></tr>
               <tr><td><a href="#set_pixels_below_lines">set_pixels_below_lines</a></td><td>Sets the default number of pixels of blank space to put below paragraphs in text_view. </td></tr>
               <tr><td><a href="#set_pixels_inside_wrap">set_pixels_inside_wrap</a></td><td>Sets the default number of pixels of blank space to leave between display/wrapped lines within a paragraph. </td></tr>
               <tr><td><a href="#set_right_margin">set_right_margin</a></td><td>Sets the default right margin for text in the text view. </td></tr>
               <tr><td><a href="#set_wrap_mode">set_wrap_mode</a></td><td>Sets the line wrapping for the view. </td></tr>
               <tr><td><a href="#starts_display_line">starts_display_line</a></td><td>Determines whether iter is at the start of a display line. </td></tr>
               <tr><td><a href="#window_to_buffer_coords">window_to_buffer_coords</a></td><td>Converts coordinates on the window identified by win to buffer coordinates, storing the result in (buffer_x,buffer_y). </td></tr>
               </tbody>
            </table>
         <h2>Methods</h2><h3><a name="add_child_in_window">add_child_in_window</a></h3><p class="brief">Adds a child at fixed coordinates in one of the text widget's windows. </p>
         <pre class="prototype">GtkTextView.add_child_in_window( child, which_window, xpos, ypos )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">child</td><td class="content"> a GtkWidget </td></tr>
               <tr class="param"><td class="name">which_window</td><td class="content"> (GtkTextWindowType) which window the child should appear in </td></tr>
               <tr class="param"><td class="name">xpos</td><td class="content"> X position of child in window coordinates </td></tr>
               <tr class="param"><td class="name">ypos</td><td class="content"> Y position of child in window coordinates </td></tr>
               </tbody>
            </table>
         <p>The window must have nonzero size (see set_border_window_size()). Note that the child coordinates are given relative to the GdkWindow in question, and that these coordinates have no sane relationship 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), you'll need to compute the child's correct position in buffer coordinates any time scrolling occurs or buffer changes occur, and then call gtk_text_view_move_child() to update the child's position. Unfortunately there's no good way to detect that scrolling has occurred, using the current API; a possible hack would be to update all child positions when the scroll adjustments change or the text buffer changes. See bug 64518 on bugzilla.gnome.org for status of fixing this issue. </p>
<h3><a name="backward_display_line">backward_display_line</a></h3><p class="brief">Moves the given iter backward by one display (wrapped) line. </p>
         <pre class="prototype">GtkTextView.backward_display_line( iter )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">iter</td><td class="content"> a GtkTextIter </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">true if iter was moved and is not on the end iterator </td></tr>
               </tbody>
            </table>
         <p>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 GtkTextBuffer. </p>
<h3><a name="backward_display_line_start">backward_display_line_start</a></h3><p class="brief">Moves the given iter backward to the next display line start. </p>
         <pre class="prototype">GtkTextView.backward_display_line_start( iter )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">iter</td><td class="content"> a GtkTextIter </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">true if iter was moved and is not on the end iterator </td></tr>
               </tbody>
            </table>
         <p>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 GtkTextBuffer. </p>
<h3><a name="buffer_to_window_coords">buffer_to_window_coords</a></h3><p class="brief">Converts coordinate (buffer_x, buffer_y) to coordinates for the window win, and stores the result in (window_x, window_y). </p>
         <pre class="prototype">GtkTextView.buffer_to_window_coords( win, buffer_x, buffer_y )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">win</td><td class="content"> a GtkTextWindowType except GTK_TEXT_WINDOW_PRIVATE </td></tr>
               <tr class="param"><td class="name">buffer_x</td><td class="content"> buffer x coordinate </td></tr>
               <tr class="param"><td class="name">buffer_y</td><td class="content"> buffer y coordinate </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">[ window_x, window_y ] </td></tr>
               </tbody>
            </table>
         <p>Note that you can't convert coordinates for a nonexisting window (see set_border_window_size()). </p>
<h3><a name="forward_display_line">forward_display_line</a></h3><p class="brief">Moves the given iter forward by one display (wrapped) line. </p>
         <pre class="prototype">GtkTextView.forward_display_line( iter )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">iter</td><td class="content"> a GtkTextIter </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">true if iter was moved and is not on the end iterator </td></tr>
               </tbody>
            </table>
         <p>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 GtkTextBuffer. </p>
<h3><a name="forward_display_line_end">forward_display_line_end</a></h3><p class="brief">Moves the given iter forward to the next display line end. </p>
         <pre class="prototype">GtkTextView.forward_display_line_end( iter )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">iter</td><td class="content"> a GtkTextIter </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">true if iter was moved and is not on the end iterator </td></tr>
               </tbody>
            </table>
         <p>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 GtkTextBuffer. </p>
<h3><a name="get_accepts_tab">get_accepts_tab</a></h3><p class="brief">Returns whether pressing the Tab key inserts a tab characters. </p>
         <pre class="prototype">GtkTextView.get_accepts_tab()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">true if pressing the Tab key inserts a tab character, false if pressing the Tab key moves the keyboard focus. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_border_window_size">get_border_window_size</a></h3><p class="brief">Gets the width of the specified border window. </p>
         <pre class="prototype">GtkTextView.get_border_window_size( type )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">type</td><td class="content"> (GtkTextWindowType) window to return size from </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">width of window </td></tr>
               </tbody>
            </table>
         <p>See set_border_window_size(). </p>
<h3><a name="get_buffer">get_buffer</a></h3><p class="brief">Returns the GtkTextBuffer being displayed by this text view. </p>
         <pre class="prototype">GtkTextView.get_buffer()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">a GtkTextBuffer. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_cursor_visible">get_cursor_visible</a></h3><p class="brief">Find out whether the cursor is being displayed. </p>
         <pre class="prototype">GtkTextView.get_cursor_visible()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">whether the insertion mark is visible </td></tr>
               </tbody>
            </table>
         <h3><a name="get_editable">get_editable</a></h3><p class="brief">Returns the default editability of the GtkTextView. </p>
         <pre class="prototype">GtkTextView.get_editable()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">whether text is editable by default </td></tr>
               </tbody>
            </table>
         <p>Tags in the buffer may override this setting for some ranges of text. </p>
<h3><a name="get_indent">get_indent</a></h3><p class="brief">Gets the default indentation of paragraphs in text_view. </p>
         <pre class="prototype">GtkTextView.get_indent()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">number of pixels of indentation$ </td></tr>
               </tbody>
            </table>
         <p>Tags in the view's buffer may override the default. The indentation may be negative. </p>
<h3><a name="get_iter_at_location">get_iter_at_location</a></h3><p class="brief">Retrieves the iterator at buffer coordinates x and y. </p>
         <pre class="prototype">GtkTextView.get_iter_at_location( x, y )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">x</td><td class="content"> x position, in buffer coordinates </td></tr>
               <tr class="param"><td class="name">y</td><td class="content"> y position, in buffer coordinates </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">a GtkTextIter </td></tr>
               </tbody>
            </table>
         <p>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 window_to_buffer_coords(). </p>
<h3><a name="get_iter_at_position">get_iter_at_position</a></h3><p class="brief">Retrieves the iterator pointing to the character at buffer coordinates x and y. </p>
         <pre class="prototype">GtkTextView.get_iter_at_position( x, y )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">x</td><td class="content"> x position, in buffer coordinates </td></tr>
               <tr class="param"><td class="name">y</td><td class="content"> y position, in buffer coordinates </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">[ GtkTextIter, trailing ]. trailing is an integer indicating where in the grapheme the user clicked. It will either be zero, or the number of characters in the grapheme. 0 represents the trailing edge of the grapheme. </td></tr>
               </tbody>
            </table>
         <p>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 window_to_buffer_coords(). </p>
<p>Note that this is different from get_iter_at_location(), which returns cursor locations, i.e. positions between characters. </p>
<h3><a name="get_justification">get_justification</a></h3><p class="brief">Gets the default justification of paragraphs in text_view. </p>
         <pre class="prototype">GtkTextView.get_justification()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">default justification </td></tr>
               </tbody>
            </table>
         <p>Tags in the buffer may override the default. </p>
<h3><a name="get_left_margin">get_left_margin</a></h3><p class="brief">Gets the default left margin size of paragraphs in the text_view. </p>
         <pre class="prototype">GtkTextView.get_left_margin()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">left margin in pixels Tags in the buffer may override the default. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_line_at_y">get_line_at_y</a></h3><p class="brief">Gets the GtkTextIter at the start of the line containing the coordinate y. </p>
         <pre class="prototype">GtkTextView.get_line_at_y( target_iter, y )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">target_iter</td><td class="content"> a GtkTextIter </td></tr>
               <tr class="param"><td class="name">y</td><td class="content"> a y coordinate (integer) </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">top coordinate of the line </td></tr>
               </tbody>
            </table>
         <p>y is in buffer coordinates, convert from window coordinates with gtk_text_view_window_to_buffer_coords(). If non-NULL, line_top will be filled with the coordinate of the top edge of the line. </p>
<h3><a name="get_line_yrange">get_line_yrange</a></h3><p class="brief">Gets the y coordinate of the top of the line containing iter, and the height of the line. </p>
         <pre class="prototype">GtkTextView.get_line_yrange( iter )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">iter</td><td class="content"> a GtkTextIter </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">[ y coordinate, height ] </td></tr>
               </tbody>
            </table>
         <p>The coordinate is a buffer coordinate; convert to window coordinates with buffer_to_window_coords(). </p>
<h3><a name="get_overwrite">get_overwrite</a></h3><p class="brief">Returns whether the GtkTextView is in overwrite mode or not. </p>
         <pre class="prototype">GtkTextView.get_overwrite()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">whether text_view is in overwrite mode or not. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_pixels_above_lines">get_pixels_above_lines</a></h3><p class="brief">Gets the default number of pixels to put above paragraphs. </p>
         <pre class="prototype">GtkTextView.get_pixels_above_lines()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">default number of pixels above paragraphs </td></tr>
               </tbody>
            </table>
         <h3><a name="get_pixels_below_lines">get_pixels_below_lines</a></h3><p class="brief">Gets the value set by set_pixels_below_lines(). </p>
         <pre class="prototype">GtkTextView.get_pixels_below_lines()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">default number of blank pixels below paragraphs </td></tr>
               </tbody>
            </table>
         <h3><a name="get_pixels_inside_wrap">get_pixels_inside_wrap</a></h3><p class="brief">Gets the value set by set_pixels_inside_wrap(). </p>
         <pre class="prototype">GtkTextView.get_pixels_inside_wrap()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">default number of pixels of blank space between wrapped lines </td></tr>
               </tbody>
            </table>
         <h3><a name="get_right_margin">get_right_margin</a></h3><p class="brief">Sets the default right margin for text in the text view. </p>
         <pre class="prototype">GtkTextView.get_right_margin()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">right margin in pixels Tags in the buffer may override the default. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_wrap_mode">get_wrap_mode</a></h3><p class="brief">Gets the line wrapping for the view. </p>
         <pre class="prototype">GtkTextView.get_wrap_mode()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">the line wrap setting </td></tr>
               </tbody>
            </table>
         <h3><a name="move_child">move_child</a></h3><p class="brief">Updates the position of a child, as for add_child_in_window(). </p>
         <pre class="prototype">GtkTextView.move_child( child, xpos, ypos )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">child</td><td class="content"> child widget already added to the text view </td></tr>
               <tr class="param"><td class="name">xpos</td><td class="content"> new X position in window coordinates </td></tr>
               <tr class="param"><td class="name">ypos</td><td class="content"> new Y position in window coordinates </td></tr>
               </tbody>
            </table>
         <h3><a name="move_mark_onscreen">move_mark_onscreen</a></h3><p class="brief">Moves a mark within the buffer so that it's located within the currently-visible text area. </p>
         <pre class="prototype">GtkTextView.move_mark_onscreen( mark )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">mark</td><td class="content"> a GtkTextMark </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">true if the mark moved (wasn't already onscreen) </td></tr>
               </tbody>
            </table>
         <h3><a name="move_visually">move_visually</a></h3><p class="brief">Move the iterator a given number of characters visually, treating it as the strong cursor position. </p>
         <pre class="prototype">GtkTextView.move_visually( iter, count )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">iter</td><td class="content"> a GtkTextIter </td></tr>
               <tr class="param"><td class="name">count</td><td class="content"> number of characters to move (negative moves left, positive moves right) </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">true if iter moved and is not on the end iterator </td></tr>
               </tbody>
            </table>
         <p>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. </p>
<p>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. </p>
<h3><a name="new_with_buffer">new_with_buffer</a></h3><p class="brief">Creates a new GtkTextView widget displaying the buffer buffer. </p>
         <pre class="prototype">GtkTextView.new_with_buffer( buffer )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">buffer</td><td class="content"> a GtkTextBuffer (or nil) </td></tr>
               </tbody>
            </table>
         <p>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. </p>
<h3><a name="place_cursor_onscreen">place_cursor_onscreen</a></h3><p class="brief">Moves the cursor to the currently visible region of the buffer, it it isn't there already. </p>
         <pre class="prototype">GtkTextView.place_cursor_onscreen()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">true if the cursor had to be moved. </td></tr>
               </tbody>
            </table>
         <h3><a name="scroll_mark_onscreen">scroll_mark_onscreen</a></h3><p class="brief">Scrolls text_view the minimum distance such that mark is contained within the visible area of the widget. </p>
         <pre class="prototype">GtkTextView.scroll_mark_onscreen( mark )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">mark</td><td class="content"> a mark in the buffer </td></tr>
               </tbody>
            </table>
         <h3><a name="scroll_to_iter">scroll_to_iter</a></h3><p class="brief">Scrolls text_view so that iter is on the screen in the position indicated by xalign and yalign. </p>
         <pre class="prototype">GtkTextView.scroll_to_iter( iter, within_margin, use_align, xalign, yalign )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">iter</td><td class="content"> a GtkTextIter </td></tr>
               <tr class="param"><td class="name">within_margin</td><td class="content"> margin as a [0.0,0.5] fraction of screen size </td></tr>
               <tr class="param"><td class="name">use_align</td><td class="content"> (boolean) whether to use alignment arguments (if false, just get the mark onscreen) </td></tr>
               <tr class="param"><td class="name">xalign</td><td class="content"> horizontal alignment of mark within visible area </td></tr>
               <tr class="param"><td class="name">yalign</td><td class="content"> vertical alignment of mark within visible area </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">true if scrolling occurred </td></tr>
               </tbody>
            </table>
         <p>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. </p>
<p>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 scroll_to_mark() which saves a point to be scrolled to after line validation. </p>
<h3><a name="scroll_to_mark">scroll_to_mark</a></h3><p class="brief">Scrolls text_view so that mark is on the screen in the position indicated by xalign and yalign. </p>
         <pre class="prototype">GtkTextView.scroll_to_mark( mark, within_margin, use_align, xalign, yalign )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">mark</td><td class="content"> a GtkTextMark </td></tr>
               <tr class="param"><td class="name">within_margin</td><td class="content"> margin as a [0.0,0.5] fraction of screen size </td></tr>
               <tr class="param"><td class="name">use_align</td><td class="content"> (boolean) whether to use alignment arguments (if false, just get the mark onscreen) </td></tr>
               <tr class="param"><td class="name">xalign</td><td class="content"> horizontal alignment of mark within visible area </td></tr>
               <tr class="param"><td class="name">yalign</td><td class="content"> vertical alignment of mark within visible area </td></tr>
               </tbody>
            </table>
         <p>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. </p>
<h3><a name="set_accepts_tab">set_accepts_tab</a></h3><p class="brief">Sets the behavior of the text widget when the Tab key is pressed. </p>
         <pre class="prototype">GtkTextView.set_accepts_tab( accept_tag )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">accept_tag</td><td class="content"> true if pressing the Tab key should insert a tab character, false, if pressing the Tab key should move the keyboard focus. If accepts_tab is true, a tab character is inserted. If accepts_tab is false the keyboard focus is moved to the next widget in the focus chain. </td></tr>
               </tbody>
            </table>
         <h3><a name="set_border_window_size">set_border_window_size</a></h3><p class="brief">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. </p>
         <pre class="prototype">GtkTextView.set_border_window_size( type, size )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">type</td><td class="content"> (GtkTextWindowType) window to affect </td></tr>
               <tr class="param"><td class="name">size</td><td class="content"> width or height of the window </td></tr>
               </tbody>
            </table>
         <p>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," it doesn't work with GTK_TEXT_WINDOW_WIDGET, GTK_TEXT_WINDOW_TEXT, or GTK_TEXT_WINDOW_PRIVATE. </p>
<h3><a name="set_buffer">set_buffer</a></h3><p class="brief">Sets buffer as the buffer being displayed by text_view. </p>
         <pre class="prototype">GtkTextView.set_buffer( buffer )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">buffer</td><td class="content"> a GtkTextBuffer (or nil) </td></tr>
               </tbody>
            </table>
         <h3><a name="set_cursor_visible">set_cursor_visible</a></h3><p class="brief">Toggles whether the insertion point is displayed. </p>
         <pre class="prototype">GtkTextView.set_cursor_visible( setting )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">setting</td><td class="content"> whether to show the insertion cursor </td></tr>
               </tbody>
            </table>
         <p>A buffer with no editable text probably shouldn't have a visible cursor, so you may want to turn the cursor off. </p>
<h3><a name="set_editable">set_editable</a></h3><p class="brief">Sets the default editability of the GtkTextView. </p>
         <pre class="prototype">GtkTextView.set_editable( setting )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">setting</td><td class="content"> (boolean) whether it's editable You can override this default setting with tags in the buffer, using the "editable" attribute of tags. </td></tr>
               </tbody>
            </table>
         <h3><a name="set_indent">set_indent</a></h3><p class="brief">Sets the default indentation for paragraphs in text_view. </p>
         <pre class="prototype">GtkTextView.set_indent( indent )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">indent</td><td class="content"> indentation in pixels Tags in the buffer may override the default. </td></tr>
               </tbody>
            </table>
         <h3><a name="set_justification">set_justification</a></h3><p class="brief">Sets the default justification of text in text_view. </p>
         <pre class="prototype">GtkTextView.set_justification( justification )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">justification</td><td class="content"> (GtkJustification) </td></tr>
               </tbody>
            </table>
         <p>Tags in the view's buffer may override the default. </p>
<h3><a name="set_left_margin">set_left_margin</a></h3><p class="brief">Sets the default left margin for text in text_view. </p>
         <pre class="prototype">GtkTextView.set_left_margin( left_margin )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">left_margin</td><td class="content"> left margin in pixels </td></tr>
               </tbody>
            </table>
         <p>Tags in the buffer may override the default. </p>
<h3><a name="set_overwrite">set_overwrite</a></h3><p class="brief">Changes the GtkTextView overwrite mode. </p>
         <pre class="prototype">GtkTextView.set_overwrite( true )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">true</td><td class="content"> to turn on overwrite mode, false to turn it off </td></tr>
               </tbody>
            </table>
         <h3><a name="set_pixels_above_lines">set_pixels_above_lines</a></h3><p class="brief">Sets the default number of blank pixels above paragraphs in text_view. </p>
         <pre class="prototype">GtkTextView.set_pixels_above_lines( pixels_above_lines )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">pixels_above_lines</td><td class="content"> pixels above paragraphs </td></tr>
               </tbody>
            </table>
         <p>Tags in the buffer for text_view may override the defaults. </p>
<h3><a name="set_pixels_below_lines">set_pixels_below_lines</a></h3><p class="brief">Sets the default number of pixels of blank space to put below paragraphs in text_view. </p>
         <pre class="prototype">GtkTextView.set_pixels_below_lines( pixels_below_lines )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">pixels_below_lines</td><td class="content"> pixels below paragraphs </td></tr>
               </tbody>
            </table>
         <p>May be overridden by tags applied to text_view's buffer. </p>
<h3><a name="set_pixels_inside_wrap">set_pixels_inside_wrap</a></h3><p class="brief">Sets the default number of pixels of blank space to leave between display/wrapped lines within a paragraph. </p>
         <pre class="prototype">GtkTextView.set_pixels_inside_wrap( pixels_inside_wrap )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">pixels_inside_wrap</td><td class="content"> default number of pixels between wrapped lines </td></tr>
               </tbody>
            </table>
         <p>May be overridden by tags in text_view's buffer. </p>
<h3><a name="set_right_margin">set_right_margin</a></h3><p class="brief">Sets the default right margin for text in the text view. </p>
         <pre class="prototype">GtkTextView.set_right_margin( right_margin )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">right_margin</td><td class="content"> right margin in pixels </td></tr>
               </tbody>
            </table>
         <p>Tags in the buffer may override the default. </p>
<h3><a name="set_wrap_mode">set_wrap_mode</a></h3><p class="brief">Sets the line wrapping for the view. </p>
         <pre class="prototype">GtkTextView.set_wrap_mode( wrap_mode )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">wrap_mode</td><td class="content"> a GtkWrapMode </td></tr>
               </tbody>
            </table>
         <h3><a name="starts_display_line">starts_display_line</a></h3><p class="brief">Determines whether iter is at the start of a display line. </p>
         <pre class="prototype">GtkTextView.starts_display_line( iter )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">iter</td><td class="content"> a GtkTextIter </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">true if iter begins a wrapped line </td></tr>
               </tbody>
            </table>
         <p>See gtk_text_view_forward_display_line() for an explanation of display lines vs. paragraphs. </p>
<h3><a name="window_to_buffer_coords">window_to_buffer_coords</a></h3><p class="brief">Converts coordinates on the window identified by win to buffer coordinates, storing the result in (buffer_x,buffer_y). </p>
         <pre class="prototype">GtkTextView.window_to_buffer_coords( win, window_x, window_y )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">win</td><td class="content"> a GtkTextWindowType except GTK_TEXT_WINDOW_PRIVATE </td></tr>
               <tr class="param"><td class="name">window_x</td><td class="content"> window x coordinate </td></tr>
               <tr class="param"><td class="name">window_y</td><td class="content"> window y coordinate </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">[ buffer_x, buffer_y ] </td></tr>
               </tbody>
            </table>
         <p>Note that you can't convert coordinates for a nonexisting window (see set_border_window_size()). </p>
</div><ul class="navi_bottom"><li class="top"><a href="index.html">Top: Table of contents</a></li>
         <li class="up"><a href="gtk.html">Up: The Falcon GTK Binding module</a></li>
         <li class="prev"><a href="gtk_GtkTextTagTable.html">Previous: Class GtkTextTagTable</a></li>
         <li class="next"><a href="gtk_GtkToggleAction.html">Next: Class GtkToggleAction</a></li>
         <li class="clear"></li>
         </ul><div class="signature">Made with <a href="faldoc 3.0">http://www.falconpl.org</a></div></body></html>