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 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>GTK+ Foundation Classes</title>
<link href="gfc.css" rel="stylesheet" type="text/css">
<meta content="The GFC Development Team" name="author">
<meta content="Core Library Reference Manual" name="description">
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(243, 244, 248);"
alink="#000099" link="#000099" vlink="#990099">
<table style="text-align: left; width: 1227px; height: 117px;"
border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td
style="text-align: center; background-color: rgb(255, 255, 255); width: 220px; vertical-align: top;"><img
alt="GFC Logo" src="../images/gfc.png"
style="width: 207px; height: 92px;"></td>
<td
style="text-align: center; background-color: rgb(87, 107, 152); vertical-align: middle;"><img
alt="GFC Title Logo" src="../images/gfc-title.png"
style="width: 418px; height: 76px;"><br>
</td>
</tr>
<tr>
<td
style="text-align: center; background-color: rgb(65, 77, 104); vertical-align: middle;"><big><span
style="color: rgb(255, 255, 153); font-weight: bold;">Reference Manual</span></big><br>
</td>
<td
style="text-align: center; background-color: rgb(148, 164, 200); vertical-align: middle;"><small
style="font-family: helvetica,arial,sans-serif;"><a
href="../html/index.html">Main Page</a> | <a
href="../html/namespaces.html">Namespace List</a> | <a
href="classes.html">Alphabetical List</a> | <a
href="../html/annotated.html">Class List</a> | <a
href="../html/files.html">File List</a></small><br>
</td>
</tr>
</tbody>
</table>
<small> </small>
</body>
</html>
<!-- Generated by Doxygen 1.3.8 -->
<h1>GFC::Pango::Context Class Reference</h1>A PangoLogAttr C++ wrapper class.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="context_8hh-source.html">gfc/pango/context.hh</a>></code>
<p>
<p>Inheritance diagram for GFC::Pango::Context:
<p><center><img src="classGFC_1_1Pango_1_1Context.png" usemap="#GFC::Pango::Context_map" border="0" alt=""></center>
<map name="GFC::Pango::Context_map">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Object.html" alt="GFC::G::Object" shape="rect" coords="0,112,134,136">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1TypeInstance.html" alt="GFC::G::TypeInstance" shape="rect" coords="0,56,134,80">
<area doxygen="gfccore.tag:" href="classGFC_1_1Trackable.html" alt="GFC::Trackable" shape="rect" coords="0,0,134,24">
</map>
<a href="classGFC_1_1Pango_1_1Context-members.html">List of all members.</a><h2>Public Member Functions</h2>
<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
<ul>
<li><a class="anchor" name="z1147_0" doxytag="GFC::Pango::Context::~Context" ></a>
virtual <a class="el" href="classGFC_1_1Pango_1_1Context.html#z1147_0">~Context</a> ()
<dl class="el"><dd class="mdescRight">Destructor. <br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Accessors</div></td></tr>
<ul>
<li><a class="anchor" name="z1148_0" doxytag="GFC::Pango::Context::pango_context" ></a>
PangoContext * <a class="el" href="classGFC_1_1Pango_1_1Context.html#z1148_0">pango_context</a> () const
<dl class="el"><dd class="mdescRight">Get a pointer to the PangoContext structure. <br></dl><li><a class="anchor" name="z1148_1" doxytag="GFC::Pango::Context::operator PangoContext *" ></a>
<a class="el" href="classGFC_1_1Pango_1_1Context.html#z1148_1">operator PangoContext *</a> () const
<dl class="el"><dd class="mdescRight">Conversion operator; safely converts a <a class="el" href="classGFC_1_1Pango_1_1Context.html">Context</a> to a PangoContext pointer. <br></dl><li><a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a>< <a class="el" href="classGFC_1_1Pango_1_1FontMetrics.html">FontMetrics</a> > <a class="el" href="classGFC_1_1Pango_1_1Context.html#z1148_2">get_metrics</a> (const <a class="el" href="classGFC_1_1Pango_1_1FontDescription.html">FontDescription</a> &desc, PangoLanguage *language) const
<dl class="el"><dd class="mdescRight">Get the overall metric information for a particular font description. <a href="#z1148_2"></a><br></dl><li><a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a>< <a class="el" href="classGFC_1_1Pango_1_1FontDescription.html">FontDescription</a> > <a class="el" href="classGFC_1_1Pango_1_1Context.html#z1148_3">get_font_description</a> () const
<dl class="el"><dd class="mdescRight">Retrieve the default font description for the context. <a href="#z1148_3"></a><br></dl><li>PangoLanguage * <a class="el" href="classGFC_1_1Pango_1_1Context.html#z1148_4">get_language</a> () const
<dl class="el"><dd class="mdescRight">Retrieves the global language tag for the context. <a href="#z1148_4"></a><br></dl><li><a class="el" href="namespaceGFC_1_1Pango.html#a145">Direction</a> <a class="el" href="classGFC_1_1Pango_1_1Context.html#z1148_5">get_base_dir</a> () const
<dl class="el"><dd class="mdescRight">Retrieves the base direction for the context. <a href="#z1148_5"></a><br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Methods</div></td></tr>
<ul>
<li>bool <a class="el" href="classGFC_1_1Pango_1_1Context.html#z1149_0">list_families</a> (std::vector< <a class="el" href="classGFC_1_1Pango_1_1FontFamily.html">FontFamily</a> * > &families) const
<dl class="el"><dd class="mdescRight">List all the families for the context's fontmap. <a href="#z1149_0"></a><br></dl><li><a class="el" href="classGFC_1_1Pango_1_1Font.html">Font</a> * <a class="el" href="classGFC_1_1Pango_1_1Context.html#z1149_1">load_font</a> (const <a class="el" href="classGFC_1_1Pango_1_1FontDescription.html">FontDescription</a> &desc) const
<dl class="el"><dd class="mdescRight">Loads the font in one of the fontmaps in the context that is the closest match for <em>desc</em>. <a href="#z1149_1"></a><br></dl><li><a class="el" href="classGFC_1_1Pango_1_1Fontset.html">Fontset</a> * <a class="el" href="classGFC_1_1Pango_1_1Context.html#z1149_2">load_fontset</a> (const <a class="el" href="classGFC_1_1Pango_1_1FontDescription.html">FontDescription</a> &desc, PangoLanguage *language) const
<dl class="el"><dd class="mdescRight">Load a set of fonts in the context that can be used to render a font matching <em>desc</em>. <a href="#z1149_2"></a><br></dl><li>void <a class="el" href="classGFC_1_1Pango_1_1Context.html#z1149_3">set_font_description</a> (const <a class="el" href="classGFC_1_1Pango_1_1FontDescription.html">FontDescription</a> &desc)
<dl class="el"><dd class="mdescRight">Set the default font description for the context. <a href="#z1149_3"></a><br></dl><li>void <a class="el" href="classGFC_1_1Pango_1_1Context.html#z1149_4">set_language</a> (PangoLanguage *language)
<dl class="el"><dd class="mdescRight">Sets the global language tag for the context. <a href="#z1149_4"></a><br></dl><li>void <a class="el" href="classGFC_1_1Pango_1_1Context.html#z1149_5">set_base_dir</a> (<a class="el" href="namespaceGFC_1_1Pango.html#a145">Direction</a> direction)
<dl class="el"><dd class="mdescRight">Sets the base direction for the context. <a href="#z1149_5"></a><br></dl><li>std::vector< <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a>< <a class="el" href="classGFC_1_1Pango_1_1Item.html">Item</a> > > <a class="el" href="classGFC_1_1Pango_1_1Context.html#z1149_6">itemize</a> (const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &text, const <a class="el" href="classGFC_1_1Pango_1_1AttrList.html">AttrList</a> &attrs, <a class="el" href="classGFC_1_1Pango_1_1AttrIterator.html">AttrIterator</a> *cached_iter=0) const
<dl class="el"><dd class="mdescRight">Breaks a piece of text into segments with consistent directional level and shaping engine. <a href="#z1149_6"></a><br></dl><li>std::vector< <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a>< <a class="el" href="classGFC_1_1Pango_1_1Item.html">Item</a> > > <a class="el" href="classGFC_1_1Pango_1_1Context.html#z1149_7">itemize</a> (const char *text, int start_index, int length, const <a class="el" href="classGFC_1_1Pango_1_1AttrList.html">AttrList</a> &attrs, <a class="el" href="classGFC_1_1Pango_1_1AttrIterator.html">AttrIterator</a> *cached_iter=0) const
<dl class="el"><dd class="mdescRight">Breaks a piece of text into segments with consistent directional level and shaping engine. <a href="#z1149_7"></a><br></dl><li>std::vector< <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a>< <a class="el" href="classGFC_1_1Pango_1_1Item.html">Item</a> > > <a class="el" href="classGFC_1_1Pango_1_1Context.html#z1149_8">itemize</a> (<a class="el" href="namespaceGFC_1_1Pango.html#a145">Direction</a> direction, const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &text, const <a class="el" href="classGFC_1_1Pango_1_1AttrList.html">AttrList</a> &attrs, <a class="el" href="classGFC_1_1Pango_1_1AttrIterator.html">AttrIterator</a> *cached_iter=0) const
<dl class="el"><dd class="mdescRight">Breaks a piece of text into segments using the specified base <em>direction</em>. <a href="#z1149_8"></a><br></dl><li>std::vector< <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a>< <a class="el" href="classGFC_1_1Pango_1_1Item.html">Item</a> > > <a class="el" href="classGFC_1_1Pango_1_1Context.html#z1149_9">itemize</a> (<a class="el" href="namespaceGFC_1_1Pango.html#a145">Direction</a> direction, const char *text, int start_index, int length, const <a class="el" href="classGFC_1_1Pango_1_1AttrList.html">AttrList</a> &attrs, <a class="el" href="classGFC_1_1Pango_1_1AttrIterator.html">AttrIterator</a> *cached_iter=0) const
<dl class="el"><dd class="mdescRight">Breaks a piece of text into segments using the specified base <em>direction</em>. <a href="#z1149_9"></a><br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">GDK Pango Methods</div></td></tr>
<ul>
<li>void <a class="el" href="classGFC_1_1Pango_1_1Context.html#z1150_0">set_colormap</a> (const <a class="el" href="classGFC_1_1Gdk_1_1Colormap.html">Gdk::Colormap</a> &colormap)
<dl class="el"><dd class="mdescRight">Sets the colormap to be used for drawing with the context. <a href="#z1150_0"></a><br></dl></ul>
<h2>Static Public Member Functions</h2>
<ul>
<li><a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a>< <a class="el" href="classGFC_1_1Pango_1_1Context.html">Pango::Context</a> > <a class="el" href="classGFC_1_1Pango_1_1Context.html#e0">get</a> (const <a class="el" href="classGFC_1_1Gdk_1_1Screen.html">Gdk::Screen</a> *screen=0)
<dl class="el"><dd class="mdescRight">Creates a PangoContext for the specified <em>screen</em>. <a href="#e0"></a><br></dl></ul>
<h2>Protected Member Functions</h2>
<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
<ul>
<li><a class="el" href="classGFC_1_1Pango_1_1Context.html#z1146_0">Context</a> (PangoContext *context, bool <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Trackable.html#z143_1">owns_reference</a>=true)
<dl class="el"><dd class="mdescRight">Construct a new <a class="el" href="classGFC_1_1Pango_1_1Context.html">Context</a> from an existing PangoContext. <a href="#z1146_0"></a><br></dl></ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A PangoLogAttr C++ wrapper class.
<p>
The <a class="el" href="classGFC_1_1Pango_1_1Context.html">Context</a> object stores global information used to control the itemization process.
<p>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="z1146_0" doxytag="GFC::Pango::Context::Context" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> GFC::Pango::Context::Context </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">PangoContext * </td>
<td class="mdname" nowrap> <em>context</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>bool </td>
<td class="mdname" nowrap> <em>owns_reference</em> = <code>true</code></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [explicit, protected]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Construct a new <a class="el" href="classGFC_1_1Pango_1_1Context.html">Context</a> from an existing PangoContext.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>context</em> </td><td>A pointer to a PangoContext. </td></tr>
<tr><td></td><td valign=top><em>owns_reference</em> </td><td>Set false if the initial reference count is floating, set true if it's not.</td></tr>
</table>
</dl>
<br>
The <em>context</em> can be a newly created PangoContext or an existing PangoContext. (see <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Object.html#z68_0">G::Object::Object</a>). </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="e0" doxytag="GFC::Pango::Context::get" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a><<a class="el" href="classGFC_1_1Pango_1_1Context.html">Pango::Context</a>> GFC::Pango::Context::get </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Gdk_1_1Screen.html">Gdk::Screen</a> * </td>
<td class="mdname1" valign="top" nowrap> <em>screen</em> = <code>0</code> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Creates a PangoContext for the specified <em>screen</em>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>screen</em> </td><td>The Screen to get the context for, or null for the default screen. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>a new PangoContext for <em>screen</em></dd></dl>
<br>
When using a <a class="el" href="classGFC_1_1Gtk_1_1Widget.html">Gtk::Widget</a>, normally you should use <a class="el" href="classGFC_1_1Gtk_1_1Widget.html#z1052_53">Gtk::Widget::get_pango_context()</a> instead of this function, to get the appropriate context for the widget you intend to render text onto. </td>
</tr>
</table>
<a class="anchor" name="z1148_5" doxytag="GFC::Pango::Context::get_base_dir" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="namespaceGFC_1_1Pango.html#a145">Direction</a> GFC::Pango::Context::get_base_dir </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Retrieves the base direction for the context.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The base direction for the context. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z1148_3" doxytag="GFC::Pango::Context::get_font_description" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a><<a class="el" href="classGFC_1_1Pango_1_1FontDescription.html">FontDescription</a>> GFC::Pango::Context::get_font_description </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Retrieve the default font description for the context.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>A smart pointer to the context's default font description. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z1148_4" doxytag="GFC::Pango::Context::get_language" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> PangoLanguage* GFC::Pango::Context::get_language </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Retrieves the global language tag for the context.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The global language tag. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z1148_2" doxytag="GFC::Pango::Context::get_metrics" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a><<a class="el" href="classGFC_1_1Pango_1_1FontMetrics.html">FontMetrics</a>> GFC::Pango::Context::get_metrics </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Pango_1_1FontDescription.html">FontDescription</a> & </td>
<td class="mdname" nowrap> <em>desc</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>PangoLanguage * </td>
<td class="mdname" nowrap> <em>language</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Get the overall metric information for a particular font description.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>desc</em> </td><td>A <a class="el" href="classGFC_1_1Pango_1_1FontDescription.html">FontDescription</a>. </td></tr>
<tr><td></td><td valign=top><em>language</em> </td><td>A language tag used to determine which script to get the metrics for, or null to indicate to get the metrics for the entire font. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A smart pointer to a <a class="el" href="classGFC_1_1Pango_1_1FontMetrics.html">FontMetrics</a> object.</dd></dl>
<br>
Since the metrics may be substantially different for different scripts, a language tag can be provided to indicate that the metrics should be retrieved that correspond to the script(s) used by that language.<p>
The <a class="el" href="classGFC_1_1Pango_1_1FontDescription.html">FontDescription</a> is interpreted in the same way as by <a class="el" href="classGFC_1_1Pango_1_1Context.html#z1149_6">itemize()</a>, and the family name may be a comma separated list of figures. If characters from multiple of these families would be used to render the string, then the returned fonts would be a composite of the metrics for the fonts loaded for the individual families. </td>
</tr>
</table>
<a class="anchor" name="z1149_9" doxytag="GFC::Pango::Context::itemize" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> std::vector<<a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a><<a class="el" href="classGFC_1_1Pango_1_1Item.html">Item</a>> > GFC::Pango::Context::itemize </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="namespaceGFC_1_1Pango.html#a145">Direction</a> </td>
<td class="mdname" nowrap> <em>direction</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>const char * </td>
<td class="mdname" nowrap> <em>text</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>int </td>
<td class="mdname" nowrap> <em>start_index</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>int </td>
<td class="mdname" nowrap> <em>length</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>const <a class="el" href="classGFC_1_1Pango_1_1AttrList.html">AttrList</a> & </td>
<td class="mdname" nowrap> <em>attrs</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap><a class="el" href="classGFC_1_1Pango_1_1AttrIterator.html">AttrIterator</a> * </td>
<td class="mdname" nowrap> <em>cached_iter</em> = <code>0</code></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Breaks a piece of text into segments using the specified base <em>direction</em>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>direction</em> </td><td>The base direction to use for bidirectional processing. </td></tr>
<tr><td></td><td valign=top><em>text</em> </td><td>The text to itemize, starting at <em>start_index</em> </td></tr>
<tr><td></td><td valign=top><em>start_index</em> </td><td>The first byte in text to process. </td></tr>
<tr><td></td><td valign=top><em>length</em> </td><td>The number of bytes (not characters) to process after start_index. This must be >= 0. </td></tr>
<tr><td></td><td valign=top><em>attrs</em> </td><td>The set of attributes that apply to text. </td></tr>
<tr><td></td><td valign=top><em>cached_iter</em> </td><td>A cached attribute iterator, or null. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A vector of Pointer<Item>.</dd></dl>
<br>
See itemize(const char*, int, int, const AttrList&, AttrIterator*). </td>
</tr>
</table>
<a class="anchor" name="z1149_8" doxytag="GFC::Pango::Context::itemize" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> std::vector<<a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a><<a class="el" href="classGFC_1_1Pango_1_1Item.html">Item</a>> > GFC::Pango::Context::itemize </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="namespaceGFC_1_1Pango.html#a145">Direction</a> </td>
<td class="mdname" nowrap> <em>direction</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> & </td>
<td class="mdname" nowrap> <em>text</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>const <a class="el" href="classGFC_1_1Pango_1_1AttrList.html">AttrList</a> & </td>
<td class="mdname" nowrap> <em>attrs</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap><a class="el" href="classGFC_1_1Pango_1_1AttrIterator.html">AttrIterator</a> * </td>
<td class="mdname" nowrap> <em>cached_iter</em> = <code>0</code></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Breaks a piece of text into segments using the specified base <em>direction</em>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>direction</em> </td><td>The base direction to use for bidirectional processing. </td></tr>
<tr><td></td><td valign=top><em>text</em> </td><td>The text to itemize. </td></tr>
<tr><td></td><td valign=top><em>attrs</em> </td><td>The set of attributes that apply to text. </td></tr>
<tr><td></td><td valign=top><em>cached_iter</em> </td><td>A cached attribute iterator, or null. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A vector of Pointer<Item>.</dd></dl>
<br>
See itemize(const String&, const AttrList&, AttrIterator*). </td>
</tr>
</table>
<a class="anchor" name="z1149_7" doxytag="GFC::Pango::Context::itemize" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> std::vector<<a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a><<a class="el" href="classGFC_1_1Pango_1_1Item.html">Item</a>> > GFC::Pango::Context::itemize </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const char * </td>
<td class="mdname" nowrap> <em>text</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>int </td>
<td class="mdname" nowrap> <em>start_index</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>int </td>
<td class="mdname" nowrap> <em>length</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>const <a class="el" href="classGFC_1_1Pango_1_1AttrList.html">AttrList</a> & </td>
<td class="mdname" nowrap> <em>attrs</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap><a class="el" href="classGFC_1_1Pango_1_1AttrIterator.html">AttrIterator</a> * </td>
<td class="mdname" nowrap> <em>cached_iter</em> = <code>0</code></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Breaks a piece of text into segments with consistent directional level and shaping engine.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>text</em> </td><td>The text to itemize, starting at <em>start_index</em> </td></tr>
<tr><td></td><td valign=top><em>start_index</em> </td><td>The first byte in text to process. </td></tr>
<tr><td></td><td valign=top><em>length</em> </td><td>The number of bytes (not characters) to process after start_index. This must be >= 0. </td></tr>
<tr><td></td><td valign=top><em>attrs</em> </td><td>The set of attributes that apply to text. </td></tr>
<tr><td></td><td valign=top><em>cached_iter</em> </td><td>A cached attribute iterator, or null. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A vector of Pointer<Item>.</dd></dl>
<br>
Each byte of text will be contained in exactly one of the items in the returned vector. The generated vector of items will be in logical order (the start offsets of the items are ascending).<p>
<em>cached_iter</em> should be an iterator over <em>attrs</em> currently positioned at a range before or containing <em>start_index</em>; <em>cached_iter</em> will be advanced to the range covering the position just after <em>start_index</em> + <em>length</em>. (i.e. if itemizing in a loop, just keep passing in the same cached_iter). </td>
</tr>
</table>
<a class="anchor" name="z1149_6" doxytag="GFC::Pango::Context::itemize" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> std::vector<<a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a><<a class="el" href="classGFC_1_1Pango_1_1Item.html">Item</a>> > GFC::Pango::Context::itemize </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> & </td>
<td class="mdname" nowrap> <em>text</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>const <a class="el" href="classGFC_1_1Pango_1_1AttrList.html">AttrList</a> & </td>
<td class="mdname" nowrap> <em>attrs</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap><a class="el" href="classGFC_1_1Pango_1_1AttrIterator.html">AttrIterator</a> * </td>
<td class="mdname" nowrap> <em>cached_iter</em> = <code>0</code></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Breaks a piece of text into segments with consistent directional level and shaping engine.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>text</em> </td><td>The text to itemize. </td></tr>
<tr><td></td><td valign=top><em>attrs</em> </td><td>The set of attributes that apply to text. </td></tr>
<tr><td></td><td valign=top><em>cached_iter</em> </td><td>A cached attribute iterator, or null. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A vector of Pointer<Item>.</dd></dl>
<br>
Each byte of text will be contained in exactly one of the items in the returned vector. The generated vector of items will be in logical order (the start offsets of the items are ascending).<p>
<em>cached_iter</em> should be an iterator over <em>attrs</em> currently positioned at a range before or containing <em>start_index</em>; <em>cached_iter</em> will be advanced to the range covering the position just after <em>start_index</em> + <em>length</em>. (i.e. if itemizing in a loop, just keep passing in the same cached_iter). </td>
</tr>
</table>
<a class="anchor" name="z1149_0" doxytag="GFC::Pango::Context::list_families" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool GFC::Pango::Context::list_families </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">std::vector< <a class="el" href="classGFC_1_1Pango_1_1FontFamily.html">FontFamily</a> * > & </td>
<td class="mdname1" valign="top" nowrap> <em>families</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
List all the families for the context's fontmap.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>families</em> </td><td>A reference to a vector of FontFamily* to hold the font families. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><em>true</em> if the vector is not empty. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z1149_1" doxytag="GFC::Pango::Context::load_font" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="classGFC_1_1Pango_1_1Font.html">Font</a>* GFC::Pango::Context::load_font </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Pango_1_1FontDescription.html">FontDescription</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>desc</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Loads the font in one of the fontmaps in the context that is the closest match for <em>desc</em>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>desc</em> </td><td>A <a class="el" href="classGFC_1_1Pango_1_1FontDescription.html">FontDescription</a> describing the font to load. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The font loaded, or null if no font matched. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z1149_2" doxytag="GFC::Pango::Context::load_fontset" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="classGFC_1_1Pango_1_1Fontset.html">Fontset</a>* GFC::Pango::Context::load_fontset </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Pango_1_1FontDescription.html">FontDescription</a> & </td>
<td class="mdname" nowrap> <em>desc</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>PangoLanguage * </td>
<td class="mdname" nowrap> <em>language</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Load a set of fonts in the context that can be used to render a font matching <em>desc</em>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>desc</em> </td><td>A <a class="el" href="classGFC_1_1Pango_1_1FontDescription.html">FontDescription</a> describing the fonts to load. </td></tr>
<tr><td></td><td valign=top><em>language</em> </td><td>A PangoLanguage the fonts will be used for. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The fontset, or null if no font matched. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z1149_5" doxytag="GFC::Pango::Context::set_base_dir" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Pango::Context::set_base_dir </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="namespaceGFC_1_1Pango.html#a145">Direction</a> </td>
<td class="mdname1" valign="top" nowrap> <em>direction</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Sets the base direction for the context.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>direction</em> </td><td>The new base direction. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z1150_0" doxytag="GFC::Pango::Context::set_colormap" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Pango::Context::set_colormap </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Gdk_1_1Colormap.html">Gdk::Colormap</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>colormap</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Sets the colormap to be used for drawing with the context.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>colormap</em> </td><td>A Gdk::colormap.</td></tr>
</table>
</dl>
<br>
If you obtained your context from <a class="el" href="classGFC_1_1Gtk_1_1Widget.html#z1052_53">Gtk::Widget::get_pango_context()</a> or <a class="el" href="classGFC_1_1Gtk_1_1Widget.html#z1053_70">Gtk::Widget::create_pango_context()</a>, the colormap will already be set to the colormap for the widget, so you shouldn't need this method. </td>
</tr>
</table>
<a class="anchor" name="z1149_3" doxytag="GFC::Pango::Context::set_font_description" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Pango::Context::set_font_description </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Pango_1_1FontDescription.html">FontDescription</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>desc</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Set the default font description for the context.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>desc</em> </td><td>The new pango font description. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z1149_4" doxytag="GFC::Pango::Context::set_language" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Pango::Context::set_language </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">PangoLanguage * </td>
<td class="mdname1" valign="top" nowrap> <em>language</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Sets the global language tag for the context.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>language</em> </td><td>The new language tag. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="context_8hh-source.html">context.hh</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Aug 24 00:34:45 2004 for GFC-UI by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>
|