⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gtktextview.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</table></div></div><hr><div class="refsect2" lang="en"><a name="id3648346"></a><h3><a name="gtk-text-view-move-mark-onscreen"></a>gtk_text_view_move_mark_onscreen ()</h3><a class="indexterm" name="id3648360"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_text_view_move_mark_onscreen    (<a class="link" href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,                                                         <a class="link" href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a> *mark);</pre><p>Moves a mark within the buffer so that it'slocated within the currently-visible text area.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>text_view</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>mark</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the mark moved (wasn't already onscreen)</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3648469"></a><h3><a name="gtk-text-view-place-cursor-onscreen"></a>gtk_text_view_place_cursor_onscreen ()</h3><a class="indexterm" name="id3648483"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_text_view_place_cursor_onscreen (<a class="link" href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);</pre><p>Moves the cursor to the currently visible region of thebuffer, it it isn't there already.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>text_view</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the cursor had to be moved.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3648562"></a><h3><a name="gtk-text-view-get-visible-rect"></a>gtk_text_view_get_visible_rect ()</h3><a class="indexterm" name="id3648576"></a><pre class="programlisting">void                gtk_text_view_get_visible_rect      (<a class="link" href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,                                                         <ahref="/usr/share/gtk-doc/html/gdk/gdk-Points-Rectangles-and-Regions.html#GdkRectangle">GdkRectangle</a> *visible_rect);</pre><p>Fills <em class="parameter"><code>visible_rect</code></em> with the currently-visibleregion of the buffer, in buffer coordinates. Convert to window coordinateswith <a class="link" href="GtkTextView.html#gtk-text-view-buffer-to-window-coords"><code class="function">gtk_text_view_buffer_to_window_coords()</code></a>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>text_view</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>visible_rect</code></em>&#160;:</span></p></td><td> rectangle to fill</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3648676"></a><h3><a name="gtk-text-view-get-iter-location"></a>gtk_text_view_get_iter_location ()</h3><a class="indexterm" name="id3648689"></a><pre class="programlisting">void                gtk_text_view_get_iter_location     (<a class="link" href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,                                                         const <a class="link" href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,                                                         <ahref="/usr/share/gtk-doc/html/gdk/gdk-Points-Rectangles-and-Regions.html#GdkRectangle">GdkRectangle</a> *location);</pre><p>Gets a rectangle which roughly contains the character at <em class="parameter"><code>iter</code></em>.The rectangle position is in buffer coordinates; use<a class="link" href="GtkTextView.html#gtk-text-view-buffer-to-window-coords"><code class="function">gtk_text_view_buffer_to_window_coords()</code></a> to convert thesecoordinates to coordinates for one of the windows in the text view.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>text_view</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></p></td><td> a <a class="link" href="gtk-GtkTextIter.html#GtkTextIter"><span class="type">GtkTextIter</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>location</code></em>&#160;:</span></p></td><td> bounds of the character at <em class="parameter"><code>iter</code></em></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3648825"></a><h3><a name="gtk-text-view-get-line-at-y"></a>gtk_text_view_get_line_at_y ()</h3><a class="indexterm" name="id3648839"></a><pre class="programlisting">void                gtk_text_view_get_line_at_y         (<a class="link" href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,                                                         <a class="link" href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *target_iter,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> y,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> *line_top);</pre><p>Gets the <a class="link" href="gtk-GtkTextIter.html#GtkTextIter"><span class="type">GtkTextIter</span></a> at the start of the line containingthe coordinate <em class="parameter"><code>y</code></em>. <em class="parameter"><code>y</code></em> is in buffer coordinates, convert fromwindow coordinates with <a class="link" href="GtkTextView.html#gtk-text-view-window-to-buffer-coords"><code class="function">gtk_text_view_window_to_buffer_coords()</code></a>.If non-<ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, <em class="parameter"><code>line_top</code></em> will be filled with the coordinate of the topedge of the line.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>text_view</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>target_iter</code></em>&#160;:</span></p></td><td> a <a class="link" href="gtk-GtkTextIter.html#GtkTextIter"><span class="type">GtkTextIter</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></p></td><td> a y coordinate</td></tr><tr><td><p><span class="term"><em class="parameter"><code>line_top</code></em>&#160;:</span></p></td><td> return location for top coordinate of the line</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3649019"></a><h3><a name="gtk-text-view-get-line-yrange"></a>gtk_text_view_get_line_yrange ()</h3><a class="indexterm" name="id3649032"></a><pre class="programlisting">void                gtk_text_view_get_line_yrange       (<a class="link" href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,                                                         const <a class="link" href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> *y,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> *height);</pre><p>Gets the y coordinate of the top of the line containing <em class="parameter"><code>iter</code></em>,and the height of the line. The coordinate is a buffer coordinate;convert to window coordinates with <a cl

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -