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
|
<!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::Gtk::RC Class Reference</h1>A C++ wrapper class for the various resource file functions.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="rc_8hh-source.html">gfc/gtk/rc.hh</a>></code>
<p>
<a href="classGFC_1_1Gtk_1_1RC-members.html">List of all members.</a><h2>Static Public Member Functions</h2>
<tr><td colspan="2"><div class="groupHeader">Accessors</div></td></tr>
<ul>
<li>std::vector< <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> > <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z742_0">get_default_files</a> ()
<dl class="el"><dd class="mdescRight">Retrieves the current list of <a class="el" href="classGFC_1_1Gtk_1_1RC.html">RC</a> files that will be parsed at the end of <a class="el" href="namespaceGFC_1_1Main.html#a2">Main::init()</a>. <a href="#z742_0"></a><br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1Style.html">Style</a> * <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z742_2">get_style_by_paths</a> (const <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Settings</a> &settings, const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &widget_path, const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &class_path, GType type)
<dl class="el"><dd class="mdescRight">Creates a <a class="el" href="classGFC_1_1Gtk_1_1Style.html">Style</a> from styles defined in a <a class="el" href="classGFC_1_1Gtk_1_1RC.html">RC</a> file by providing the raw components used in matching. <a href="#z742_2"></a><br></dl><li><a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z742_3">get_theme_dir</a> ()
<dl class="el"><dd class="mdescRight">Returns the standard directory in which themes should be installed (GTK+ does not actually use this directory itself). <a href="#z742_3"></a><br></dl><li><a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z742_4">get_module_dir</a> ()
<dl class="el"><dd class="mdescRight">Returns a directory in which GTK+ looks for theme engines. <a href="#z742_4"></a><br></dl><li><a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z742_5">get_im_module_file</a> ()
<dl class="el"><dd class="mdescRight">Obtains the path to the IM modules file (see the documentation of the GTK_IM_MODULE_FILE environment variable for more details). <a href="#z742_5"></a><br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1Style.html">Style</a> * <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z742_6">get_style</a> (const <a class="el" href="classGFC_1_1Gtk_1_1Widget.html">Widget</a> &widget)
<dl class="el"><dd class="mdescRight">Finds all matching <a class="el" href="classGFC_1_1Gtk_1_1RC.html">RC</a> styles for a given widget, composites them together, and then creates a <a class="el" href="classGFC_1_1Gtk_1_1Style.html">Style</a> representing the composite appearance. <a href="#z742_6"></a><br></dl><li><a class="anchor" name="z742_7" doxytag="GFC::Gtk::RC::get_scanner" ></a>
<a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a>< <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Scanner.html">G::Scanner</a> > <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z742_7">get_scanner</a> ()
<dl class="el"><dd class="mdescRight">Returns a properly initialized <a class="el" href="classGFC_1_1Gtk_1_1RC.html">RC</a> scanner. <br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Methods</div></td></tr>
<ul>
<li>void <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z743_1">add_default_file</a> (const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &filename)
<dl class="el"><dd class="mdescRight">Adds a file to the list of files to be parsed at the end of <a class="el" href="namespaceGFC_1_1Main.html#a2">Main::init()</a>. <a href="#z743_1"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z743_2">set_default_files</a> (const std::vector< <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> > &filenames)
<dl class="el"><dd class="mdescRight">Sets the list of files that will be read at the end of <a class="el" href="namespaceGFC_1_1Main.html#a2">Main::init()</a>. <a href="#z743_2"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z743_4">parse</a> (const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &filename)
<dl class="el"><dd class="mdescRight">Parses a given resource file. <a href="#z743_4"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z743_6">parse_string</a> (const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &rc_string)
<dl class="el"><dd class="mdescRight">Parses resource information directly from a string. <a href="#z743_6"></a><br></dl><li>bool <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z743_7">reparse_all</a> ()
<dl class="el"><dd class="mdescRight">If the modification time on any previously read file for the default <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Settings</a> has changed, discard all style information and then reread all previously read <a class="el" href="classGFC_1_1Gtk_1_1RC.html">RC</a> files. <a href="#z743_7"></a><br></dl><li>bool <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z743_8">reparse_all_for_settings</a> (const <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Settings</a> &settings, bool force_load)
<dl class="el"><dd class="mdescRight">If the modification time on any previously read file for the default <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Settings</a> has changed, discard all style information and then reread all previously read <a class="el" href="classGFC_1_1Gtk_1_1RC.html">RC</a> files. <a href="#z743_8"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z743_9">reset_styles</a> (const <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Settings</a> &settings)
<dl class="el"><dd class="mdescRight">Recomputes the styles for all widgets that use a particular <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Settings</a> object. <a href="#z743_9"></a><br></dl><li><a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z743_11">find_pixmap_in_path</a> (const <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Settings</a> &settings, const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &pixmap_file, const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Scanner.html">G::Scanner</a> *scanner=0)
<dl class="el"><dd class="mdescRight">Looks up a file in pixmap path for the specified <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Settings</a>. <a href="#z743_11"></a><br></dl><li>unsigned int <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z743_12">parse_color</a> (const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Scanner.html">G::Scanner</a> &scanner, <a class="el" href="classGFC_1_1Gdk_1_1Color.html">Gdk::Color</a> &color)
<dl class="el"><dd class="mdescRight">Parses a color in the format expected in a <a class="el" href="classGFC_1_1Gtk_1_1RC.html">RC</a> file. <a href="#z743_12"></a><br></dl><li>unsigned int <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z743_13">parse_state</a> (const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Scanner.html">G::Scanner</a> &scanner, <a class="el" href="namespaceGFC_1_1Gtk.html#a340">StateType</a> &state)
<dl class="el"><dd class="mdescRight">Parses a StateType variable from the format expected in a <a class="el" href="classGFC_1_1Gtk_1_1RC.html">RC</a> file. <a href="#z743_13"></a><br></dl></ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A C++ wrapper class for the various resource file functions.
<p>
GTK+ provides a resource file mechanism for configuring various aspects of the operation of a GTK+ program at runtime. <a class="elRef" doxygen="gfccore.tag:" href="namespaceGFC.html">GFC</a> wraps the API for managing resource files into a one convenient class, called <a class="el" href="classGFC_1_1Gtk_1_1RC.html">RC</a>.<p>
<b>Default files</b><p>
An application can cause GTK+ to parse a specific <a class="el" href="classGFC_1_1Gtk_1_1RC.html">RC</a> file by calling <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z743_4">Gtk::RC::parse()</a>. In addition to this, certain files will be read at the end of <a class="el" href="namespaceGFC_1_1Main.html#a2">Main::init()</a>. Unless modified, the files looked for will be <SYSCONFDIR>/gtk-2.0/gtkrc and .gtkrc-2.0 in the users home directory. (<SYSCONFDIR> defaults to /usr/local/etc. It can be changed with the --prefix or --sysconfdir options when configuring GTK+.)<p>
The set of these default files can be retrieved with <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z742_0">Gtk::RC::get_default_files()</a> and modified with <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z743_1">Gtk::RC::add_default_file()</a> and <a class="el" href="classGFC_1_1Gtk_1_1RC.html#z743_2">Gtk::RC::set_default_files()</a>. Additionally, the GTK2_RC_FILES environment variable can be set to a G_SEARCHPATH_SEPARATOR_S-separated list of files in order to overwrite the set of default files at runtime.<p>
For each <a class="el" href="classGFC_1_1Gtk_1_1RC.html">RC</a> file, in addition to the file itself, GTK+ will look for a locale-specific file that will be parsed after the main file. For instance, if LANG is set to ja_JP.ujis, when loading the default file ~/.gtkrc then GTK+ looks for ~/.gtkrc.ja_JP and ~/.gtkrc.ja, and parses the first of those that exists.<p>
For information on writing <a class="el" href="classGFC_1_1Gtk_1_1RC.html">RC</a> files, see the GTK+ reference documentation: Resource Files.
<p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="z743_1" doxytag="GFC::Gtk::RC::add_default_file" ></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::Gtk::RC::add_default_file </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="mdname1" valign="top" nowrap> <em>filename</em> </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>
Adds a file to the list of files to be parsed at the end of <a class="el" href="namespaceGFC_1_1Main.html#a2">Main::init()</a>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>filename</em> </td><td>The pathname to the file.</td></tr>
</table>
</dl>
<br>
If filename is not absolute, it is searched in the current directory. </td>
</tr>
</table>
<a class="anchor" name="z743_11" doxytag="GFC::Gtk::RC::find_pixmap_in_path" ></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_1String.html">String</a> GFC::Gtk::RC::find_pixmap_in_path </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Settings</a> & </td>
<td class="mdname" nowrap> <em>settings</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>pixmap_file</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_1G_1_1Scanner.html">G::Scanner</a> * </td>
<td class="mdname" nowrap> <em>scanner</em> = <code>0</code></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Looks up a file in pixmap path for the specified <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Settings</a>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>settings</em> </td><td>A <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Settings</a> object. </td></tr>
<tr><td></td><td valign=top><em>pixmap_file</em> </td><td>The name of the pixmap file to locate. </td></tr>
<tr><td></td><td valign=top><em>scanner</em> </td><td>A scanner used to get line number information for the warning message, or null. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The filename.</dd></dl>
<br>
If the file is not found, it outputs a warning message using g_warning() and returns a null <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a>. </td>
</tr>
</table>
<a class="anchor" name="z742_0" doxytag="GFC::Gtk::RC::get_default_files" ></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_1String.html">String</a>> GFC::Gtk::RC::get_default_files </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </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>
Retrieves the current list of <a class="el" href="classGFC_1_1Gtk_1_1RC.html">RC</a> files that will be parsed at the end of <a class="el" href="namespaceGFC_1_1Main.html#a2">Main::init()</a>.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>A vector of <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> that holds the list of filenames. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z742_5" doxytag="GFC::Gtk::RC::get_im_module_file" ></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_1String.html">String</a> GFC::Gtk::RC::get_im_module_file </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </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>
Obtains the path to the IM modules file (see the documentation of the GTK_IM_MODULE_FILE environment variable for more details).
<p>
<dl compact><dt><b>Returns:</b></dt><dd>A <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> containing the name of the file listing the IM modules available for loading. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z742_4" doxytag="GFC::Gtk::RC::get_module_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="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> GFC::Gtk::RC::get_module_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><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Returns a directory in which GTK+ looks for theme engines.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The directory.</dd></dl>
<br>
For full information about the search for theme engines, see the docs for GTK_PATH in Running GTK+ Applications(3). </td>
</tr>
</table>
<a class="anchor" name="z742_6" doxytag="GFC::Gtk::RC::get_style" ></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_1Gtk_1_1Style.html">Style</a>* GFC::Gtk::RC::get_style </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Gtk_1_1Widget.html">Widget</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>widget</em> </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>
Finds all matching <a class="el" href="classGFC_1_1Gtk_1_1RC.html">RC</a> styles for a given widget, composites them together, and then creates a <a class="el" href="classGFC_1_1Gtk_1_1Style.html">Style</a> representing the composite appearance.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>widget</em> </td><td>A GtkWidget. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The resulting style.</dd></dl>
<br>
GTK+ actually keeps a cache of previously created styles, so a new style may not be created. No refcount is added to the returned style, so if you want to save this style, you should add a reference yourself. </td>
</tr>
</table>
<a class="anchor" name="z742_2" doxytag="GFC::Gtk::RC::get_style_by_paths" ></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_1Gtk_1_1Style.html">Style</a>* GFC::Gtk::RC::get_style_by_paths </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Settings</a> & </td>
<td class="mdname" nowrap> <em>settings</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>widget_path</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>class_path</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>GType </td>
<td class="mdname" nowrap> <em>type</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Creates a <a class="el" href="classGFC_1_1Gtk_1_1Style.html">Style</a> from styles defined in a <a class="el" href="classGFC_1_1Gtk_1_1RC.html">RC</a> file by providing the raw components used in matching.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>settings</em> </td><td>A <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Settings</a> object. </td></tr>
<tr><td></td><td valign=top><em>widget_path</em> </td><td>The widget path to use when looking up the style, or null if no matching against the widget path should be done. </td></tr>
<tr><td></td><td valign=top><em>class_path</em> </td><td>The class path to use when looking up the style, or null if no matching against the class path should be done. </td></tr>
<tr><td></td><td valign=top><em>type</em> </td><td>A type that will be used along with parent types of this type when matching against class styles, or G_TYPE_NONE </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A style created by matching with the supplied paths, or null if nothing matching was specified and the default style should be used.</dd></dl>
<br>
This function may be useful when creating pseudo-widgets that should be themed like widgets but don't actually have corresponding GTK+ widgets. An example of this would be items inside a GNOME canvas widget. The returned value is owned by GTK+ as part of an internal cache, so you must call ref() on the returned value if you want to keep a reference to it. </td>
</tr>
</table>
<a class="anchor" name="z742_3" doxytag="GFC::Gtk::RC::get_theme_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="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> GFC::Gtk::RC::get_theme_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><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Returns the standard directory in which themes should be installed (GTK+ does not actually use this directory itself).
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The directory. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z743_4" doxytag="GFC::Gtk::RC::parse" ></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::Gtk::RC::parse </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="mdname1" valign="top" nowrap> <em>filename</em> </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>
Parses a given resource file.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>filename</em> </td><td>The name of a file to parse.</td></tr>
</table>
</dl>
<br>
If filename is not absolute, it is searched for in the current directory. </td>
</tr>
</table>
<a class="anchor" name="z743_12" doxytag="GFC::Gtk::RC::parse_color" ></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"> unsigned int GFC::Gtk::RC::parse_color </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Scanner.html">G::Scanner</a> & </td>
<td class="mdname" nowrap> <em>scanner</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap><a class="el" href="classGFC_1_1Gdk_1_1Color.html">Gdk::Color</a> & </td>
<td class="mdname" nowrap> <em>color</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Parses a color in the format expected in a <a class="el" href="classGFC_1_1Gtk_1_1RC.html">RC</a> file.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>scanner</em> </td><td>A Scanner. </td></tr>
<tr><td></td><td valign=top><em>color</em> </td><td>A reference to a <a class="el" href="classGFC_1_1Gdk_1_1Color.html">Gdk::Color</a> that will to store the result. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>G_TOKEN_NONE if parsing succeeded, otherwise the token that was expected but not found. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z743_13" doxytag="GFC::Gtk::RC::parse_state" ></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"> unsigned int GFC::Gtk::RC::parse_state </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Scanner.html">G::Scanner</a> & </td>
<td class="mdname" nowrap> <em>scanner</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap><a class="el" href="namespaceGFC_1_1Gtk.html#a340">StateType</a> & </td>
<td class="mdname" nowrap> <em>state</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Parses a StateType variable from the format expected in a <a class="el" href="classGFC_1_1Gtk_1_1RC.html">RC</a> file.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>scanner</em> </td><td>A Scanner (must be initialized for parsing an <a class="el" href="classGFC_1_1Gtk_1_1RC.html">RC</a> file) </td></tr>
<tr><td></td><td valign=top><em>state</em> </td><td>A reference to a StateType variable in which to store the result. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>G_TOKEN_NONE if parsing succeeded, otherwise the token that was expected but not found. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z743_6" doxytag="GFC::Gtk::RC::parse_string" ></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::Gtk::RC::parse_string </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="mdname1" valign="top" nowrap> <em>rc_string</em> </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>
Parses resource information directly from a string.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>rc_string</em> </td><td>A string to parse. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z743_7" doxytag="GFC::Gtk::RC::reparse_all" ></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::Gtk::RC::reparse_all </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </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>
If the modification time on any previously read file for the default <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Settings</a> has changed, discard all style information and then reread all previously read <a class="el" href="classGFC_1_1Gtk_1_1RC.html">RC</a> files.
<p>
<dl compact><dt><b>Returns:</b></dt><dd><em>true</em> if the files were reread. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z743_8" doxytag="GFC::Gtk::RC::reparse_all_for_settings" ></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::Gtk::RC::reparse_all_for_settings </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Settings</a> & </td>
<td class="mdname" nowrap> <em>settings</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>bool </td>
<td class="mdname" nowrap> <em>force_load</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
If the modification time on any previously read file for the default <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Settings</a> has changed, discard all style information and then reread all previously read <a class="el" href="classGFC_1_1Gtk_1_1RC.html">RC</a> files.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>settings</em> </td><td>A <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Settings</a> object. </td></tr>
<tr><td></td><td valign=top><em>force_load</em> </td><td>If <em>true</em> load whether or not anything changed. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><em>true</em> if the files were reread. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z743_9" doxytag="GFC::Gtk::RC::reset_styles" ></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::Gtk::RC::reset_styles </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Settings</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>settings</em> </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>
Recomputes the styles for all widgets that use a particular <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Settings</a> object.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>settings</em> </td><td>A <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Settings</a> object.</td></tr>
</table>
</dl>
<br>
There is one <a class="el" href="classGFC_1_1Gtk_1_1Settings.html">Gtk::Settings</a> object per <a class="el" href="classGFC_1_1Gdk_1_1Screen.html">Gdk::Screen</a> (see Gtk::Settings::get_for_screen()). This method is useful when some global parameter has changed that affects the appearance of all widgets, because when a widget gets a new style, it will both redraw and recompute any cached information about its appearance. As an example, it is used when the default font size set by the operating system changes. Note that this function doesn't affect widgets that have a style set explicitely on them with <a class="el" href="classGFC_1_1Gtk_1_1Widget.html#z1053_62">Gtk::Widget::set_style()</a>. </td>
</tr>
</table>
<a class="anchor" name="z743_2" doxytag="GFC::Gtk::RC::set_default_files" ></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::Gtk::RC::set_default_files </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const std::vector< <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> > & </td>
<td class="mdname1" valign="top" nowrap> <em>filenames</em> </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>
Sets the list of files that will be read at the end of <a class="el" href="namespaceGFC_1_1Main.html#a2">Main::init()</a>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>filenames</em> </td><td>A vector of <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> that holds the list of filenames. </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="rc_8hh-source.html">rc.hh</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Aug 24 00:34:41 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>
|