/usr/share/gtk-doc/html/libgwyprocess/GwySpectra.html is in libgwyddion20-doc 2.44-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 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GwySpectra: Gwyddion Data Processing Library Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="Gwyddion Data Processing Library Reference Manual">
<link rel="up" href="index.html" title="Gwyddion Data Processing Library Reference Manual">
<link rel="prev" href="GwyDataField.html" title="GwyDataField">
<link rel="next" href="GwyBrick.html" title="GwyBrick">
<meta name="generator" content="GTK-Doc V1.19 (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="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#GwySpectra.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
<a href="#GwySpectra.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces"> <span class="dim">|</span>
<a href="#GwySpectra.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties"> <span class="dim">|</span>
<a href="#GwySpectra.properties" class="shortcut">Properties</a></span><span id="nav_signals"> <span class="dim">|</span>
<a href="#GwySpectra.signals" class="shortcut">Signals</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
<td><a accesskey="p" href="GwyDataField.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="GwyBrick.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GwySpectra"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GwySpectra.top_of_page"></a>GwySpectra</span></h2>
<p>GwySpectra — Collection of dataline representing point spectra.</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="GwySpectra.functions"></a><h2>Functions</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-duplicate" title="gwy_spectra_duplicate()">gwy_spectra_duplicate</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GwySpectra.html" title="GwySpectra"><span class="returnvalue">GwySpectra</span></a> *
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-new" title="gwy_spectra_new ()">gwy_spectra_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GwySpectra.html" title="GwySpectra"><span class="returnvalue">GwySpectra</span></a> *
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-new-alike" title="gwy_spectra_new_alike ()">gwy_spectra_new_alike</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-data-changed" title="gwy_spectra_data_changed ()">gwy_spectra_data_changed</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../libgwyddion/GwySIUnit.html"><span class="returnvalue">GwySIUnit</span></a> *
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-get-si-unit-xy" title="gwy_spectra_get_si_unit_xy ()">gwy_spectra_get_si_unit_xy</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-set-si-unit-xy" title="gwy_spectra_set_si_unit_xy ()">gwy_spectra_set_si_unit_xy</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-itoxy" title="gwy_spectra_itoxy ()">gwy_spectra_itoxy</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-xytoi" title="gwy_spectra_xytoi ()">gwy_spectra_xytoi</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-setpos" title="gwy_spectra_setpos ()">gwy_spectra_setpos</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-get-n-spectra" title="gwy_spectra_get_n_spectra ()">gwy_spectra_get_n_spectra</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GwyDataLine.html" title="GwyDataLine"><span class="returnvalue">GwyDataLine</span></a> *
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-get-spectrum" title="gwy_spectra_get_spectrum ()">gwy_spectra_get_spectrum</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-set-spectrum" title="gwy_spectra_set_spectrum ()">gwy_spectra_set_spectrum</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-set-spectrum-selected" title="gwy_spectra_set_spectrum_selected ()">gwy_spectra_set_spectrum_selected</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-get-spectrum-selected" title="gwy_spectra_get_spectrum_selected ()">gwy_spectra_get_spectrum_selected</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-find-nearest" title="gwy_spectra_find_nearest ()">gwy_spectra_find_nearest</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-add-spectrum" title="gwy_spectra_add_spectrum ()">gwy_spectra_add_spectrum</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-remove-spectrum" title="gwy_spectra_remove_spectrum ()">gwy_spectra_remove_spectrum</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-get-title" title="gwy_spectra_get_title ()">gwy_spectra_get_title</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-set-title" title="gwy_spectra_set_title ()">gwy_spectra_set_title</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-get-spectrum-x-label" title="gwy_spectra_get_spectrum_x_label ()">gwy_spectra_get_spectrum_x_label</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-set-spectrum-x-label" title="gwy_spectra_set_spectrum_x_label ()">gwy_spectra_set_spectrum_x_label</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-get-spectrum-y-label" title="gwy_spectra_get_spectrum_y_label ()">gwy_spectra_get_spectrum_y_label</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-set-spectrum-y-label" title="gwy_spectra_set_spectrum_y_label ()">gwy_spectra_set_spectrum_y_label</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GwySpectra.html#gwy-spectra-clear" title="gwy_spectra_clear ()">gwy_spectra_clear</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GwySpectra.properties"></a><h2>Properties</h2>
<div class="informaltable"><table border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody>
<tr>
<td class="property_type">
<a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
<td class="property_name"><a class="link" href="GwySpectra.html#GwySpectra--spectrum-x-label" title="The “spectrum-x-label” property">spectrum-x-label</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
<td class="property_name"><a class="link" href="GwySpectra.html#GwySpectra--spectrum-y-label" title="The “spectrum-y-label” property">spectrum-y-label</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
<td class="property_name"><a class="link" href="GwySpectra.html#GwySpectra--title" title="The “title” property">title</a></td>
<td class="property_flags">Read / Write</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GwySpectra.signals"></a><h2>Signals</h2>
<div class="informaltable"><table border="0">
<colgroup>
<col width="150px" class="signals_return">
<col width="300px" class="signals_name">
<col width="200px" class="signals_flags">
</colgroup>
<tbody><tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="GwySpectra.html#GwySpectra-data-changed" title="The “data-changed” signal">data-changed</a></td>
<td class="signal_flags"><a href="http://developer.gnome.org/doc/API/2.0/gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GwySpectra.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="GwySpectra.html#GwySpectra-struct" title="struct GwySpectra">GwySpectra</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="GwySpectra.html#GwySpectraClass" title="struct GwySpectraClass">GwySpectraClass</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GwySpectra.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen"> <a href="http://developer.gnome.org/doc/API/2.0/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
<span class="lineart">╰──</span> GwySpectra
</pre>
</div>
<div class="refsect1">
<a name="GwySpectra.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GwySpectra implements
<a href="../libgwyddion/GwySerializable.html">GwySerializable</a>.</p>
</div>
<div class="refsect1">
<a name="GwySpectra.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include <libprocess/gwyprocess.h>
</pre>
</div>
<div class="refsect1">
<a name="GwySpectra.description"></a><h2>Description</h2>
<p><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> contains an array of <a class="link" href="GwyDataLine.html" title="GwyDataLine"><span class="type">GwyDataLine</span></a>s and coordinates
representing where in a data field the spectrum was acquired.</p>
</div>
<div class="refsect1">
<a name="GwySpectra.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="gwy-spectra-duplicate"></a><h3>gwy_spectra_duplicate()</h3>
<pre class="programlisting">#define gwy_spectra_duplicate(spectra)</pre>
<p>Convenience macro doing <a href="../libgwyddion/GwySerializable.html#gwy-serializable-duplicate"><code class="function">gwy_serializable_duplicate()</code></a> with all the necessary
typecasting.</p>
<div class="refsect3">
<a name="id-1.5.11.2.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A Spectra object to duplicate.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-7.html#api-index-2.7">2.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-new"></a><h3>gwy_spectra_new ()</h3>
<pre class="programlisting"><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="returnvalue">GwySpectra</span></a> *
gwy_spectra_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>Creates a new Spectra object containing zero spectra.</p>
<div class="refsect3">
<a name="id-1.5.11.3.5"></a><h4>Returns</h4>
<p> A newly created spectra.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-7.html#api-index-2.7">2.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-new-alike"></a><h3>gwy_spectra_new_alike ()</h3>
<pre class="programlisting"><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="returnvalue">GwySpectra</span></a> *
gwy_spectra_new_alike (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *model</code></em>);</pre>
<p>Creates a new Spectra object similar to an existing one, but containing zero
spectra.</p>
<p>Use <a class="link" href="GwySpectra.html#gwy-spectra-duplicate" title="gwy_spectra_duplicate()"><code class="function">gwy_spectra_duplicate()</code></a> if you want to copy a spectra object including
the spectra in it.</p>
<div class="refsect3">
<a name="id-1.5.11.4.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>model</p></td>
<td class="parameter_description"><p>A Spectra object to take units from.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.5.11.4.7"></a><h4>Returns</h4>
<p> A newly created Spectra object.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-7.html#api-index-2.7">2.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-data-changed"></a><h3>gwy_spectra_data_changed ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gwy_spectra_data_changed (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</code></em>);</pre>
<p>Emits signal "data_changed" on a spectra object.</p>
<div class="refsect3">
<a name="id-1.5.11.5.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A spectra object.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-7.html#api-index-2.7">2.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-get-si-unit-xy"></a><h3>gwy_spectra_get_si_unit_xy ()</h3>
<pre class="programlisting"><a href="../libgwyddion/GwySIUnit.html"><span class="returnvalue">GwySIUnit</span></a> *
gwy_spectra_get_si_unit_xy (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</code></em>);</pre>
<p>Gets SI unit used for the location co-ordinates of spectra.</p>
<div class="refsect3">
<a name="id-1.5.11.6.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A spectra.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.5.11.6.6"></a><h4>Returns</h4>
<p> SI unit corresponding to the the location co-ordinates of spectra
object. Its reference count is not incremented.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-7.html#api-index-2.7">2.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-set-si-unit-xy"></a><h3>gwy_spectra_set_si_unit_xy ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gwy_spectra_set_si_unit_xy (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</code></em>,
<em class="parameter"><code><a href="../libgwyddion/GwySIUnit.html"><span class="type">GwySIUnit</span></a> *si_unit</code></em>);</pre>
<p>Sets the SI unit corresponding to the location co-ordinates of the spectra
object.</p>
<p>It does not assume a reference on <em class="parameter"><code>si_unit</code></em>
, instead it adds its own
reference.</p>
<div class="refsect3">
<a name="id-1.5.11.7.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A Spectra object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>si_unit</p></td>
<td class="parameter_description"><p>SI unit to be set.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-7.html#api-index-2.7">2.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-itoxy"></a><h3>gwy_spectra_itoxy ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gwy_spectra_itoxy (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</code></em>,
<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> i</code></em>,
<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *x</code></em>,
<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *y</code></em>);</pre>
<p>Gets the coordinates of one spectrum.</p>
<div class="refsect3">
<a name="id-1.5.11.8.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A spectra object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>i</p></td>
<td class="parameter_description"><p>Index of a spectrum.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>Location to store the physical x coordinate of the spectrum.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>Location to store the physical x coordinate of the spectrum.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-7.html#api-index-2.7">2.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-xytoi"></a><h3>gwy_spectra_xytoi ()</h3>
<pre class="programlisting"><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
gwy_spectra_xytoi (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</code></em>,
<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>);</pre>
<p>Finds the index of the spectrum closest to the location specified by
the coordinates x and y.</p>
<div class="refsect3">
<a name="id-1.5.11.9.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A spectra object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>The x coordinate of the location of the spectrum.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>The y coordinate of the location of the spectrum.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.5.11.9.6"></a><h4>Returns</h4>
<p> The index of the nearest spectrum. If there are no curves in the
spectra, -1 is returned.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-7.html#api-index-2.7">2.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-setpos"></a><h3>gwy_spectra_setpos ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gwy_spectra_setpos (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> i</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>);</pre>
<p>Sets the location coordinates of a spectrum.</p>
<div class="refsect3">
<a name="id-1.5.11.10.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A spectra object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>i</p></td>
<td class="parameter_description"><p>The index of a spectrum.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>The new x coordinate of the location of the spectrum.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>The new y coordinate of the location of the spectrum.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-7.html#api-index-2.7">2.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-get-n-spectra"></a><h3>gwy_spectra_get_n_spectra ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
gwy_spectra_get_n_spectra (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</code></em>);</pre>
<p>Gets the number of spectra in a spectra object.</p>
<div class="refsect3">
<a name="id-1.5.11.11.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A spectra object.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.5.11.11.6"></a><h4>Returns</h4>
<p> The number of spectra.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-7.html#api-index-2.7">2.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-get-spectrum"></a><h3>gwy_spectra_get_spectrum ()</h3>
<pre class="programlisting"><a class="link" href="GwyDataLine.html" title="GwyDataLine"><span class="returnvalue">GwyDataLine</span></a> *
gwy_spectra_get_spectrum (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> i</code></em>);</pre>
<p>Gets a dataline that contains the spectrum at index i.</p>
<div class="refsect3">
<a name="id-1.5.11.12.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A Spectra object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>i</p></td>
<td class="parameter_description"><p>Index of a spectrum</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.5.11.12.6"></a><h4>Returns</h4>
<p> A <a class="link" href="GwyDataLine.html" title="GwyDataLine"><span class="type">GwyDataLine</span></a> containing the spectrum, owned by <em class="parameter"><code>spectra</code></em>
.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-7.html#api-index-2.7">2.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-set-spectrum"></a><h3>gwy_spectra_set_spectrum ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gwy_spectra_set_spectrum (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> i</code></em>,
<em class="parameter"><code><a class="link" href="GwyDataLine.html" title="GwyDataLine"><span class="type">GwyDataLine</span></a> *new_spectrum</code></em>);</pre>
<p>Replaces the ith spectrum in the spectra object with a the
supplied spectrum, new_spectrum. It takes its own reference
to the New_Spectrum dataline.</p>
<div class="refsect3">
<a name="id-1.5.11.13.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A spectra object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>i</p></td>
<td class="parameter_description"><p>Index of a spectrum to replace</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>new_spectrum</p></td>
<td class="parameter_description"><p>A <a class="link" href="GwyDataLine.html" title="GwyDataLine"><span class="type">GwyDataLine</span></a> Object containing the new spectrum.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-7.html#api-index-2.7">2.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-set-spectrum-selected"></a><h3>gwy_spectra_set_spectrum_selected ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gwy_spectra_set_spectrum_selected (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> i</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> selected</code></em>);</pre>
<p>Sets selected state of a spectrum in a spectra object.</p>
<div class="refsect3">
<a name="id-1.5.11.14.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A spectra object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>i</p></td>
<td class="parameter_description"><p>Index of a spectrum.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>selected</p></td>
<td class="parameter_description"><p><a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to make the spectrum selected, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> to deselect it.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-7.html#api-index-2.7">2.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-get-spectrum-selected"></a><h3>gwy_spectra_get_spectrum_selected ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gwy_spectra_get_spectrum_selected (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> i</code></em>);</pre>
<p>Gets the selected state of a spectrum in a spectra object.</p>
<div class="refsect3">
<a name="id-1.5.11.15.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A spectra object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>i</p></td>
<td class="parameter_description"><p>Index of a spectrum.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.5.11.15.6"></a><h4>Returns</h4>
<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if spectrum is selected.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-7.html#api-index-2.7">2.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-find-nearest"></a><h3>gwy_spectra_find_nearest ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gwy_spectra_find_nearest (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> n</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *ilist</code></em>);</pre>
<p>Gets the list of the indices to spectra ordered by their distance from a
given point.</p>
<p>List positions</p>
<div class="refsect3">
<a name="id-1.5.11.16.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A spectra object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>Point x-coordinate.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>Point y-coordinate.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>n</p></td>
<td class="parameter_description"><p>Number of indices to find. Array <em class="parameter"><code>ilist</code></em>
must have at least this
number of items.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>ilist</p></td>
<td class="parameter_description"><p>Array to place the spectra indices to. They will be sorted by the
distance from (<em class="parameter"><code>x</code></em>
, <em class="parameter"><code>y</code></em>
). Positions after the number of spectra
in <em class="parameter"><code>spectra</code></em>
will be left untouched.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-7.html#api-index-2.7">2.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-add-spectrum"></a><h3>gwy_spectra_add_spectrum ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gwy_spectra_add_spectrum (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</code></em>,
<em class="parameter"><code><a class="link" href="GwyDataLine.html" title="GwyDataLine"><span class="type">GwyDataLine</span></a> *new_spectrum</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>);</pre>
<p>Appends a new_spectrum to the spectra collection with a position of x, y.
gwy_spectra_add takes a refference to the supplied spectrum.</p>
<div class="refsect3">
<a name="id-1.5.11.17.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A spectra object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>new_spectrum</p></td>
<td class="parameter_description"><p>A GwyDataLine containing the spectrum to append.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>The physical x coordinate of the location of the spectrum.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>The physical y coordinate of the location of the spectrum.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-7.html#api-index-2.7">2.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-remove-spectrum"></a><h3>gwy_spectra_remove_spectrum ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gwy_spectra_remove_spectrum (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> i</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-get-title"></a><h3>gwy_spectra_get_title ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
gwy_spectra_get_title (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</code></em>);</pre>
<p>Gets the title of spectra.</p>
<div class="refsect3">
<a name="id-1.5.11.19.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A spectra object.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.5.11.19.6"></a><h4>Returns</h4>
<p> A pointer to the title string (owned by the spectra object).</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-7.html#api-index-2.7">2.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-set-title"></a><h3>gwy_spectra_set_title ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gwy_spectra_set_title (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</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> *title</code></em>);</pre>
<p>Sets the title of the spectra collection.</p>
<div class="refsect3">
<a name="id-1.5.11.20.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A spectra object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>title</p></td>
<td class="parameter_description"><p>The new title string.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-7.html#api-index-2.7">2.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-get-spectrum-x-label"></a><h3>gwy_spectra_get_spectrum_x_label ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
gwy_spectra_get_spectrum_x_label (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</code></em>);</pre>
<p>Gets the spectrum abscissa label of a spectra object.</p>
<div class="refsect3">
<a name="id-1.5.11.21.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A spectra object.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.5.11.21.6"></a><h4>Returns</h4>
<p> The abscissa label. The string is owned by <em class="parameter"><code>spectra</code></em>
and must not
be modified nor freed.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-40.html#api-index-2.40">2.40</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-set-spectrum-x-label"></a><h3>gwy_spectra_set_spectrum_x_label ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gwy_spectra_set_spectrum_x_label (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</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> *label</code></em>);</pre>
<p>Sets the spectrum abscissa label of a spectra object.</p>
<div class="refsect3">
<a name="id-1.5.11.22.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A spectra object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>label</p></td>
<td class="parameter_description"><p>New abscissa label.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-40.html#api-index-2.40">2.40</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-get-spectrum-y-label"></a><h3>gwy_spectra_get_spectrum_y_label ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
gwy_spectra_get_spectrum_y_label (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</code></em>);</pre>
<p>Gets the spectrum ordinate label of a spectra object.</p>
<div class="refsect3">
<a name="id-1.5.11.23.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A spectra object.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.5.11.23.6"></a><h4>Returns</h4>
<p> The ordinate label. The string is owned by <em class="parameter"><code>spectra</code></em>
and must not
be modified nor freed.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-40.html#api-index-2.40">2.40</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-set-spectrum-y-label"></a><h3>gwy_spectra_set_spectrum_y_label ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gwy_spectra_set_spectrum_y_label (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</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> *label</code></em>);</pre>
<p>Sets the spectrum ordinate label of a spectra object.</p>
<div class="refsect3">
<a name="id-1.5.11.24.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A spectra object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>label</p></td>
<td class="parameter_description"><p>New ordinate label.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-40.html#api-index-2.40">2.40</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-spectra-clear"></a><h3>gwy_spectra_clear ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gwy_spectra_clear (<em class="parameter"><code><a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *spectra</code></em>);</pre>
<p>Removes all spectra from the collection.</p>
<div class="refsect3">
<a name="id-1.5.11.25.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>spectra</p></td>
<td class="parameter_description"><p>A spectra object.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-7.html#api-index-2.7">2.7</a></p>
</div>
</div>
<div class="refsect1">
<a name="GwySpectra.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="GwySpectra-struct"></a><h3>struct GwySpectra</h3>
<pre class="programlisting">struct GwySpectra;</pre>
<p>The <a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> struct contains private data only and should be accessed
using the functions below.</p>
<p class="since">Since: <a class="link" href="api-index-2-7.html#api-index-2.7">2.7</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GwySpectraClass"></a><h3>struct GwySpectraClass</h3>
<pre class="programlisting">struct GwySpectraClass {
GObjectClass parent_class;
void (*data_changed)(GwySpectra *spectra);
void (*reserved1)(void);
void (*reserved2)(void);
void (*reserved3)(void);
};
</pre>
</div>
</div>
<div class="refsect1">
<a name="GwySpectra.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GwySpectra--spectrum-x-label"></a><h3>The <code class="literal">“spectrum-x-label”</code> property</h3>
<pre class="programlisting"> “spectrum-x-label” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
<p>Label of spectrum abscissa, as it should appear on extracted graphs.</p>
<p>Flags: Read / Write</p>
<p>Default value: NULL</p>
<p class="since">Since: <a class="link" href="api-index-2-40.html#api-index-2.40">2.40</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GwySpectra--spectrum-y-label"></a><h3>The <code class="literal">“spectrum-y-label”</code> property</h3>
<pre class="programlisting"> “spectrum-y-label” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
<p>Label of spectrum ordinate, as it should appear on extracted graphs.</p>
<p>Flags: Read / Write</p>
<p>Default value: NULL</p>
<p class="since">Since: <a class="link" href="api-index-2-40.html#api-index-2.40">2.40</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GwySpectra--title"></a><h3>The <code class="literal">“title”</code> property</h3>
<pre class="programlisting"> “title” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
<p>The spectra title.</p>
<p>Flags: Read / Write</p>
<p>Default value: "New spectra"</p>
</div>
</div>
<div class="refsect1">
<a name="GwySpectra.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="GwySpectra-data-changed"></a><h3>The <code class="literal">“data-changed”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> *gwyspectra,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
<p>The ::data-changed signal is never emitted by the spectra itself. It
is intended as a means to notify other spectra users they should
update themselves.</p>
<div class="refsect3">
<a name="id-1.5.14.2.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>gwyspectra</p></td>
<td class="parameter_description"><p>The <a class="link" href="GwySpectra.html" title="GwySpectra"><span class="type">GwySpectra</span></a> which received the signal.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p>Flags: <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.19</div>
</body>
</html>
|