/usr/share/gtk-doc/html/gdict/gdict-GdictContext.html is in libgdict-1.0-dev 3.4.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GdictContext</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GNOME Dictionary Library Reference Manual">
<link rel="up" href="context.html" title="Dictionary Context">
<link rel="prev" href="context.html" title="Dictionary Context">
<link rel="next" href="context-types.html" title="Context Implementations">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="context.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="context.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GNOME Dictionary Library Reference Manual</th>
<td><a accesskey="n" href="context-types.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gdict-GdictContext.synopsis" class="shortcut">Top</a>
|
<a href="#gdict-GdictContext.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gdict-GdictContext"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gdict-GdictContext.top_of_page"></a>GdictContext</span></h2>
<p>GdictContext — Interface for dictionary transports</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gdict-GdictContext.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">struct <a class="link" href="gdict-GdictContext.html#GdictContextIface" title="struct GdictContextIface">GdictContextIface</a>;
enum <a class="link" href="gdict-GdictContext.html#GdictContextError" title="enum GdictContextError">GdictContextError</a>;
<span class="returnvalue">void</span> <a class="link" href="gdict-GdictContext.html#gdict-context-set-local-only" title="gdict_context_set_local_only ()">gdict_context_set_local_only</a> (<em class="parameter"><code><span class="type">GdictContext</span> *context</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> local_only</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="gdict-GdictContext.html#gdict-context-get-local-only" title="gdict_context_get_local_only ()">gdict_context_get_local_only</a> (<em class="parameter"><code><span class="type">GdictContext</span> *context</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="gdict-GdictContext.html#gdict-context-lookup-databases" title="gdict_context_lookup_databases ()">gdict_context_lookup_databases</a> (<em class="parameter"><code><span class="type">GdictContext</span> *context</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="gdict-GdictContext.html#gdict-context-lookup-strategies" title="gdict_context_lookup_strategies ()">gdict_context_lookup_strategies</a> (<em class="parameter"><code><span class="type">GdictContext</span> *context</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="gdict-GdictContext.html#gdict-context-match-word" title="gdict_context_match_word ()">gdict_context_match_word</a> (<em class="parameter"><code><span class="type">GdictContext</span> *context</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *database</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *strategy</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *word</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="gdict-GdictContext.html#gdict-context-define-word" title="gdict_context_define_word ()">gdict_context_define_word</a> (<em class="parameter"><code><span class="type">GdictContext</span> *context</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *database</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *word</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a class="link" href="gdict-GdictContext.html#GdictDatabase" title="GdictDatabase">GdictDatabase</a>;
<a class="link" href="gdict-GdictContext.html#GdictDatabase" title="GdictDatabase"><span class="returnvalue">GdictDatabase</span></a> * <a class="link" href="gdict-GdictContext.html#gdict-database-ref" title="gdict_database_ref ()">gdict_database_ref</a> (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictDatabase" title="GdictDatabase"><span class="type">GdictDatabase</span></a> *db</code></em>);
<span class="returnvalue">void</span> <a class="link" href="gdict-GdictContext.html#gdict-database-unref" title="gdict_database_unref ()">gdict_database_unref</a> (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictDatabase" title="GdictDatabase"><span class="type">GdictDatabase</span></a> *db</code></em>);
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="gdict-GdictContext.html#gdict-database-get-name" title="gdict_database_get_name ()">gdict_database_get_name</a> (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictDatabase" title="GdictDatabase"><span class="type">GdictDatabase</span></a> *db</code></em>);
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="gdict-GdictContext.html#gdict-database-get-full-name" title="gdict_database_get_full_name ()">gdict_database_get_full_name</a> (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictDatabase" title="GdictDatabase"><span class="type">GdictDatabase</span></a> *db</code></em>);
<a class="link" href="gdict-GdictContext.html#GdictStrategy" title="GdictStrategy">GdictStrategy</a>;
<a class="link" href="gdict-GdictContext.html#GdictStrategy" title="GdictStrategy"><span class="returnvalue">GdictStrategy</span></a> * <a class="link" href="gdict-GdictContext.html#gdict-strategy-ref" title="gdict_strategy_ref ()">gdict_strategy_ref</a> (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictStrategy" title="GdictStrategy"><span class="type">GdictStrategy</span></a> *strat</code></em>);
<span class="returnvalue">void</span> <a class="link" href="gdict-GdictContext.html#gdict-strategy-unref" title="gdict_strategy_unref ()">gdict_strategy_unref</a> (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictStrategy" title="GdictStrategy"><span class="type">GdictStrategy</span></a> *strat</code></em>);
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="gdict-GdictContext.html#gdict-strategy-get-name" title="gdict_strategy_get_name ()">gdict_strategy_get_name</a> (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictStrategy" title="GdictStrategy"><span class="type">GdictStrategy</span></a> *strat</code></em>);
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="gdict-GdictContext.html#gdict-strategy-get-description" title="gdict_strategy_get_description ()">gdict_strategy_get_description</a> (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictStrategy" title="GdictStrategy"><span class="type">GdictStrategy</span></a> *strat</code></em>);
<a class="link" href="gdict-GdictContext.html#GdictMatch" title="GdictMatch">GdictMatch</a>;
<a class="link" href="gdict-GdictContext.html#GdictMatch" title="GdictMatch"><span class="returnvalue">GdictMatch</span></a> * <a class="link" href="gdict-GdictContext.html#gdict-match-ref" title="gdict_match_ref ()">gdict_match_ref</a> (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictMatch" title="GdictMatch"><span class="type">GdictMatch</span></a> *match</code></em>);
<span class="returnvalue">void</span> <a class="link" href="gdict-GdictContext.html#gdict-match-unref" title="gdict_match_unref ()">gdict_match_unref</a> (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictMatch" title="GdictMatch"><span class="type">GdictMatch</span></a> *match</code></em>);
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="gdict-GdictContext.html#gdict-match-get-word" title="gdict_match_get_word ()">gdict_match_get_word</a> (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictMatch" title="GdictMatch"><span class="type">GdictMatch</span></a> *match</code></em>);
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="gdict-GdictContext.html#gdict-match-get-database" title="gdict_match_get_database ()">gdict_match_get_database</a> (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictMatch" title="GdictMatch"><span class="type">GdictMatch</span></a> *match</code></em>);
<a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition">GdictDefinition</a>;
<a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="returnvalue">GdictDefinition</span></a> * <a class="link" href="gdict-GdictContext.html#gdict-definition-ref" title="gdict_definition_ref ()">gdict_definition_ref</a> (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a> *def</code></em>);
<span class="returnvalue">void</span> <a class="link" href="gdict-GdictContext.html#gdict-definition-unref" title="gdict_definition_unref ()">gdict_definition_unref</a> (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a> *def</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <a class="link" href="gdict-GdictContext.html#gdict-definition-get-total" title="gdict_definition_get_total ()">gdict_definition_get_total</a> (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a> *def</code></em>);
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="gdict-GdictContext.html#gdict-definition-get-word" title="gdict_definition_get_word ()">gdict_definition_get_word</a> (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a> *def</code></em>);
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="gdict-GdictContext.html#gdict-definition-get-database" title="gdict_definition_get_database ()">gdict_definition_get_database</a> (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a> *def</code></em>);
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="gdict-GdictContext.html#gdict-definition-get-text" title="gdict_definition_get_text ()">gdict_definition_get_text</a> (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a> *def</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gdict-GdictContext.description"></a><h2>Description</h2>
<p>
<span class="type">GdictContext</span> is an interface used to uniformly access dictionary
transport objects. Each implementation of <span class="type">GdictContext</span> must provide
functions for accessing the list of databases available on a dictionary
source and the available matching strategies; a function for retrieving
all words matching a given string, inside one (or more) of those databases
and using one of those strategies; a function for querying one (or more)
of those databases for a definition of a word.
</p>
<p>
Implementations of the <span class="type">GdictContext</span> interface should query their
dictionary sources asynchronously; methods of the <span class="type">GdictContext</span> interface
should return immediately, and each time a new database, strategy, match
or definition has been found, a signal should be fired by those
implementations.
</p>
</div>
<div class="refsect1">
<a name="gdict-GdictContext.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GdictContextIface"></a><h3>struct GdictContextIface</h3>
<pre class="programlisting">struct GdictContextIface {
/* methods, not signals */
gboolean (*get_databases) (GdictContext *context,
GError **error);
gboolean (*get_strategies) (GdictContext *context,
GError **error);
gboolean (*match_word) (GdictContext *context,
const gchar *database,
const gchar *strategy,
const gchar *word,
GError **error);
gboolean (*define_word) (GdictContext *context,
const gchar *database,
const gchar *word,
GError **error);
/* signals */
void (*lookup_start) (GdictContext *context);
void (*lookup_end) (GdictContext *context);
void (*database_found) (GdictContext *context,
GdictDatabase *database);
void (*strategy_found) (GdictContext *context,
GdictStrategy *strategy);
void (*match_found) (GdictContext *context,
GdictMatch *match);
void (*definition_found) (GdictContext *context,
GdictDefinition *definition);
/* fired each time there's an error; the GError is owned
* by the context, and should never be modified or freed
*/
void (*error) (GdictContext *context,
const GError *error);
};
</pre>
<p>
Interface defintion
</p>
</div>
<hr>
<div class="refsect2">
<a name="GdictContextError"></a><h3>enum GdictContextError</h3>
<pre class="programlisting">typedef enum {
GDICT_CONTEXT_ERROR_PARSE,
GDICT_CONTEXT_ERROR_NOT_IMPLEMENTED,
GDICT_CONTEXT_ERROR_INVALID_DATABASE,
GDICT_CONTEXT_ERROR_INVALID_STRATEGY,
GDICT_CONTEXT_ERROR_INVALID_COMMAND,
GDICT_CONTEXT_ERROR_NO_MATCH,
GDICT_CONTEXT_ERROR_NO_DATABASES,
GDICT_CONTEXT_ERROR_NO_STRATEGIES
} GdictContextError;
</pre>
<p>
<span class="type">GdictContext</span> error enumeration.
</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-context-set-local-only"></a><h3>gdict_context_set_local_only ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gdict_context_set_local_only (<em class="parameter"><code><span class="type">GdictContext</span> *context</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> local_only</code></em>);</pre>
<p>
Sets whether only local resources will be used when querying for databases,
strategies, matches or definitions.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <span class="type">GdictContext</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>local_only</code></em> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if only local resources will be used</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-context-get-local-only"></a><h3>gdict_context_get_local_only ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gdict_context_get_local_only (<em class="parameter"><code><span class="type">GdictContext</span> *context</code></em>);</pre>
<p>
Gets whether only local resources will be used when querying.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <span class="type">GdictContext</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if only local resources will be used.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-context-lookup-databases"></a><h3>gdict_context_lookup_databases ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gdict_context_lookup_databases (<em class="parameter"><code><span class="type">GdictContext</span> *context</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Query <em class="parameter"><code>context</code></em> for the list of databases available. Each time a
database is found, the "database-found" signal is fired.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <span class="type">GdictContext</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>return location for a <a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the query was successfully started.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-context-lookup-strategies"></a><h3>gdict_context_lookup_strategies ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gdict_context_lookup_strategies (<em class="parameter"><code><span class="type">GdictContext</span> *context</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Query <em class="parameter"><code>context</code></em> for the list of matching strategies available. Each
time a new strategy is found, the "strategy-found" signal is fired.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <span class="type">GdictContext</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>return location for a <a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the query was successfully started.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-context-match-word"></a><h3>gdict_context_match_word ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gdict_context_match_word (<em class="parameter"><code><span class="type">GdictContext</span> *context</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *database</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *strategy</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *word</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Query <em class="parameter"><code>context</code></em> for a list of word matching <em class="parameter"><code>word</code></em> inside <em class="parameter"><code>database</code></em>,
using <em class="parameter"><code>strategy</code></em> as a matching strategy. Each time a matching word
is found, the "match-found" signal is fired.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <span class="type">GdictContext</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>database</code></em> :</span></p></td>
<td>a database name to search into, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for the
default database</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>strategy</code></em> :</span></p></td>
<td>a strategy name to use for matching, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for
the default strategy</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>word</code></em> :</span></p></td>
<td>the word to match</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>return location for a <a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the query was successfully started.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-context-define-word"></a><h3>gdict_context_define_word ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gdict_context_define_word (<em class="parameter"><code><span class="type">GdictContext</span> *context</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *database</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *word</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Query <em class="parameter"><code>context</code></em> for a list of definitions of <em class="parameter"><code>word</code></em> inside <em class="parameter"><code>database</code></em>. Each
time a new definition is found, the "definition-found" signal is fired.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <span class="type">GdictContext</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>database</code></em> :</span></p></td>
<td>a database name to search into, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for the
default database</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>word</code></em> :</span></p></td>
<td>the word to search</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>return location for a <a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the query was successfully sent.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="GdictDatabase"></a><h3>GdictDatabase</h3>
<pre class="programlisting">typedef struct _GdictDatabase GdictDatabase;</pre>
<p>
A <a class="link" href="gdict-GdictContext.html#GdictDatabase" title="GdictDatabase"><span class="type">GdictDatabase</span></a> represents a database inside a dictionary source.
</p>
<p>
The <a class="link" href="gdict-GdictContext.html#GdictDatabase" title="GdictDatabase"><span class="type">GdictDatabase</span></a> structure is private and should only be accessed
using the available functions.
</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-database-ref"></a><h3>gdict_database_ref ()</h3>
<pre class="programlisting"><a class="link" href="gdict-GdictContext.html#GdictDatabase" title="GdictDatabase"><span class="returnvalue">GdictDatabase</span></a> * gdict_database_ref (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictDatabase" title="GdictDatabase"><span class="type">GdictDatabase</span></a> *db</code></em>);</pre>
<p>
Increases the reference count of <em class="parameter"><code>db</code></em> by one.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="gdict-GdictContext.html#GdictDatabase" title="GdictDatabase"><span class="type">GdictDatabase</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<em class="parameter"><code>db</code></em> with its reference count increased</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-database-unref"></a><h3>gdict_database_unref ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gdict_database_unref (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictDatabase" title="GdictDatabase"><span class="type">GdictDatabase</span></a> *db</code></em>);</pre>
<p>
Decreases the reference count of <em class="parameter"><code>db</code></em> by one. If the reference count reaches
zero, <em class="parameter"><code>db</code></em> is destroyed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="gdict-GdictContext.html#GdictDatabase" title="GdictDatabase"><span class="type">GdictDatabase</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-database-get-name"></a><h3>gdict_database_get_name ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gdict_database_get_name (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictDatabase" title="GdictDatabase"><span class="type">GdictDatabase</span></a> *db</code></em>);</pre>
<p>
Gets the short name of the database, to be used with functions like
<a class="link" href="gdict-GdictContext.html#gdict-context-match-word" title="gdict_context_match_word ()"><code class="function">gdict_context_match_word()</code></a> or <a class="link" href="gdict-GdictContext.html#gdict-context-define-word" title="gdict_context_define_word ()"><code class="function">gdict_context_define_word()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="gdict-GdictContext.html#GdictDatabase" title="GdictDatabase"><span class="type">GdictDatabase</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the short name of the database. The string is owned by
the <a class="link" href="gdict-GdictContext.html#GdictDatabase" title="GdictDatabase"><span class="type">GdictDatabase</span></a> object, and should never be modified or freed.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-database-get-full-name"></a><h3>gdict_database_get_full_name ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gdict_database_get_full_name (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictDatabase" title="GdictDatabase"><span class="type">GdictDatabase</span></a> *db</code></em>);</pre>
<p>
Gets the full name of the database, suitable for display.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>a <a class="link" href="gdict-GdictContext.html#GdictDatabase" title="GdictDatabase"><span class="type">GdictDatabase</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the full name of the database. The string is owned by
the <a class="link" href="gdict-GdictContext.html#GdictDatabase" title="GdictDatabase"><span class="type">GdictDatabase</span></a> object, and should never be modified or freed.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="GdictStrategy"></a><h3>GdictStrategy</h3>
<pre class="programlisting">typedef struct _GdictStrategy GdictStrategy;</pre>
<p>
A <a class="link" href="gdict-GdictContext.html#GdictStrategy" title="GdictStrategy"><span class="type">GdictStrategy</span></a> represents a matching strategy implemented by
a dictionary source.
</p>
<p>
The <a class="link" href="gdict-GdictContext.html#GdictStrategy" title="GdictStrategy"><span class="type">GdictStrategy</span></a> structure is private and should only be accessed
using the available functions.
</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-strategy-ref"></a><h3>gdict_strategy_ref ()</h3>
<pre class="programlisting"><a class="link" href="gdict-GdictContext.html#GdictStrategy" title="GdictStrategy"><span class="returnvalue">GdictStrategy</span></a> * gdict_strategy_ref (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictStrategy" title="GdictStrategy"><span class="type">GdictStrategy</span></a> *strat</code></em>);</pre>
<p>
Increases the reference count of <em class="parameter"><code>strat</code></em> by one.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>strat</code></em> :</span></p></td>
<td>a <a class="link" href="gdict-GdictContext.html#GdictStrategy" title="GdictStrategy"><span class="type">GdictStrategy</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="gdict-GdictContext.html#GdictStrategy" title="GdictStrategy"><span class="type">GdictStrategy</span></a> object with its reference count
increased</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-strategy-unref"></a><h3>gdict_strategy_unref ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gdict_strategy_unref (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictStrategy" title="GdictStrategy"><span class="type">GdictStrategy</span></a> *strat</code></em>);</pre>
<p>
Decreases the reference count of <em class="parameter"><code>strat</code></em> by one. If the reference count
reaches zero, the <a class="link" href="gdict-GdictContext.html#GdictStrategy" title="GdictStrategy"><span class="type">GdictStrategy</span></a> object is freed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>strat</code></em> :</span></p></td>
<td>a <a class="link" href="gdict-GdictContext.html#GdictStrategy" title="GdictStrategy"><span class="type">GdictStrategy</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-strategy-get-name"></a><h3>gdict_strategy_get_name ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gdict_strategy_get_name (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictStrategy" title="GdictStrategy"><span class="type">GdictStrategy</span></a> *strat</code></em>);</pre>
<p>
FIXME
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>strat</code></em> :</span></p></td>
<td>a <a class="link" href="gdict-GdictContext.html#GdictStrategy" title="GdictStrategy"><span class="type">GdictStrategy</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>FIXME</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-strategy-get-description"></a><h3>gdict_strategy_get_description ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gdict_strategy_get_description (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictStrategy" title="GdictStrategy"><span class="type">GdictStrategy</span></a> *strat</code></em>);</pre>
<p>
FIXME
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>strat</code></em> :</span></p></td>
<td>a <a class="link" href="gdict-GdictContext.html#GdictStrategy" title="GdictStrategy"><span class="type">GdictStrategy</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>FIXME</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="GdictMatch"></a><h3>GdictMatch</h3>
<pre class="programlisting">typedef struct _GdictMatch GdictMatch;</pre>
<p>
A <a class="link" href="gdict-GdictContext.html#GdictMatch" title="GdictMatch"><span class="type">GdictMatch</span></a> represents a single match for the searched word.
</p>
<p>
The <a class="link" href="gdict-GdictContext.html#GdictMatch" title="GdictMatch"><span class="type">GdictMatch</span></a> structure is private and should only be accessed
using the available functions.
</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-match-ref"></a><h3>gdict_match_ref ()</h3>
<pre class="programlisting"><a class="link" href="gdict-GdictContext.html#GdictMatch" title="GdictMatch"><span class="returnvalue">GdictMatch</span></a> * gdict_match_ref (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictMatch" title="GdictMatch"><span class="type">GdictMatch</span></a> *match</code></em>);</pre>
<p>
FIXME
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>match</code></em> :</span></p></td>
<td>a <a class="link" href="gdict-GdictContext.html#GdictMatch" title="GdictMatch"><span class="type">GdictMatch</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>FIXME</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-match-unref"></a><h3>gdict_match_unref ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gdict_match_unref (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictMatch" title="GdictMatch"><span class="type">GdictMatch</span></a> *match</code></em>);</pre>
<p>
FIXME
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>match</code></em> :</span></p></td>
<td>a <a class="link" href="gdict-GdictContext.html#GdictMatch" title="GdictMatch"><span class="type">GdictMatch</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-match-get-word"></a><h3>gdict_match_get_word ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gdict_match_get_word (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictMatch" title="GdictMatch"><span class="type">GdictMatch</span></a> *match</code></em>);</pre>
<p>
FIXME
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>match</code></em> :</span></p></td>
<td>a <a class="link" href="gdict-GdictContext.html#GdictMatch" title="GdictMatch"><span class="type">GdictMatch</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>FIXME</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-match-get-database"></a><h3>gdict_match_get_database ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gdict_match_get_database (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictMatch" title="GdictMatch"><span class="type">GdictMatch</span></a> *match</code></em>);</pre>
<p>
FIXME
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>match</code></em> :</span></p></td>
<td>a <a class="link" href="gdict-GdictContext.html#GdictMatch" title="GdictMatch"><span class="type">GdictMatch</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>FIXME</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="GdictDefinition"></a><h3>GdictDefinition</h3>
<pre class="programlisting">typedef struct _GdictDefinition GdictDefinition;</pre>
<p>
A <a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a> represents a single definition for the searched
word.
</p>
<p>
The <a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a> structure is private and should only be
accessed using the available functions.
</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-definition-ref"></a><h3>gdict_definition_ref ()</h3>
<pre class="programlisting"><a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="returnvalue">GdictDefinition</span></a> * gdict_definition_ref (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a> *def</code></em>);</pre>
<p>
Increases the reference count of <em class="parameter"><code>def</code></em> by one.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>def</code></em> :</span></p></td>
<td>a <a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a> object with its reference count
increased.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-definition-unref"></a><h3>gdict_definition_unref ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gdict_definition_unref (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a> *def</code></em>);</pre>
<p>
Decreases the reference count of <em class="parameter"><code>def</code></em> by one. If the reference count
reaches zero, the <a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a> object is freed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>def</code></em> :</span></p></td>
<td>a <a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-definition-get-total"></a><h3>gdict_definition_get_total ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> gdict_definition_get_total (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a> *def</code></em>);</pre>
<p>
Retrieves the total number of definitions that were found on a
dictionary.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>def</code></em> :</span></p></td>
<td>a <a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the number of definitions.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-definition-get-word"></a><h3>gdict_definition_get_word ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gdict_definition_get_word (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a> *def</code></em>);</pre>
<p>
Retrieves the word used by the dictionary database to store
the definition.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>def</code></em> :</span></p></td>
<td>a <a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a word. The returned string is owned by the
<a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a> object and should not be modified or freed.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-definition-get-database"></a><h3>gdict_definition_get_database ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gdict_definition_get_database (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a> *def</code></em>);</pre>
<p>
Retrieves the full name of the dictionary database where the
definition is stored.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>def</code></em> :</span></p></td>
<td>a <a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the full name of a database. The returned string
is owned by the <a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a> object and should not be
modified or freed.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdict-definition-get-text"></a><h3>gdict_definition_get_text ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gdict_definition_get_text (<em class="parameter"><code><a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a> *def</code></em>);</pre>
<p>
Retrieves the text of the definition.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>def</code></em> :</span></p></td>
<td>a <a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the text of the definition. The returned string
is owned by the <a class="link" href="gdict-GdictContext.html#GdictDefinition" title="GdictDefinition"><span class="type">GdictDefinition</span></a> object, and should not be
modified or freed.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 1.0</p>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|