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 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>gtkmm 2.4: Pango::AttrList Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff">
<table border="0" width="100%">
<tr>
<td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td>
<td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td>
</tr>
</table>
<center>
<a class="qindex" href="../../index.html">Main Page</a>
<a href="group__Widgets.html">Widgets</a>
<a class="qindex" href="namespaces.html"> Namespaces</a>
<a href="../../tutorial/html/index.html"> Book</a>
</center>
<hr width="100%"/>
<!-- begin main content -->
<div id="content">
<!-- Generated by Doxygen 1.5.1 -->
<div class="nav">
<a class="el" href="namespacePango.html">Pango</a>::<a class="el" href="classPango_1_1AttrList.html">AttrList</a></div>
<h1>Pango::AttrList Class Reference</h1><!-- doxytag: class="Pango::AttrList" --><a href="classPango_1_1AttrList-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
A <a class="el" href="classPango_1_1AttrList.html">Pango::AttrList</a> represents a list of attributes that apply to a section of text.
<p>
The attributes are, in general, allowed to overlap in an arbitrary fashion, however, if the attributes are manipulated only through <a class="el" href="classPango_1_1AttrList.html#5a44a3cdf4ffa20ccfa7bc12b2a28d73">Pango::AttrList::change()</a>, the overlap between properties will meet stricter criteria.<p>
Since the <a class="el" href="classPango_1_1AttrList.html">Pango::AttrList</a> structure is stored as a linear list, it is not suitable for storing attributes for large amounts of text. In general, you should not use a single <a class="el" href="classPango_1_1AttrList.html">Pango::AttrList</a> for more than one paragraph of text.<p>
When obtaining an <a class="el" href="classPango_1_1AttrList.html">AttrList</a>, you should check that it is valid. For instance, if(attrlist).
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1AttrList.html#ce470e8057d48dfd35fb8fa281f5e9f0">AttrList</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& markup_text, gunichar accel_marker, <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& text, gunichar& accel_char)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs an attribute list by parsing a marked-up text (see markup format). <a href="#ce470e8057d48dfd35fb8fa281f5e9f0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1AttrList.html#e4e9efd77bd212f1833d3d2ffc87a9b0">AttrList</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& markup_text, gunichar accel_marker=0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs an attribute list by parsing a marked-up text (see markup format). <a href="#e4e9efd77bd212f1833d3d2ffc87a9b0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1AttrList.html#8b69cd9f9eb7aa16751f74476cf34ed2">AttrList</a> (const <a class="el" href="classPango_1_1AttrList.html">AttrList</a>& other)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1AttrList.html#fa8cc4cdea17168ebe5c3e3a4015fed9">AttrList</a> (PangoAttrList* gobject, bool make_a_copy=true)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1AttrList.html#d2e90f6e8ba5f41069a116d06b0cba27">AttrList</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1AttrList.html#5a44a3cdf4ffa20ccfa7bc12b2a28d73">change</a> (<a class="el" href="classPango_1_1Attribute.html">Attribute</a>& attr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classPango_1_1AttrIter.html">AttrIter</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1AttrList.html#624a4900d499f6326ee03f26e43ae48b">get_iter</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a iterator initialized to the beginning of the list. <a href="#624a4900d499f6326ee03f26e43ae48b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const PangoAttrList* </td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1AttrList.html#bc3bd4ea342177832950f671e09d5c36">gobj</a> () const</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. <a href="#bc3bd4ea342177832950f671e09d5c36"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">PangoAttrList* </td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1AttrList.html#2bf50400f982c73b8dc58c27fd0061f5">gobj</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. <a href="#2bf50400f982c73b8dc58c27fd0061f5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">PangoAttrList* </td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1AttrList.html#554be7a20e7d8a050af93136b3c5cad8">gobj_copy</a> () const</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. <a href="#554be7a20e7d8a050af93136b3c5cad8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1AttrList.html#65f766ed811132bd1b13580b3df60c53">insert</a> (<a class="el" href="classPango_1_1Attribute.html">Attribute</a>& attr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1AttrList.html#8349cd1ba7fb0c73d6ce777e0df37ac6">insert_before</a> (<a class="el" href="classPango_1_1Attribute.html">Attribute</a>& attr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1AttrList.html#752876b8e4954110eae92f17f0347fdd">operator bool</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Tests whether the <a class="el" href="classPango_1_1AttrList.html">AttrList</a> is valid. <a href="#752876b8e4954110eae92f17f0347fdd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classPango_1_1AttrList.html">AttrList</a>& </td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1AttrList.html#a5ae00b0f7117c4d3de2fed2461c2654">operator=</a> (const <a class="el" href="classPango_1_1AttrList.html">AttrList</a>& other)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1AttrList.html#42f6abf1419006ddfffdf8834e41db5d">splice</a> (<a class="el" href="classPango_1_1AttrList.html">AttrList</a>& other, int pos, int len)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This function opens up a hole in <em>list</em> , fills it in with attributes from the left, and then merges <em>other</em> on top of the hole. <a href="#42f6abf1419006ddfffdf8834e41db5d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1AttrList.html#6d7f38890f77edbda1b76ede07ca270c">swap</a> (<a class="el" href="classPango_1_1AttrList.html">AttrList</a>& other)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1AttrList.html#cc08c6591213b710d629cc03e0d47b37">~AttrList</a> ()</td></tr>
<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">PangoAttrList* </td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1AttrList.html#b3c35cd26ab826d87a8830564489f4bf">gobject_</a></td></tr>
<tr><td colspan="2"><br><h2>Related Functions</h2></td></tr>
<tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1AttrList.html#08cef97f39c0345e3cdbd7a13941d6f9">swap</a> (<a class="el" href="classPango_1_1AttrList.html">AttrList</a>& lhs, <a class="el" href="classPango_1_1AttrList.html">AttrList</a>& rhs)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight"><dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>lhs</em> </td><td>The left-hand side </td></tr>
</table>
</dl>
<a href="#08cef97f39c0345e3cdbd7a13941d6f9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classPango_1_1AttrList.html">Pango::AttrList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPango_1_1AttrList.html#3a2b309c291bbbd832da6ca496a5648d">wrap</a> (PangoAttrList* object, bool take_copy=false)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#3a2b309c291bbbd832da6ca496a5648d"></a><br></td></tr>
</table>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="d2e90f6e8ba5f41069a116d06b0cba27"></a><!-- doxytag: member="Pango::AttrList::AttrList" ref="d2e90f6e8ba5f41069a116d06b0cba27" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Pango::AttrList::AttrList </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="fa8cc4cdea17168ebe5c3e3a4015fed9"></a><!-- doxytag: member="Pango::AttrList::AttrList" ref="fa8cc4cdea17168ebe5c3e3a4015fed9" args="(PangoAttrList *gobject, bool make_a_copy=true)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Pango::AttrList::AttrList </td>
<td>(</td>
<td class="paramtype">PangoAttrList * </td>
<td class="paramname"> <em>gobject</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>make_a_copy</em> = <code>true</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [explicit]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="8b69cd9f9eb7aa16751f74476cf34ed2"></a><!-- doxytag: member="Pango::AttrList::AttrList" ref="8b69cd9f9eb7aa16751f74476cf34ed2" args="(const AttrList &other)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Pango::AttrList::AttrList </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classPango_1_1AttrList.html">AttrList</a>& </td>
<td class="paramname"> <em>other</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="cc08c6591213b710d629cc03e0d47b37"></a><!-- doxytag: member="Pango::AttrList::~AttrList" ref="cc08c6591213b710d629cc03e0d47b37" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Pango::AttrList::~AttrList </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="e4e9efd77bd212f1833d3d2ffc87a9b0"></a><!-- doxytag: member="Pango::AttrList::AttrList" ref="e4e9efd77bd212f1833d3d2ffc87a9b0" args="(const Glib::ustring &markup_text, gunichar accel_marker=0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Pango::AttrList::AttrList </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>markup_text</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">gunichar </td>
<td class="paramname"> <em>accel_marker</em> = <code>0</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [explicit]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Constructs an attribute list by parsing a marked-up text (see markup format).
<p>
If <em>accel_marker</em> is nonzero, the given character will mark the character following it as an accelerator. For example, the accel marker might be an ampersand or underscore. All characters marked as an accelerator will receive a <a class="el" href="group__pangommEnums.html#ggbbd069e35161c1ad698b7f1fe70aec5710f84a67fc43406f330a66400baf2577">Pango::UNDERLINE_LOW</a> attribute. Two <em>accel_marker</em> characters following each other produce a single literal <em>accel_marker</em> character.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>markup_text</em> </td><td>Markup to parse (see markup format). </td></tr>
<tr><td valign="top"></td><td valign="top"><em>accel_marker</em> </td><td>Character that precedes an accelerator, or <code>0</code> for none. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="ce470e8057d48dfd35fb8fa281f5e9f0"></a><!-- doxytag: member="Pango::AttrList::AttrList" ref="ce470e8057d48dfd35fb8fa281f5e9f0" args="(const Glib::ustring &markup_text, gunichar accel_marker, Glib::ustring &text, gunichar &accel_char)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Pango::AttrList::AttrList </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>markup_text</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">gunichar </td>
<td class="paramname"> <em>accel_marker</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"> <em>text</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">gunichar & </td>
<td class="paramname"> <em>accel_char</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Constructs an attribute list by parsing a marked-up text (see markup format).
<p>
<em>text</em> is set to the plaintext string. If <em>accel_marker</em> is nonzero, the given character will mark the character following it as an accelerator. For example, the accel marker might be an ampersand or underscore. All characters marked as an accelerator will receive a <a class="el" href="group__pangommEnums.html#ggbbd069e35161c1ad698b7f1fe70aec5710f84a67fc43406f330a66400baf2577">Pango::UNDERLINE_LOW</a> attribute. The first character so marked will be returned in <em>accel_char</em>. Two <em>accel_marker</em> characters following each other produce a single literal <em>accel_marker</em> character.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>markup_text</em> </td><td>Markup to parse (see markup format). </td></tr>
<tr><td valign="top"></td><td valign="top"><em>accel_marker</em> </td><td>Character that precedes an accelerator, or <code>0</code> for none. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>text</em> </td><td>Return location for text with tags stripped. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>accel_char</em> </td><td>Return location for accelerator char. </td></tr>
</table>
</dl>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="5a44a3cdf4ffa20ccfa7bc12b2a28d73"></a><!-- doxytag: member="Pango::AttrList::change" ref="5a44a3cdf4ffa20ccfa7bc12b2a28d73" args="(Attribute &attr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Pango::AttrList::change </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPango_1_1Attribute.html">Attribute</a>& </td>
<td class="paramname"> <em>attr</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="624a4900d499f6326ee03f26e43ae48b"></a><!-- doxytag: member="Pango::AttrList::get_iter" ref="624a4900d499f6326ee03f26e43ae48b" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classPango_1_1AttrIter.html">AttrIter</a> Pango::AttrList::get_iter </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Create a iterator initialized to the beginning of the list.
<p>
<em>list</em> must not be modified until this iterator is freed. <dl class="return" compact><dt><b>Returns:</b></dt><dd>The newly allocated Pango::AttrIterator, which should be freed with pango_attr_iterator_destroy(). </dd></dl>
</div>
</div><p>
<a class="anchor" name="bc3bd4ea342177832950f671e09d5c36"></a><!-- doxytag: member="Pango::AttrList::gobj" ref="bc3bd4ea342177832950f671e09d5c36" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const PangoAttrList* Pango::AttrList::gobj </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Provides access to the underlying C instance.
<p>
</div>
</div><p>
<a class="anchor" name="2bf50400f982c73b8dc58c27fd0061f5"></a><!-- doxytag: member="Pango::AttrList::gobj" ref="2bf50400f982c73b8dc58c27fd0061f5" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PangoAttrList* Pango::AttrList::gobj </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Provides access to the underlying C instance.
<p>
</div>
</div><p>
<a class="anchor" name="554be7a20e7d8a050af93136b3c5cad8"></a><!-- doxytag: member="Pango::AttrList::gobj_copy" ref="554be7a20e7d8a050af93136b3c5cad8" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PangoAttrList* Pango::AttrList::gobj_copy </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
<p>
</div>
</div><p>
<a class="anchor" name="65f766ed811132bd1b13580b3df60c53"></a><!-- doxytag: member="Pango::AttrList::insert" ref="65f766ed811132bd1b13580b3df60c53" args="(Attribute &attr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Pango::AttrList::insert </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPango_1_1Attribute.html">Attribute</a>& </td>
<td class="paramname"> <em>attr</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="8349cd1ba7fb0c73d6ce777e0df37ac6"></a><!-- doxytag: member="Pango::AttrList::insert_before" ref="8349cd1ba7fb0c73d6ce777e0df37ac6" args="(Attribute &attr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Pango::AttrList::insert_before </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPango_1_1Attribute.html">Attribute</a>& </td>
<td class="paramname"> <em>attr</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="752876b8e4954110eae92f17f0347fdd"></a><!-- doxytag: member="Pango::AttrList::operator bool" ref="752876b8e4954110eae92f17f0347fdd" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Pango::AttrList::operator bool </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Tests whether the <a class="el" href="classPango_1_1AttrList.html">AttrList</a> is valid.
<p>
</div>
</div><p>
<a class="anchor" name="a5ae00b0f7117c4d3de2fed2461c2654"></a><!-- doxytag: member="Pango::AttrList::operator=" ref="a5ae00b0f7117c4d3de2fed2461c2654" args="(const AttrList &other)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classPango_1_1AttrList.html">AttrList</a>& Pango::AttrList::operator= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classPango_1_1AttrList.html">AttrList</a>& </td>
<td class="paramname"> <em>other</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="42f6abf1419006ddfffdf8834e41db5d"></a><!-- doxytag: member="Pango::AttrList::splice" ref="42f6abf1419006ddfffdf8834e41db5d" args="(AttrList &other, int pos, int len)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Pango::AttrList::splice </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPango_1_1AttrList.html">AttrList</a>& </td>
<td class="paramname"> <em>other</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>pos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>len</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function opens up a hole in <em>list</em> , fills it in with attributes from the left, and then merges <em>other</em> on top of the hole.
<p>
This operation is equivalent to stretching every attribute that applies at position <em>pos</em> in <em>list</em> by an amount <em>len</em> , and then calling pango_attr_list_change() with a copy of each attribute in <em>other</em> in sequence (offset in position by <em>pos</em> ).<p>
This operation proves useful for, for instance, inserting a pre-edit string in the middle of an edit buffer. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>other</em> </td><td>Another <a class="el" href="classPango_1_1AttrList.html">Pango::AttrList</a>. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>pos</em> </td><td>The position in <em>list</em> at which to insert <em>other</em> . </td></tr>
<tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>The length of the spliced segment. (Note that this must be specified since the attributes in <em>other</em> may only be present at some subsection of this range). </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="6d7f38890f77edbda1b76ede07ca270c"></a><!-- doxytag: member="Pango::AttrList::swap" ref="6d7f38890f77edbda1b76ede07ca270c" args="(AttrList &other)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Pango::AttrList::swap </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPango_1_1AttrList.html">AttrList</a>& </td>
<td class="paramname"> <em>other</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="08cef97f39c0345e3cdbd7a13941d6f9"></a><!-- doxytag: member="Pango::AttrList::swap" ref="08cef97f39c0345e3cdbd7a13941d6f9" args="(AttrList &lhs, AttrList &rhs)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void swap </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPango_1_1AttrList.html">AttrList</a>& </td>
<td class="paramname"> <em>lhs</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classPango_1_1AttrList.html">AttrList</a>& </td>
<td class="paramname"> <em>rhs</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [related]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>lhs</em> </td><td>The left-hand side </td></tr>
</table>
</dl>
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>rhs</em> </td><td>The right-hand side </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="3a2b309c291bbbd832da6ca496a5648d"></a><!-- doxytag: member="Pango::AttrList::wrap" ref="3a2b309c291bbbd832da6ca496a5648d" args="(PangoAttrList *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classPango_1_1AttrList.html">Pango::AttrList</a> wrap </td>
<td>(</td>
<td class="paramtype">PangoAttrList * </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 width="100%"><code> [related]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
A <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object.
<p>
<dl compact><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>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>
</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="b3c35cd26ab826d87a8830564489f4bf"></a><!-- doxytag: member="Pango::AttrList::gobject_" ref="b3c35cd26ab826d87a8830564489f4bf" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PangoAttrList* <a class="el" href="classPango_1_1AttrList.html#b3c35cd26ab826d87a8830564489f4bf">Pango::AttrList::gobject_</a><code> [protected]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="attrlist_8h.html">attrlist.h</a></ul>
</div>
<!-- end main content -->
<hr><address><small>
Generated for gtkmm 2.4 by <a href="http://www.doxygen.org/index.html">
Doxygen</a> 1.5.1 © 1997-2001</small></address>
</body>
</html>
|