1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>gtkmm: Gtk::TextMark Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespaceGtk.html">Gtk</a>::<a class="el" href="classGtk_1_1TextMark.html">TextMark</a>
</div>
</div>
<div class="contents">
<h1>Gtk::TextMark Class Reference<br/>
<small>
[<a class="el" href="group__TextView.html">TextView Classes</a>]</small>
</h1><!-- doxytag: class="Gtk::TextMark" --><!-- doxytag: inherits="Glib::Object" -->
<p>Typedefed as <a class="el" href="classGtk_1_1TextBuffer.html#ae8dd977bbf98a58d400f880ed30a946e">Gtk::TextBuffer::Mark</a>. <a href="#_details">More...</a></p>
<p>Inherits <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html">Glib::Object</a>.</p>
<div class="dynheader">
Collaboration diagram for Gtk::TextMark:</div>
<div class="dynsection">
<div class="center"><img src="classGtk_1_1TextMark__coll__graph.png" border="0" usemap="#Gtk_1_1TextMark_coll__map" alt="Collaboration graph"/></div>
<map name="Gtk_1_1TextMark_coll__map" id="Gtk_1_1TextMark_coll__map">
<area shape="rect" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="20,160,111,189"/><area shape="rect" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,83,125,112"/><area shape="rect" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="12,5,119,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<p><a href="classGtk_1_1TextMark-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TextMark.html#a57eee14b77021e8df4664a15a28db58c">~TextMark</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GtkTextMark* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TextMark.html#a2375cdcf56f135b5caeb1d335c078801">gobj</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a2375cdcf56f135b5caeb1d335c078801"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const GtkTextMark* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TextMark.html#aab9399f7ecc8539ccf11191cc64a885b">gobj</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#aab9399f7ecc8539ccf11191cc64a885b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GtkTextMark* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TextMark.html#ad69a5cb3437143cee49ce6dbb6f9d92b">gobj_copy</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#ad69a5cb3437143cee49ce6dbb6f9d92b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TextMark.html#a81500d6abd3ae31baf1494476b304ed9">set_visible</a> (bool setting=true)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the visibility of <em>mark</em>; the insertion point is normally visible, i.e. you can see it as a vertical bar. <a href="#a81500d6abd3ae31baf1494476b304ed9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TextMark.html#a82ac4758d758dce5e9207f97024c7b05">get_visible</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns <code>true</code> if the mark is visible (i.e. a cursor is displayed for it). <a href="#a82ac4758d758dce5e9207f97024c7b05"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TextMark.html#aa00c93df844bcb94515c13e12d01ea14">get_name</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the mark name; returns <code>0</code> for anonymous marks. <a href="#aa00c93df844bcb94515c13e12d01ea14"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TextMark.html#aec24e44776091f4b8ae323fabdb536e9">get_deleted</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns <code>true</code> if the mark has been removed from its buffer with <a class="el" href="classGtk_1_1TextBuffer.html#a1582cb666cbe6c857f6f742557e19295" title="Deletes mark, so that it's no longer located anywhere in the buffer.">Gtk::TextBuffer::delete_mark()</a>. <a href="#aec24e44776091f4b8ae323fabdb536e9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1TextBuffer.html">TextBuffer</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TextMark.html#a2d355fbee36a734b25086ab7ff724f95">get_buffer</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the buffer this mark is located inside, or <code>0</code> if the mark is deleted. <a href="#a2d355fbee36a734b25086ab7ff724f95"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< const <a class="el" href="classGtk_1_1TextBuffer.html">TextBuffer</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TextMark.html#a829fa229e2b4fef7de10ada96ee7cf77">get_buffer</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the buffer this mark is located inside, or <code>0</code> if the mark is deleted. <a href="#a829fa229e2b4fef7de10ada96ee7cf77"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TextMark.html#a67a222e297c03bd220024952e5ee9ca5">get_left_gravity</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Determines whether the mark has left gravity. <a href="#a67a222e297c03bd220024952e5ee9ca5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1TextIter.html">TextIter</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TextMark.html#a1ed8d8769cf46a34769fb4ec76c50371">get_iter</a> ()</td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1TextMark.html">TextMark</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TextMark.html#a535324f93ccc7f594ec4fcb29baeb3e3">create</a> (bool left_gravity=true)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an anoymous text mark. <a href="#a535324f93ccc7f594ec4fcb29baeb3e3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1TextMark.html">TextMark</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TextMark.html#aca937ffe910b0e20e1421e4a0497dd41">create</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& name, bool left_gravity=true)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a text mark. <a href="#aca937ffe910b0e20e1421e4a0497dd41"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TextMark.html#ad78023d251297a807414d9f6e675d10b">TextMark</a> (bool left_gravity=true)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an anoymous text mark. <a href="#ad78023d251297a807414d9f6e675d10b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TextMark.html#a938c7595b3d39c1a58ac679a9fcebc24">TextMark</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& name, bool left_gravity=true)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a text mark. <a href="#a938c7595b3d39c1a58ac679a9fcebc24"></a><br/></td></tr>
<tr><td colspan="2"><h2>Related Functions</h2></td></tr>
<tr><td colspan="2"><p>(Note that these are not member functions.) </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1TextMark.html">Gtk::TextMark</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TextMark.html#a527b171c0f845bd9410c2b7e93432519">wrap</a> (GtkTextMark* object, bool take_copy=false)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a527b171c0f845bd9410c2b7e93432519"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Typedefed as <a class="el" href="classGtk_1_1TextBuffer.html#ae8dd977bbf98a58d400f880ed30a946e">Gtk::TextBuffer::Mark</a>. </p>
<p>A position in the buffer, preserved across buffer modifications.</p>
<p>A Mark is like a bookmark in a text buffer; it preserves a position in the text. Unlike iterators, marks remain valid across buffer mutations, because their behavior is defined when text is inserted or deleted. When text containing a mark is deleted, the mark remains in the position originally occupied by the deleted text. When text is inserted at a mark, a mark with left gravity will be moved to the beginning of the newly-inserted text, and a mark with right gravity will be moved to the end. The standard text cursor in left-to-right languages is a mark with right gravity, because it stays to the right of inserted text.</p>
<p>Like tags, marks can be either named or anonymous. There are two marks built-in to <a class="el" href="classGtk_1_1TextBuffer.html" title="Multi-line attributed text that can be displayed by one or more Gtk::TextView widgets...">Gtk::TextBuffer</a>; these are named "insert" and "selection_bound" and refer to the insertion point and the boundary of the selection which is not the insertion point, respectively. If no text is selected, these two marks will be in the same position. You can manipulate what is selected and where the cursor appears by moving these marks around.</p>
<p>"left" and "right" here refer to logical direction (left is the toward the start of the buffer); in some languages such as Hebrew the logically-leftmost text is not actually on the left when displayed.</p>
<p>You can convert the mark to an <a class="el" href="classGtk_1_1TextIter.html">iterator</a> using <a class="el" href="classGtk_1_1TextBuffer.html#a331fadf0c7c6c470b709802fbc09984a" title="Get the current position of a mark.">Gtk::TextBuffer::get_iter_at_mark()</a>.</p>
<p>Marks can be deleted from the buffer at any time with <a class="el" href="classGtk_1_1TextBuffer.html#a1582cb666cbe6c857f6f742557e19295" title="Deletes mark, so that it's no longer located anywhere in the buffer.">Gtk::TextBuffer::delete_mark()</a>. Once deleted from the buffer, a mark is essentially useless.</p>
<p>Marks optionally have names; these can be convenient to avoid passing the <a class="el" href="classGtk_1_1TextBuffer.html#ae8dd977bbf98a58d400f880ed30a946e">Gtk::TextBuffer::Mark</a> object around.</p>
<p>Marks are typically created using the <a class="el" href="classGtk_1_1TextBuffer.html#aa355a0cc0a3c1d7f7f9ded9cc157feb5" title="Creates a mark at position where.">Gtk::TextBuffer::create_mark()</a> function. </p>
<hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="a57eee14b77021e8df4664a15a28db58c"></a><!-- doxytag: member="Gtk::TextMark::~TextMark" ref="a57eee14b77021e8df4664a15a28db58c" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual Gtk::TextMark::~TextMark </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="ad78023d251297a807414d9f6e675d10b"></a><!-- doxytag: member="Gtk::TextMark::TextMark" ref="ad78023d251297a807414d9f6e675d10b" args="(bool left_gravity=true)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Gtk::TextMark::TextMark </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>left_gravity</em> = <code>true</code></td>
<td> ) </td>
<td><code> [explicit, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates an anoymous text mark. </p>
<p>Add it to a buffer using <a class="el" href="classGtk_1_1TextBuffer.html#a5b40599bc4daf29b2dd923deafc05e7e" title="Adds the mark at position where.">Gtk::TextBuffer::add_mark()</a>. If a mark has left gravity, and text is inserted at the mark's current location, the mark will be moved to the left of the newly-inserted text. If the mark has right gravity (<em>left_gravity</em> = false), the mark will end up on the right of newly-inserted text. The standard left-to-right cursor is a mark with right gravity (when you type, the cursor stays on the right side of the text you're typing).</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>mark name. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>left_gravity</em> </td><td>Whether the mark should have left gravity. </td></tr>
</table>
</dd>
</dl>
<dl class="since_2_12"><dt><b><a class="el" href="since_2_12.html#_since_2_12000088">Since gtkmm 2.12:</a></b></dt><dd></dd></dl>
</div>
</div>
<a class="anchor" id="a938c7595b3d39c1a58ac679a9fcebc24"></a><!-- doxytag: member="Gtk::TextMark::TextMark" ref="a938c7595b3d39c1a58ac679a9fcebc24" args="(const Glib::ustring &name, bool left_gravity=true)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Gtk::TextMark::TextMark </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>left_gravity</em> = <code>true</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [explicit, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a text mark. </p>
<p>Add it to a buffer using <a class="el" href="classGtk_1_1TextBuffer.html#a5b40599bc4daf29b2dd923deafc05e7e" title="Adds the mark at position where.">Gtk::TextBuffer::add_mark()</a>. The mark can be retrieved by name using <a class="el" href="classGtk_1_1TextBuffer.html#a2fcefaf023f05dd2e18ffa3de6063fd0" title="Returns the mark named name in buffer buffer, or 0 if no such mark exists in the...">Gtk::TextBuffer::get_mark()</a>. If a mark has left gravity, and text is inserted at the mark's current location, the mark will be moved to the left of the newly-inserted text. If the mark has right gravity (<em>left_gravity</em> = false), the mark will end up on the right of newly-inserted text. The standard left-to-right cursor is a mark with right gravity (when you type, the cursor stays on the right side of the text you're typing).</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>mark name. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>left_gravity</em> </td><td>Whether the mark should have left gravity. </td></tr>
</table>
</dd>
</dl>
<dl class="since_2_12"><dt><b><a class="el" href="since_2_12.html#_since_2_12000089">Since gtkmm 2.12:</a></b></dt><dd></dd></dl>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aca937ffe910b0e20e1421e4a0497dd41"></a><!-- doxytag: member="Gtk::TextMark::create" ref="aca937ffe910b0e20e1421e4a0497dd41" args="(const Glib::ustring &name, bool left_gravity=true)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGtk_1_1TextMark.html">TextMark</a>> Gtk::TextMark::create </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>left_gravity</em> = <code>true</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a text mark. </p>
<p>Add it to a buffer using <a class="el" href="classGtk_1_1TextBuffer.html#a5b40599bc4daf29b2dd923deafc05e7e" title="Adds the mark at position where.">Gtk::TextBuffer::add_mark()</a>. The mark can be retrieved by name using <a class="el" href="classGtk_1_1TextBuffer.html#a2fcefaf023f05dd2e18ffa3de6063fd0" title="Returns the mark named name in buffer buffer, or 0 if no such mark exists in the...">Gtk::TextBuffer::get_mark()</a>. If a mark has left gravity, and text is inserted at the mark's current location, the mark will be moved to the left of the newly-inserted text. If the mark has right gravity (<em>left_gravity</em> = false), the mark will end up on the right of newly-inserted text. The standard left-to-right cursor is a mark with right gravity (when you type, the cursor stays on the right side of the text you're typing).</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>mark name. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>left_gravity</em> </td><td>Whether the mark should have left gravity. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A RefPtr to a new text mark. </dd></dl>
<dl class="since_2_12"><dt><b><a class="el" href="since_2_12.html#_since_2_12000091">Since gtkmm 2.12:</a></b></dt><dd></dd></dl>
</div>
</div>
<a class="anchor" id="a535324f93ccc7f594ec4fcb29baeb3e3"></a><!-- doxytag: member="Gtk::TextMark::create" ref="a535324f93ccc7f594ec4fcb29baeb3e3" args="(bool left_gravity=true)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGtk_1_1TextMark.html">TextMark</a>> Gtk::TextMark::create </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>left_gravity</em> = <code>true</code></td>
<td> ) </td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates an anoymous text mark. </p>
<p>Add it to a buffer using <a class="el" href="classGtk_1_1TextBuffer.html#a5b40599bc4daf29b2dd923deafc05e7e" title="Adds the mark at position where.">Gtk::TextBuffer::add_mark()</a>. If a mark has left gravity, and text is inserted at the mark's current location, the mark will be moved to the left of the newly-inserted text. If the mark has right gravity (<em>left_gravity</em> = false), the mark will end up on the right of newly-inserted text. The standard left-to-right cursor is a mark with right gravity (when you type, the cursor stays on the right side of the text you're typing).</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>mark name. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>left_gravity</em> </td><td>Whether the mark should have left gravity. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A RefPtr to a new text mark. </dd></dl>
<dl class="since_2_12"><dt><b><a class="el" href="since_2_12.html#_since_2_12000090">Since gtkmm 2.12:</a></b></dt><dd></dd></dl>
</div>
</div>
<a class="anchor" id="a829fa229e2b4fef7de10ada96ee7cf77"></a><!-- doxytag: member="Gtk::TextMark::get_buffer" ref="a829fa229e2b4fef7de10ada96ee7cf77" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGtk_1_1TextBuffer.html">TextBuffer</a>> Gtk::TextMark::get_buffer </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Gets the buffer this mark is located inside, or <code>0</code> if the mark is deleted. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The mark's <a class="el" href="classGtk_1_1TextBuffer.html" title="Multi-line attributed text that can be displayed by one or more Gtk::TextView widgets...">Gtk::TextBuffer</a>. </dd></dl>
</div>
</div>
<a class="anchor" id="a2d355fbee36a734b25086ab7ff724f95"></a><!-- doxytag: member="Gtk::TextMark::get_buffer" ref="a2d355fbee36a734b25086ab7ff724f95" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGtk_1_1TextBuffer.html">TextBuffer</a>> Gtk::TextMark::get_buffer </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Gets the buffer this mark is located inside, or <code>0</code> if the mark is deleted. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The mark's <a class="el" href="classGtk_1_1TextBuffer.html" title="Multi-line attributed text that can be displayed by one or more Gtk::TextView widgets...">Gtk::TextBuffer</a>. </dd></dl>
</div>
</div>
<a class="anchor" id="aec24e44776091f4b8ae323fabdb536e9"></a><!-- doxytag: member="Gtk::TextMark::get_deleted" ref="aec24e44776091f4b8ae323fabdb536e9" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Gtk::TextMark::get_deleted </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns <code>true</code> if the mark has been removed from its buffer with <a class="el" href="classGtk_1_1TextBuffer.html#a1582cb666cbe6c857f6f742557e19295" title="Deletes mark, so that it's no longer located anywhere in the buffer.">Gtk::TextBuffer::delete_mark()</a>. </p>
<p>See <a class="el" href="classGtk_1_1TextBuffer.html#a5b40599bc4daf29b2dd923deafc05e7e" title="Adds the mark at position where.">Gtk::TextBuffer::add_mark()</a> for a way to add it to a buffer again. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Whether the mark is deleted. </dd></dl>
</div>
</div>
<a class="anchor" id="a1ed8d8769cf46a34769fb4ec76c50371"></a><!-- doxytag: member="Gtk::TextMark::get_iter" ref="a1ed8d8769cf46a34769fb4ec76c50371" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classGtk_1_1TextIter.html">TextIter</a> Gtk::TextMark::get_iter </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="a67a222e297c03bd220024952e5ee9ca5"></a><!-- doxytag: member="Gtk::TextMark::get_left_gravity" ref="a67a222e297c03bd220024952e5ee9ca5" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Gtk::TextMark::get_left_gravity </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Determines whether the mark has left gravity. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the mark has left gravity, <code>false</code> otherwise. </dd></dl>
</div>
</div>
<a class="anchor" id="aa00c93df844bcb94515c13e12d01ea14"></a><!-- doxytag: member="Gtk::TextMark::get_name" ref="aa00c93df844bcb94515c13e12d01ea14" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> Gtk::TextMark::get_name </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the mark name; returns <code>0</code> for anonymous marks. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Mark name. </dd></dl>
</div>
</div>
<a class="anchor" id="a82ac4758d758dce5e9207f97024c7b05"></a><!-- doxytag: member="Gtk::TextMark::get_visible" ref="a82ac4758d758dce5e9207f97024c7b05" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Gtk::TextMark::get_visible </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns <code>true</code> if the mark is visible (i.e. a cursor is displayed for it). </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if visible. </dd></dl>
</div>
</div>
<a class="anchor" id="aab9399f7ecc8539ccf11191cc64a885b"></a><!-- doxytag: member="Gtk::TextMark::gobj" ref="aab9399f7ecc8539ccf11191cc64a885b" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const GtkTextMark* Gtk::TextMark::gobj </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Provides access to the underlying C GObject. </p>
<p>Reimplemented from <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html#a778a94181132976bbfb0519793f3b32e">Glib::ObjectBase</a>.</p>
</div>
</div>
<a class="anchor" id="a2375cdcf56f135b5caeb1d335c078801"></a><!-- doxytag: member="Gtk::TextMark::gobj" ref="a2375cdcf56f135b5caeb1d335c078801" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">GtkTextMark* Gtk::TextMark::gobj </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Provides access to the underlying C GObject. </p>
<p>Reimplemented from <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html#a4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.</p>
</div>
</div>
<a class="anchor" id="ad69a5cb3437143cee49ce6dbb6f9d92b"></a><!-- doxytag: member="Gtk::TextMark::gobj_copy" ref="ad69a5cb3437143cee49ce6dbb6f9d92b" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">GtkTextMark* Gtk::TextMark::gobj_copy </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. </p>
</div>
</div>
<a class="anchor" id="a81500d6abd3ae31baf1494476b304ed9"></a><!-- doxytag: member="Gtk::TextMark::set_visible" ref="a81500d6abd3ae31baf1494476b304ed9" args="(bool setting=true)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Gtk::TextMark::set_visible </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>setting</em> = <code>true</code></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the visibility of <em>mark</em>; the insertion point is normally visible, i.e. you can see it as a vertical bar. </p>
<p>Also, the text widget uses a visible mark to indicate where a drop will occur when dragging-and-dropping text. Most other marks are not visible. Marks are not visible by default. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>setting</em> </td><td>Visibility of mark. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a527b171c0f845bd9410c2b7e93432519"></a><!-- doxytag: member="Gtk::TextMark::wrap" ref="a527b171c0f845bd9410c2b7e93432519" args="(GtkTextMark *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1TextMark.html">Gtk::TextMark</a> > wrap </td>
<td>(</td>
<td class="paramtype">GtkTextMark * </td>
<td class="paramname"> <em>object</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>take_copy</em> = <code>false</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [related]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>A <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>object</em> </td><td>The C instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>take_copy</em> </td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>gtkmm/textmark.h</li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue May 4 13:22:03 2010 for gtkmm by 
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>
|