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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>IpatchTypeProp</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
<link rel="home" href="index.html" title="libinstpatch Reference Manual">
<link rel="up" href="ch02.html" title="Utility objects and functions">
<link rel="prev" href="libinstpatch-IpatchParamProp.html" title="IpatchParamProp">
<link rel="next" href="IpatchPaste.html" title="IpatchPaste">
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="ch01.html" title="Base objects and functions">
<link rel="chapter" href="ch02.html" title="Utility objects and functions">
<link rel="chapter" href="ch03.html" title="Sample data objects and functions">
<link rel="chapter" href="ch04.html" title="DLS patches">
<link rel="chapter" href="ch05.html" title="SoundFont patches">
<link rel="chapter" href="ch06.html" title="GigaSampler patches">
<link rel="chapter" href="ch07.html" title="Virtual banks">
<link rel="chapter" href="object-tree.html" title="Object Hierarchy">
<link rel="index" href="api-index-full.html" title="API Index">
</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="libinstpatch-IpatchParamProp.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch02.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">libinstpatch Reference Manual</th>
<td><a accesskey="n" href="IpatchPaste.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libinstpatch-IpatchTypeProp.synopsis" class="shortcut">Top</a>
|
<a href="#libinstpatch-IpatchTypeProp.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry" title="IpatchTypeProp">
<a name="libinstpatch-IpatchTypeProp"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libinstpatch-IpatchTypeProp.top_of_page"></a>IpatchTypeProp</span></h2>
<p>IpatchTypeProp — GObject style properties for GTypes</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1" title="Stability Level">
<a name="libinstpatch-IpatchTypeProp.stability-level"></a><h2>Stability Level</h2>
Stable, unless otherwise indicated
</div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="libinstpatch-IpatchTypeProp.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
enum <a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#IpatchSplitsType"
>IpatchSplitsType</a>;
void (<a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#IpatchTypePropGetFunc"
>*IpatchTypePropGetFunc</a>) (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> type,
<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a> *spec,
<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"
>GValue</a> *value,
<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
>GObject</a> *object);
void <a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#ipatch-type-install-property"
>ipatch_type_install_property</a> (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a> *prop_spec);
<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a> * <a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#ipatch-type-find-property"
>ipatch_type_find_property</a> (const char *name);
<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a> ** <a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#ipatch-type-list-properties"
>ipatch_type_list_properties</a> (<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> *n_properties);
<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> * <a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#ipatch-type-find-types-with-property"
>ipatch_type_find_types_with_property</a>
(const char *name,
const <a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"
>GValue</a> *value,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> *n_types);
void <a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#ipatch-type-set"
>ipatch_type_set</a> (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> type,
const char *first_property_name,
...);
void <a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#ipatch-type-set-valist"
>ipatch_type_set_valist</a> (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> type,
const char *first_property_name,
va_list args);
void <a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#ipatch-type-set-property"
>ipatch_type_set_property</a> (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> type,
const char *property_name,
const <a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"
>GValue</a> *value);
void <a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#ipatch-type-get"
>ipatch_type_get</a> (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> type,
const char *first_property_name,
...);
void <a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#ipatch-type-get-valist"
>ipatch_type_get_valist</a> (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> type,
const char *first_property_name,
va_list args);
void <a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#ipatch-type-get-property"
>ipatch_type_get_property</a> (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> type,
const char *property_name,
<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"
>GValue</a> *value);
void <a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#ipatch-type-object-get"
>ipatch_type_object_get</a> (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
>GObject</a> *object,
const char *first_property_name,
...);
void <a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#ipatch-type-object-get-valist"
>ipatch_type_object_get_valist</a> (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
>GObject</a> *object,
const char *first_property_name,
va_list args);
void <a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#ipatch-type-object-get-property"
>ipatch_type_object_get_property</a> (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
>GObject</a> *object,
const char *property_name,
<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"
>GValue</a> *value);
void <a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#ipatch-type-set-dynamic-func"
>ipatch_type_set_dynamic_func</a> (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> type,
const char *property_name,
<a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#IpatchTypePropGetFunc"
>IpatchTypePropGetFunc</a> func);
<a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#IpatchTypePropGetFunc"
>IpatchTypePropGetFunc</a> <a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#ipatch-type-get-dynamic-func"
>ipatch_type_get_dynamic_func</a> (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> type,
const char *property_name);
</pre>
</div>
<div class="refsect1" title="Description">
<a name="libinstpatch-IpatchTypeProp.description"></a><h2>Description</h2>
<p>
Provides a registry system for adding GObject style properties to GTypes.
This is used to describe certain properties of different objects, such as
"category".</p>
</div>
<div class="refsect1" title="Details">
<a name="libinstpatch-IpatchTypeProp.details"></a><h2>Details</h2>
<div class="refsect2" title="enum IpatchSplitsType">
<a name="IpatchSplitsType"></a><h3>enum IpatchSplitsType</h3>
<pre class="programlisting">typedef enum
{
IPATCH_SPLITS_NONE, /* type does not have splits */
IPATCH_SPLITS_NORMAL, /* normal splits */
IPATCH_SPLITS_NO_OVERLAP /* splits do not overlap */
} IpatchSplitsType;
</pre>
</div>
<hr>
<div class="refsect2" title="IpatchTypePropGetFunc ()">
<a name="IpatchTypePropGetFunc"></a><h3>IpatchTypePropGetFunc ()</h3>
<pre class="programlisting">void (*IpatchTypePropGetFunc) (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> type,
<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a> *spec,
<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"
>GValue</a> *value,
<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
>GObject</a> *object);</pre>
<p>
A function type used for active type property callbacks.
Allows for dynamic type properties that can return values depending
on an object's state.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td> The GType of the type property
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>spec</code></em> :</span></p></td>
<td> The parameter specification
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td> Initialized value to store the type prop value in
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td> Object instance (might be <code class="literal">NULL</code>)
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_type_install_property ()">
<a name="ipatch-type-install-property"></a><h3>ipatch_type_install_property ()</h3>
<pre class="programlisting">void ipatch_type_install_property (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a> *prop_spec);</pre>
<p>
Install a new <a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
><span class="type">GType</span></a> property which can be used to associate arbitrary
information to GTypes.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>prop_spec</code></em> :</span></p></td>
<td> Specification for the new <a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
><span class="type">GType</span></a> property. Ownership
of the GParamSpec is taken over by this function. The name field of
the GParamSpec should be a static string and is used as the property's
ID.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_type_find_property ()">
<a name="ipatch-type-find-property"></a><h3>ipatch_type_find_property ()</h3>
<pre class="programlisting"><a
href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a> * ipatch_type_find_property (const char *name);</pre>
<p>
Lookup a GType property by name.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> Name of GType property
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The matching GParamSpec or <code class="literal">NULL</code> if not found. The GParamSpec is
internal and should NOT be modified or freed.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_type_list_properties ()">
<a name="ipatch-type-list-properties"></a><h3>ipatch_type_list_properties ()</h3>
<pre class="programlisting"><a
href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a> ** ipatch_type_list_properties (<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> *n_properties);</pre>
<p>
Get a list of all registered GType properties.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_properties</code></em> :</span></p></td>
<td> Output: Length of returned array
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> An array of GParamSpecs which should be freed when finished.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_type_find_types_with_property ()">
<a name="ipatch-type-find-types-with-property"></a><h3>ipatch_type_find_types_with_property ()</h3>
<pre class="programlisting"><a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> * ipatch_type_find_types_with_property
(const char *name,
const <a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"
>GValue</a> *value,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
>guint</a> *n_types);</pre>
<p>
Get an array of types which have the given type property assigned and match
<em class="parameter"><code>value</code></em> (optional, <code class="literal">NULL</code> matches any value).</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> Name of type property
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td> Optional value to match to type property values (<code class="literal">NULL</code> to match any value)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_types</code></em> :</span></p></td>
<td> Location to store count of types in returned array or <code class="literal">NULL</code> to ignore
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> Newly allocated 0 terminated array of types which have the named
property set or <code class="literal">NULL</code> if type property not found.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_type_set ()">
<a name="ipatch-type-set"></a><h3>ipatch_type_set ()</h3>
<pre class="programlisting">void ipatch_type_set (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> type,
const char *first_property_name,
...);</pre>
<p>
Set GType properties. GType properties are used to associate arbitrary
information with GTypes.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td> GType to set properties of
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>first_property_name</code></em> :</span></p></td>
<td> Name of first property to set
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td> Value of first property to set and optionally followed by more
property name/value pairs, terminated with <code class="literal">NULL</code> name.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_type_set_valist ()">
<a name="ipatch-type-set-valist"></a><h3>ipatch_type_set_valist ()</h3>
<pre class="programlisting">void ipatch_type_set_valist (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> type,
const char *first_property_name,
va_list args);</pre>
<p>
Like <a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#ipatch-type-set"
><code class="function">ipatch_type_set()</code></a> but uses a va_list.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td> GType to set properties of
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>first_property_name</code></em> :</span></p></td>
<td> Name of first property to set
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>args</code></em> :</span></p></td>
<td> Value of first property to set and optionally followed by more
property name/value pairs, terminated with <code class="literal">NULL</code> name.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_type_set_property ()">
<a name="ipatch-type-set-property"></a><h3>ipatch_type_set_property ()</h3>
<pre class="programlisting">void ipatch_type_set_property (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> type,
const char *property_name,
const <a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"
>GValue</a> *value);</pre>
<p>
Set a single property of a <a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
><span class="type">GType</span></a>.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td> GType to set property of
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>property_name</code></em> :</span></p></td>
<td> Name of property to set
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td> Value to set the the property to. The value's
type must be the same as the GType property's type.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_type_get ()">
<a name="ipatch-type-get"></a><h3>ipatch_type_get ()</h3>
<pre class="programlisting">void ipatch_type_get (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> type,
const char *first_property_name,
...);</pre>
<p>
Get GType property values.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td> GType to get properties from
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>first_property_name</code></em> :</span></p></td>
<td> Name of first property to get
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td> Pointer to store first property value and optionally followed
by more property name/value pairs, terminated with <code class="literal">NULL</code> name.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_type_get_valist ()">
<a name="ipatch-type-get-valist"></a><h3>ipatch_type_get_valist ()</h3>
<pre class="programlisting">void ipatch_type_get_valist (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> type,
const char *first_property_name,
va_list args);</pre>
<p>
Like <a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#ipatch-type-get"
><code class="function">ipatch_type_get()</code></a> but uses a va_list.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td> GType to get properties from
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>first_property_name</code></em> :</span></p></td>
<td> Name of first property to get
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>args</code></em> :</span></p></td>
<td> Pointer to store first property value and optionally followed
by more property name/value pairs, terminated with <code class="literal">NULL</code> name.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_type_get_property ()">
<a name="ipatch-type-get-property"></a><h3>ipatch_type_get_property ()</h3>
<pre class="programlisting">void ipatch_type_get_property (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> type,
const char *property_name,
<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"
>GValue</a> *value);</pre>
<p>
Get a single property from a <a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
><span class="type">GType</span></a>.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td> GType to get property from
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>property_name</code></em> :</span></p></td>
<td> Name of property to get
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td> An initialized value to store the property value in. The value's
type must be a type that the property can be transformed to.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_type_object_get ()">
<a name="ipatch-type-object-get"></a><h3>ipatch_type_object_get ()</h3>
<pre class="programlisting">void ipatch_type_object_get (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
>GObject</a> *object,
const char *first_property_name,
...);</pre>
<p>
Get GType property values. Like <a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#ipatch-type-get"
><code class="function">ipatch_type_get()</code></a> but takes an object
instance which can be used by any registered dynamic type property
functions.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td> Object instance to get type property from
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>first_property_name</code></em> :</span></p></td>
<td> Name of first property to get
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td> Pointer to store first property value and optionally followed
by more property name/value pairs, terminated with <code class="literal">NULL</code> name.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_type_object_get_valist ()">
<a name="ipatch-type-object-get-valist"></a><h3>ipatch_type_object_get_valist ()</h3>
<pre class="programlisting">void ipatch_type_object_get_valist (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
>GObject</a> *object,
const char *first_property_name,
va_list args);</pre>
</div>
<hr>
<div class="refsect2" title="ipatch_type_object_get_property ()">
<a name="ipatch-type-object-get-property"></a><h3>ipatch_type_object_get_property ()</h3>
<pre class="programlisting">void ipatch_type_object_get_property (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
>GObject</a> *object,
const char *property_name,
<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"
>GValue</a> *value);</pre>
<p>
Get a single type property from an <em class="parameter"><code>object</code></em> instance.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td> Object instance to get type property from
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>property_name</code></em> :</span></p></td>
<td> Name of property to get
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td> An initialized value to store the property value in. The value's
type must be a type that the property can be transformed to.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_type_set_dynamic_func ()">
<a name="ipatch-type-set-dynamic-func"></a><h3>ipatch_type_set_dynamic_func ()</h3>
<pre class="programlisting">void ipatch_type_set_dynamic_func (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> type,
const char *property_name,
<a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#IpatchTypePropGetFunc"
>IpatchTypePropGetFunc</a> func);</pre>
<p>
Registers a callback function for dynamically getting the value of a
type property.
</p>
<p>
Example: A dynamic property is created for SoundFont presets to return a
different "virtual-parent-type" depending on if its a percussion or
melodic preset (determined from a preset's bank number).</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td> GType of the type property
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>property_name</code></em> :</span></p></td>
<td> Name of a previously registered type property
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
<td> Callback function used for getting values for this type property
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="ipatch_type_get_dynamic_func ()">
<a name="ipatch-type-get-dynamic-func"></a><h3>ipatch_type_get_dynamic_func ()</h3>
<pre class="programlisting"><a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#IpatchTypePropGetFunc"
>IpatchTypePropGetFunc</a> ipatch_type_get_dynamic_func (<a
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
>GType</a> type,
const char *property_name);</pre>
<p>
Get a the dynamic function registered for a given <em class="parameter"><code>type</code></em> and <em class="parameter"><code>property_name</code></em>
with <a
href="../libinstpatch/libinstpatch-IpatchTypeProp.html#ipatch-type-set-dynamic-func"
><code class="function">ipatch_type_set_dynamic_func()</code></a>. Also can be used as an indicator of
whether a type property is dynamic or not.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td> GType of the type property
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>property_name</code></em> :</span></p></td>
<td> Name of a previously registered type property
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> Pointer to the registered function or <code class="literal">NULL</code> if no function
registered (not a dynamic type property).
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.11</div>
</body>
</html>
|