/usr/share/gtk-doc/html/libgwydgets/GwyDataView.html is in libgwyddion20-doc 2.34-3ubuntu1.
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 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Gwyddion Widgets Library Reference Manual: GwyDataView</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="Gwyddion Widgets Library Reference Manual">
<link rel="up" href="DataWindowWidgets.html" title="Data Windows and Views">
<link rel="prev" href="GwyDataWindow.html" title="GwyDataWindow">
<link rel="next" href="GwyDataViewLayer.html" title="GwyDataViewLayer">
<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="10"><tr valign="middle">
<td width="100%" align="left">
<a href="#" class="shortcut">Top</a>
|
<a href="#GwyDataView.description" class="shortcut">Description</a>
|
<a href="#GwyDataView.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#GwyDataView.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
|
<a href="#GwyDataView.properties" class="shortcut">Properties</a>
|
<a href="#GwyDataView.signals" class="shortcut">Signals</a>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="DataWindowWidgets.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="GwyDataWindow.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="GwyDataViewLayer.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GwyDataView"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GwyDataView.top_of_page"></a>GwyDataView</span></h2>
<p>GwyDataView — Data field displaying area</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="GwyDataView.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include <libgwydgets/gwydgets.h>
struct <a class="link" href="GwyDataView.html#GwyDataView-struct" title="struct GwyDataView">GwyDataView</a>;
struct <a class="link" href="GwyDataView.html#GwyDataViewClass" title="struct GwyDataViewClass">GwyDataViewClass</a>;
<a href="http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GwyDataView.html#gwy-data-view-new" title="gwy_data_view_new ()">gwy_data_view_new</a> (<em class="parameter"><code><a href="../libgwyddion/GwyContainer.html"><span class="type">GwyContainer</span></a> *data</code></em>);
<a class="link" href="GwyPixmapLayer.html" title="GwyPixmapLayer"><span class="returnvalue">GwyPixmapLayer</span></a> * <a class="link" href="GwyDataView.html#gwy-data-view-get-base-layer" title="gwy_data_view_get_base_layer ()">gwy_data_view_get_base_layer</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GwyDataView.html#gwy-data-view-set-base-layer" title="gwy_data_view_set_base_layer ()">gwy_data_view_set_base_layer</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>,
<em class="parameter"><code><a class="link" href="GwyPixmapLayer.html" title="GwyPixmapLayer"><span class="type">GwyPixmapLayer</span></a> *layer</code></em>);
<a class="link" href="GwyPixmapLayer.html" title="GwyPixmapLayer"><span class="returnvalue">GwyPixmapLayer</span></a> * <a class="link" href="GwyDataView.html#gwy-data-view-get-alpha-layer" title="gwy_data_view_get_alpha_layer ()">gwy_data_view_get_alpha_layer</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GwyDataView.html#gwy-data-view-set-alpha-layer" title="gwy_data_view_set_alpha_layer ()">gwy_data_view_set_alpha_layer</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>,
<em class="parameter"><code><a class="link" href="GwyPixmapLayer.html" title="GwyPixmapLayer"><span class="type">GwyPixmapLayer</span></a> *layer</code></em>);
<a class="link" href="GwyVectorLayer.html" title="GwyVectorLayer"><span class="returnvalue">GwyVectorLayer</span></a> * <a class="link" href="GwyDataView.html#gwy-data-view-get-top-layer" title="gwy_data_view_get_top_layer ()">gwy_data_view_get_top_layer</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GwyDataView.html#gwy-data-view-set-top-layer" title="gwy_data_view_set_top_layer ()">gwy_data_view_set_top_layer</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>,
<em class="parameter"><code><a class="link" href="GwyVectorLayer.html" title="GwyVectorLayer"><span class="type">GwyVectorLayer</span></a> *layer</code></em>);
const <a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GwyDataView.html#gwy-data-view-get-data-prefix" title="gwy_data_view_get_data_prefix ()">gwy_data_view_get_data_prefix</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GwyDataView.html#gwy-data-view-set-data-prefix" title="gwy_data_view_set_data_prefix ()">gwy_data_view_set_data_prefix</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>,
<em class="parameter"><code>const <a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *prefix</code></em>);
<a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> <a class="link" href="GwyDataView.html#gwy-data-view-get-hexcess" title="gwy_data_view_get_hexcess ()">gwy_data_view_get_hexcess</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);
<a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> <a class="link" href="GwyDataView.html#gwy-data-view-get-vexcess" title="gwy_data_view_get_vexcess ()">gwy_data_view_get_vexcess</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GwyDataView.html#gwy-data-view-set-zoom" title="gwy_data_view_set_zoom ()">gwy_data_view_set_zoom</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</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> zoom</code></em>);
<a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> <a class="link" href="GwyDataView.html#gwy-data-view-get-zoom" title="gwy_data_view_get_zoom ()">gwy_data_view_get_zoom</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);
<a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> <a class="link" href="GwyDataView.html#gwy-data-view-get-real-zoom" title="gwy_data_view_get_real_zoom ()">gwy_data_view_get_real_zoom</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);
<a href="../libgwyddion/GwyContainer.html"><span class="returnvalue">GwyContainer</span></a> * <a class="link" href="GwyDataView.html#gwy-data-view-get-data" title="gwy_data_view_get_data ()">gwy_data_view_get_data</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GwyDataView.html#gwy-data-view-coords-xy-clamp" title="gwy_data_view_coords_xy_clamp ()">gwy_data_view_coords_xy_clamp</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>,
<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *xscr</code></em>,
<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *yscr</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GwyDataView.html#gwy-data-view-coords-xy-cut-line" title="gwy_data_view_coords_xy_cut_line ()">gwy_data_view_coords_xy_cut_line</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>,
<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *x0scr</code></em>,
<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *y0scr</code></em>,
<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *x1scr</code></em>,
<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *y1scr</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GwyDataView.html#gwy-data-view-coords-xy-to-real" title="gwy_data_view_coords_xy_to_real ()">gwy_data_view_coords_xy_to_real</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>,
<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xscr</code></em>,
<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> yscr</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> *xreal</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> *yreal</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GwyDataView.html#gwy-data-view-coords-real-to-xy" title="gwy_data_view_coords_real_to_xy ()">gwy_data_view_coords_real_to_xy</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</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> xreal</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> yreal</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> *xscr</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> *yscr</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> <a class="link" href="GwyDataView.html#gwy-data-view-get-xmeasure" title="gwy_data_view_get_xmeasure ()">gwy_data_view_get_xmeasure</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> <a class="link" href="GwyDataView.html#gwy-data-view-get-ymeasure" title="gwy_data_view_get_ymeasure ()">gwy_data_view_get_ymeasure</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GwyDataView.html#gwy-data-view-get-pixel-data-sizes" title="gwy_data_view_get_pixel_data_sizes ()">gwy_data_view_get_pixel_data_sizes</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</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> *xres</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> *yres</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GwyDataView.html#gwy-data-view-get-real-data-sizes" title="gwy_data_view_get_real_data_sizes ()">gwy_data_view_get_real_data_sizes</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</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> *xreal</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> *yreal</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GwyDataView.html#gwy-data-view-get-real-data-offsets" title="gwy_data_view_get_real_data_offsets ()">gwy_data_view_get_real_data_offsets</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</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> *xoffset</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> *yoffset</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GwyDataView.html#gwy-data-view-get-metric" title="gwy_data_view_get_metric ()">gwy_data_view_get_metric</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</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> *metric</code></em>);
<a href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> * <a class="link" href="GwyDataView.html#gwy-data-view-get-pixbuf" title="gwy_data_view_get_pixbuf ()">gwy_data_view_get_pixbuf</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</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> max_width</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> max_height</code></em>);
<a href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> * <a class="link" href="GwyDataView.html#gwy-data-view-export-pixbuf" title="gwy_data_view_export_pixbuf ()">gwy_data_view_export_pixbuf</a> (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</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> zoom</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> draw_alpha</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> draw_top</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="GwyDataView.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
+----<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
+----<a href="/usr/share/gtk-doc/html/gtk2/GtkObject.html">GtkObject</a>
+----<a href="/usr/share/gtk-doc/html/gtk3/GtkWidget.html">GtkWidget</a>
+----GwyDataView
</pre>
</div>
<div class="refsect1">
<a name="GwyDataView.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GwyDataView implements
AtkImplementorIface and <a href="/usr/share/gtk-doc/html/gtk3/GtkBuildable.html">GtkBuildable</a>.</p>
</div>
<div class="refsect1">
<a name="GwyDataView.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="GwyDataView.html#GwyDataView--data-prefix" title='The "data-prefix" property'>data-prefix</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
"<a class="link" href="GwyDataView.html#GwyDataView--zoom" title='The "zoom" property'>zoom</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read / Write
</pre>
</div>
<div class="refsect1">
<a name="GwyDataView.signals"></a><h2>Signals</h2>
<pre class="synopsis">
"<a class="link" href="GwyDataView.html#GwyDataView-layer-plugged" title='The "layer-plugged" signal'>layer-plugged</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a>
"<a class="link" href="GwyDataView.html#GwyDataView-layer-unplugged" title='The "layer-unplugged" signal'>layer-unplugged</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a>
"<a class="link" href="GwyDataView.html#GwyDataView-redrawn" title='The "redrawn" signal'>redrawn</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a>
"<a class="link" href="GwyDataView.html#GwyDataView-resized" title='The "resized" signal'>resized</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a>
</pre>
</div>
<div class="refsect1">
<a name="GwyDataView.description"></a><h2>Description</h2>
<p>
<a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> is a basic two-dimensional data display widget. The actual
rendering is performed by one or more <a class="link" href="GwyDataViewLayer.html" title="GwyDataViewLayer"><span class="type">GwyDataViewLayer</span></a>'s, pluggable into
the data view. Each layer generally displays different data field from
the container supplied to <a class="link" href="GwyDataView.html#gwy-data-view-new" title="gwy_data_view_new ()"><code class="function">gwy_data_view_new()</code></a>.
</p>
<p>
A base layer (set with <a class="link" href="GwyDataView.html#gwy-data-view-set-base-layer" title="gwy_data_view_set_base_layer ()"><code class="function">gwy_data_view_set_base_layer()</code></a>) must be always
present, and normally it is always a <a class="link" href="GwyLayerBasic.html" title="GwyLayerBasic"><span class="type">GwyLayerBasic</span></a>.
</p>
<p>
Other layers are optional. Middle, or alpha, layer (set with
<a class="link" href="GwyDataView.html#gwy-data-view-set-alpha-layer" title="gwy_data_view_set_alpha_layer ()"><code class="function">gwy_data_view_set_alpha_layer()</code></a>) used to display masks is normally always
a <a class="link" href="GwyLayerMask.html" title="GwyLayerMask"><span class="type">GwyLayerMask</span></a>. Top layer, if present, is a <a class="link" href="GwyVectorLayer.html" title="GwyVectorLayer"><span class="type">GwyVectorLayer</span></a> allowing to
draw selections with mouse and otherwise interace with the view, it is set
with <a class="link" href="GwyDataView.html#gwy-data-view-set-top-layer" title="gwy_data_view_set_top_layer ()"><code class="function">gwy_data_view_set_top_layer()</code></a>.
</p>
<p>
The size of a data view is affected by two factors: zoom and outer
constraints. If an explicit size set by window manager or by Gtk+ means, the
view scales the displayed data to fit into this size (while keeping x/y
ratio). Zoom controlls the size a data view requests, and can be set with
<a class="link" href="GwyDataView.html#gwy-data-view-set-zoom" title="gwy_data_view_set_zoom ()"><code class="function">gwy_data_view_set_zoom()</code></a>.
</p>
<p>
Several helper functions are available for transformation between screen
coordinates in the view and physical coordinates in the displayed data
field: <a class="link" href="GwyDataView.html#gwy-data-view-coords-xy-to-real" title="gwy_data_view_coords_xy_to_real ()"><code class="function">gwy_data_view_coords_xy_to_real()</code></a>, <a class="link" href="GwyDataView.html#gwy-data-view-get-xmeasure" title="gwy_data_view_get_xmeasure ()"><code class="function">gwy_data_view_get_xmeasure()</code></a>,
<a class="link" href="GwyDataView.html#gwy-data-view-get-hexcess" title="gwy_data_view_get_hexcess ()"><code class="function">gwy_data_view_get_hexcess()</code></a>, and others. Physical coordinates are always
taken from data field displayed by base layer.
</p>
</div>
<div class="refsect1">
<a name="GwyDataView.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GwyDataView-struct"></a><h3>struct GwyDataView</h3>
<pre class="programlisting">struct GwyDataView;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GwyDataViewClass"></a><h3>struct GwyDataViewClass</h3>
<pre class="programlisting">struct GwyDataViewClass {
GtkWidgetClass parent_class;
/* Signals */
void (*redrawn)(GwyDataView *data_view);
void (*resized)(GwyDataView *data_view);
void (*layer_plugged)(GwyDataView *data_view,
GwyDataViewLayerType layer);
void (*layer_unplugged)(GwyDataView *data_view,
GwyDataViewLayerType layer);
void (*reserved1)(void);
void (*reserved2)(void);
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-new"></a><h3>gwy_data_view_new ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * gwy_data_view_new (<em class="parameter"><code><a href="../libgwyddion/GwyContainer.html"><span class="type">GwyContainer</span></a> *data</code></em>);</pre>
<p>
Creates a new data-displaying widget for <em class="parameter"><code>data</code></em>.
</p>
<p>
A newly created <a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> doesn't display anything. You have to add
some layers to it, at least a base layer with
<a class="link" href="GwyDataView.html#gwy-data-view-set-base-layer" title="gwy_data_view_set_base_layer ()"><code class="function">gwy_data_view_set_base_layer()</code></a>, and possibly others with
<a class="link" href="GwyDataView.html#gwy-data-view-set-alpha-layer" title="gwy_data_view_set_alpha_layer ()"><code class="function">gwy_data_view_set_alpha_layer()</code></a> and <a class="link" href="GwyDataView.html#gwy-data-view-set-top-layer" title="gwy_data_view_set_top_layer ()"><code class="function">gwy_data_view_set_top_layer()</code></a>.
</p>
<p>
The top layer is special. It must be a vector layer and can receive
mouse and keyboard events.
</p>
<p>
The base layer it also special. It must be always present, and must not be
transparent or vector.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>A <a href="../libgwyddion/GwyContainer.html"><span class="type">GwyContainer</span></a> containing the data to display.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A newly created data view as a <a href="/usr/share/gtk-doc/html/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-get-base-layer"></a><h3>gwy_data_view_get_base_layer ()</h3>
<pre class="programlisting"><a class="link" href="GwyPixmapLayer.html" title="GwyPixmapLayer"><span class="returnvalue">GwyPixmapLayer</span></a> * gwy_data_view_get_base_layer (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);</pre>
<p>
Returns the base layer this data view currently uses.
</p>
<p>
A base layer should be always present.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The currently used base layer.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-set-base-layer"></a><h3>gwy_data_view_set_base_layer ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_data_view_set_base_layer (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>,
<em class="parameter"><code><a class="link" href="GwyPixmapLayer.html" title="GwyPixmapLayer"><span class="type">GwyPixmapLayer</span></a> *layer</code></em>);</pre>
<p>
Plugs <em class="parameter"><code>layer</code></em> to <em class="parameter"><code>data_view</code></em> as the base layer.
</p>
<p>
If another base layer is present, it's unplugged.
</p>
<p>
The layer must not be a vector layer. Theoretically, it can be <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
use no base layer, but then <em class="parameter"><code>data_view</code></em> will probably display garbage.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>layer</code></em> :</span></p></td>
<td>A layer to be used as the base layer for <em class="parameter"><code>data_view</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-get-alpha-layer"></a><h3>gwy_data_view_get_alpha_layer ()</h3>
<pre class="programlisting"><a class="link" href="GwyPixmapLayer.html" title="GwyPixmapLayer"><span class="returnvalue">GwyPixmapLayer</span></a> * gwy_data_view_get_alpha_layer (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);</pre>
<p>
Returns the alpha layer this data view currently uses, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if none
is present.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The currently used alpha layer.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-set-alpha-layer"></a><h3>gwy_data_view_set_alpha_layer ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_data_view_set_alpha_layer (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>,
<em class="parameter"><code><a class="link" href="GwyPixmapLayer.html" title="GwyPixmapLayer"><span class="type">GwyPixmapLayer</span></a> *layer</code></em>);</pre>
<p>
Plugs <em class="parameter"><code>layer</code></em> to <em class="parameter"><code>data_view</code></em> as the alpha layer.
</p>
<p>
If another alpha layer is present, it's unplugged.
</p>
<p>
The layer must not be a vector layer. It can be <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, meaning no alpha
layer is to be used.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>layer</code></em> :</span></p></td>
<td>A layer to be used as the alpha layer for <em class="parameter"><code>data_view</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-get-top-layer"></a><h3>gwy_data_view_get_top_layer ()</h3>
<pre class="programlisting"><a class="link" href="GwyVectorLayer.html" title="GwyVectorLayer"><span class="returnvalue">GwyVectorLayer</span></a> * gwy_data_view_get_top_layer (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);</pre>
<p>
Returns the top layer this data view currently uses, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if none
is present.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The currently used top layer.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-set-top-layer"></a><h3>gwy_data_view_set_top_layer ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_data_view_set_top_layer (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>,
<em class="parameter"><code><a class="link" href="GwyVectorLayer.html" title="GwyVectorLayer"><span class="type">GwyVectorLayer</span></a> *layer</code></em>);</pre>
<p>
Plugs <em class="parameter"><code>layer</code></em> to <em class="parameter"><code>data_view</code></em> as the top layer.
</p>
<p>
If another top layer is present, it's unplugged.
</p>
<p>
The layer must be a vector layer. It can be <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, meaning no top
layer is to be used.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>layer</code></em> :</span></p></td>
<td>A layer to be used as the top layer for <em class="parameter"><code>data_view</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-get-data-prefix"></a><h3>gwy_data_view_get_data_prefix ()</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_data_view_get_data_prefix (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);</pre>
<p>
Gets the prefix for the container data channel that the data view is
currently set to display.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The container data prefix (eg. "/0/data").</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-set-data-prefix"></a><h3>gwy_data_view_set_data_prefix ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_data_view_set_data_prefix (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</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> *prefix</code></em>);</pre>
<p>
Sets the prefix for the container data channel to display in a data view.
</p>
<p>
This function only affects where the data view itself takes parameters
from, it does not affect layer keys.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>prefix</code></em> :</span></p></td>
<td>Container prefix for data (eg. "/0/data").</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-get-hexcess"></a><h3>gwy_data_view_get_hexcess ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> gwy_data_view_get_hexcess (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);</pre>
<p>
Return the horizontal excess of widget size to data size.
</p>
<p>
Do not use. Only useful for <a class="link" href="GwyDataWindow.html" title="GwyDataWindow"><span class="type">GwyDataWindow</span></a> implementation.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The execess.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-get-vexcess"></a><h3>gwy_data_view_get_vexcess ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> gwy_data_view_get_vexcess (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);</pre>
<p>
Return the vertical excess of widget size to data size.
</p>
<p>
Do not use. Only useful for <a class="link" href="GwyDataWindow.html" title="GwyDataWindow"><span class="type">GwyDataWindow</span></a> implementation.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The execess.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-set-zoom"></a><h3>gwy_data_view_set_zoom ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_data_view_set_zoom (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</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> zoom</code></em>);</pre>
<p>
Sets zoom of <em class="parameter"><code>data_view</code></em> to <em class="parameter"><code>zoom</code></em>.
</p>
<p>
Zoom greater than 1 means larger image on screen and vice versa.
</p>
<p>
Note window manager can prevent the window from resize and thus the zoom
from change.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>zoom</code></em> :</span></p></td>
<td>A new zoom value.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-get-zoom"></a><h3>gwy_data_view_get_zoom ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> gwy_data_view_get_zoom (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);</pre>
<p>
Returns current ideal zoom of a data view.
</p>
<p>
More precisely the zoom value requested by <a class="link" href="GwyDataView.html#gwy-data-view-set-zoom" title="gwy_data_view_set_zoom ()"><code class="function">gwy_data_view_set_zoom()</code></a>, if
it's in use (real zoom may differ a bit due to pixel rounding). If zoom
was set by explicite widget size change, real and requested zoom are
considered to be the same.
</p>
<p>
When a resize is queued, the new zoom value is returned.
</p>
<p>
In other words, this is the zoom <em class="parameter"><code>data_view</code></em> would like to have. Use
<a class="link" href="GwyDataView.html#gwy-data-view-get-real-zoom" title="gwy_data_view_get_real_zoom ()"><code class="function">gwy_data_view_get_real_zoom()</code></a> to get the real zoom.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The zoom as a ratio between ideal displayed size and base data
field size.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-get-real-zoom"></a><h3>gwy_data_view_get_real_zoom ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> gwy_data_view_get_real_zoom (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);</pre>
<p>
Returns current real zoom of a data view.
</p>
<p>
This is the zoom value a data view may not wish to have, but was imposed
by window manager or other constraints. Unlike ideal zoom set by
<a class="link" href="GwyDataView.html#gwy-data-view-set-zoom" title="gwy_data_view_set_zoom ()"><code class="function">gwy_data_view_set_zoom()</code></a>, this value cannot be set.
</p>
<p>
When a resize is queued, the current (old) value is returned.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The zoom as a ratio between real displayed size and base data
field size.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-get-data"></a><h3>gwy_data_view_get_data ()</h3>
<pre class="programlisting"><a href="../libgwyddion/GwyContainer.html"><span class="returnvalue">GwyContainer</span></a> * gwy_data_view_get_data (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);</pre>
<p>
Returns the data container used by <em class="parameter"><code>data_view</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The data as a <a href="../libgwyddion/GwyContainer.html"><span class="type">GwyContainer</span></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-coords-xy-clamp"></a><h3>gwy_data_view_coords_xy_clamp ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_data_view_coords_xy_clamp (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</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> *xscr</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> *yscr</code></em>);</pre>
<p>
Fixes screen coordinates <em class="parameter"><code>xscr</code></em> and <em class="parameter"><code>yscr</code></em> to be inside the data-displaying
area (which can be smaller than widget size).
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xscr</code></em> :</span></p></td>
<td>A screen x-coordinate relative to widget origin.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>yscr</code></em> :</span></p></td>
<td>A screen y-coordinate relative to widget origin.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-coords-xy-cut-line"></a><h3>gwy_data_view_coords_xy_cut_line ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_data_view_coords_xy_cut_line (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</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> *x0scr</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> *y0scr</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> *x1scr</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> *y1scr</code></em>);</pre>
<p>
Fixes screen coordinates of line endpoints to be inside the data-displaying
area (which can be smaller than widget size).
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x0scr</code></em> :</span></p></td>
<td>First point screen x-coordinate relative to widget origin.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y0scr</code></em> :</span></p></td>
<td>First point screen y-coordinate relative to widget origin.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x1scr</code></em> :</span></p></td>
<td>Second point screen x-coordinate relative to widget origin.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y1scr</code></em> :</span></p></td>
<td>Second point screen y-coordinate relative to widget origin.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.11</p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-coords-xy-to-real"></a><h3>gwy_data_view_coords_xy_to_real ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_data_view_coords_xy_to_real (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</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> xscr</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> yscr</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> *xreal</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> *yreal</code></em>);</pre>
<p>
Recomputes screen coordinates relative to widget origin to physical
coordinates in the sample.
</p>
<p>
Note that data fields offsets are <span class="emphasis"><em>not</em></span> taken into
account. Coordinates <em class="parameter"><code>xreal</code></em>, <em class="parameter"><code>yreal</code></em> are just relative coordinates to the
top left field corner.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xscr</code></em> :</span></p></td>
<td>A screen x-coordinate relative to widget origin.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>yscr</code></em> :</span></p></td>
<td>A screen y-coordinate relative to widget origin.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xreal</code></em> :</span></p></td>
<td>Where the physical x-coordinate in the data sample should be stored.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>yreal</code></em> :</span></p></td>
<td>Where the physical y-coordinate in the data sample should be stored.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-coords-real-to-xy"></a><h3>gwy_data_view_coords_real_to_xy ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_data_view_coords_real_to_xy (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</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> xreal</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> yreal</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> *xscr</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> *yscr</code></em>);</pre>
<p>
Recomputes physical coordinate in the sample to screen coordinate relative
to widget origin.
</p>
<p>
Note that data fields offsets are <span class="emphasis"><em>not</em></span> taken into
account. Coordinates <em class="parameter"><code>xreal</code></em>, <em class="parameter"><code>yreal</code></em> are just relative coordinates to the
top left field corner.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xreal</code></em> :</span></p></td>
<td>A physical x-coordinate in the data sample.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>yreal</code></em> :</span></p></td>
<td>A physical y-coordinate in the data sample.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xscr</code></em> :</span></p></td>
<td>Where the screen x-coordinate relative to widget origin should be
stored.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>yscr</code></em> :</span></p></td>
<td>Where the screen y-coordinate relative to widget origin should be
stored.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-get-xmeasure"></a><h3>gwy_data_view_get_xmeasure ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> gwy_data_view_get_xmeasure (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);</pre>
<p>
Returns the ratio between horizontal physical lengths and horizontal
screen lengths in pixels.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The horizontal measure.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-get-ymeasure"></a><h3>gwy_data_view_get_ymeasure ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> gwy_data_view_get_ymeasure (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</code></em>);</pre>
<p>
Returns the ratio between vertical physical lengths and horizontal
screen lengths in pixels.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The vertical measure.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-get-pixel-data-sizes"></a><h3>gwy_data_view_get_pixel_data_sizes ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_data_view_get_pixel_data_sizes (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</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> *xres</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> *yres</code></em>);</pre>
<p>
Obtains pixel dimensions of data displayed by a data view.
</p>
<p>
This is a convenience method, the same values could be obtained
by <a href="../libgwyprocess/GwyDataField.html#gwy-data-field-get-xres"><code class="function">gwy_data_field_get_xres()</code></a> and <a href="../libgwyprocess/GwyDataField.html#gwy-data-field-get-yres"><code class="function">gwy_data_field_get_yres()</code></a> of the data
field displayed by the base layer.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xres</code></em> :</span></p></td>
<td>Location to store x-resolution of displayed data (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"><em class="parameter"><code>yres</code></em> :</span></p></td>
<td>Location to store y-resolution of displayed data (or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>).</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-get-real-data-sizes"></a><h3>gwy_data_view_get_real_data_sizes ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_data_view_get_real_data_sizes (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</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> *xreal</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> *yreal</code></em>);</pre>
<p>
Obtains physical dimensions of data displayed by a data view.
</p>
<p>
Physical coordinates are always taken from data field displayed by the base
layer. This is a convenience method, the same values could be obtained
by <a href="../libgwyprocess/GwyDataField.html#gwy-data-field-get-xreal"><code class="function">gwy_data_field_get_xreal()</code></a> and <a href="../libgwyprocess/GwyDataField.html#gwy-data-field-get-yreal"><code class="function">gwy_data_field_get_yreal()</code></a> of the data
field displayed by the base layer.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xreal</code></em> :</span></p></td>
<td>Location to store physical x-dimension of the displayed data
without excess (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"><em class="parameter"><code>yreal</code></em> :</span></p></td>
<td>Location to store physical y-dimension of the displayed data
without excess (or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>).</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-get-real-data-offsets"></a><h3>gwy_data_view_get_real_data_offsets ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_data_view_get_real_data_offsets (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</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> *xoffset</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> *yoffset</code></em>);</pre>
<p>
Obtains physical offsets of data displayed by a data view.
</p>
<p>
Physical coordinates are always taken from data field displayed by the base
layer. This is a convenience method, the same values could be obtained
by <a href="../libgwyprocess/GwyDataField.html#gwy-data-field-get-xoffset"><code class="function">gwy_data_field_get_xoffset()</code></a> and <a href="../libgwyprocess/GwyDataField.html#gwy-data-field-get-yoffset"><code class="function">gwy_data_field_get_yoffset()</code></a> of the data
field displayed by the base layer.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xoffset</code></em> :</span></p></td>
<td>Location to store physical x-offset of the top corner of
displayed data without excess (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"><em class="parameter"><code>yoffset</code></em> :</span></p></td>
<td>Location to store physical y-offset of the top corner of
displayed data without excess (or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>).</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-get-metric"></a><h3>gwy_data_view_get_metric ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_data_view_get_metric (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</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> *metric</code></em>);</pre>
<p>
Fills metric matrix for a data view.
</p>
<p>
The metric matrix essentially transforms distances in physical coordinates
to screen distances. It is to be used with functions like
<a href="../libgwyddion/libgwyddion-Math.html#gwy-math-find-nearest-point"><code class="function">gwy_math_find_nearest_point()</code></a> and <a href="../libgwyddion/libgwyddion-Math.html#gwy-math-find-nearest-line"><code class="function">gwy_math_find_nearest_line()</code></a> when the
distance should be screen-Euclidean.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>metric</code></em> :</span></p></td>
<td>Metric matrix 2x2 (stored in sequentially by rows: m11, m12, m12,
m22).</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-get-pixbuf"></a><h3>gwy_data_view_get_pixbuf ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> * gwy_data_view_get_pixbuf (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</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> max_width</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> max_height</code></em>);</pre>
<p>
Creates and returns a pixbuf from the data view.
</p>
<p>
If the data is not square, the resulting pixbuf is also nonsquare.
The returned pixbuf also never has an alpha channel.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>max_width</code></em> :</span></p></td>
<td>Pixbuf width that should not be exceeeded. Value smaller than
1 means unlimited size.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>max_height</code></em> :</span></p></td>
<td>Pixbuf height that should not be exceeeded. Value smaller than
1 means unlimited size.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The pixbuf as a newly created <a href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, it should be freed
when no longer needed. It is never larger than the actual data
size, as <em class="parameter"><code>max_width</code></em> and <em class="parameter"><code>max_height</code></em> are only upper limits.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-view-export-pixbuf"></a><h3>gwy_data_view_export_pixbuf ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> * gwy_data_view_export_pixbuf (<em class="parameter"><code><a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *data_view</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> zoom</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> draw_alpha</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> draw_top</code></em>);</pre>
<p>
Exports data view to a pixbuf.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_view</code></em> :</span></p></td>
<td>A data view.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>zoom</code></em> :</span></p></td>
<td>Zoom to export data with (unrelated to data view zoom).</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>draw_alpha</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> to draw alpha layer (mask).</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>draw_top</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> to draw top layer (selection).</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A newly created pixbuf, it must be freed by caller.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="GwyDataView.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GwyDataView--data-prefix"></a><h3>The <code class="literal">"data-prefix"</code> property</h3>
<pre class="programlisting"> "data-prefix" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre>
<p>
The :data-prefix property is the container prefix the data displayed
by this view lies under.
</p>
<p>
Note it is only used for items used by <a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> itself, layers have
their own keys.
</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="GwyDataView--zoom"></a><h3>The <code class="literal">"zoom"</code> property</h3>
<pre class="programlisting"> "zoom" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read / Write</pre>
<p>
The :zoom property is the ratio between displayed and real data size.
</p>
<p>Allowed values: [0.0625,16]</p>
<p>Default value: 1</p>
</div>
</div>
<div class="refsect1">
<a name="GwyDataView.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="GwyDataView-layer-plugged"></a><h3>The <code class="literal">"layer-plugged"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *arg1,
<a class="link" href="libgwydgets-gwydgetenums.html#GwyDataViewLayerType" title="enum GwyDataViewLayerType"><span class="type">GwyDataViewLayerType</span></a> gwydataview,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre>
<p>
The ::layer-plugged signal is emitted when a layer is plugged into
a <a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a>.
</p>
<p>
When a layer replaces an existing layer, ::layer-unplugged is emitted
once the old layer is unplugged, then ::layer-plugged when the new
is plugged.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>arg1</code></em> :</span></p></td>
<td>Which layer was plugged (a <a class="link" href="libgwydgets-gwydgetenums.html#GwyDataViewLayerType" title="enum GwyDataViewLayerType"><span class="type">GwyDataViewLayerType</span></a> value).</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>gwydataview</code></em> :</span></p></td>
<td>The <a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> which received the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GwyDataView-layer-unplugged"></a><h3>The <code class="literal">"layer-unplugged"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *arg1,
<a class="link" href="libgwydgets-gwydgetenums.html#GwyDataViewLayerType" title="enum GwyDataViewLayerType"><span class="type">GwyDataViewLayerType</span></a> gwydataview,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre>
<p>
The ::layer-unplugged signal is emitted when a layer is unplugged from
a <a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a>.
</p>
<p>
When a layer replaces an existing layer, ::layer-unplugged is emitted
once the old layer is unplugged, then ::layer-plugged when the new
is plugged.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>arg1</code></em> :</span></p></td>
<td>Which layer was unplugged (a <a class="link" href="libgwydgets-gwydgetenums.html#GwyDataViewLayerType" title="enum GwyDataViewLayerType"><span class="type">GwyDataViewLayerType</span></a> value).</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>gwydataview</code></em> :</span></p></td>
<td>The <a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> which received the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GwyDataView-redrawn"></a><h3>The <code class="literal">"redrawn"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *gwydataview,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre>
<p>
The ::redrawn signal is emitted when <a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> redraws pixbufs after
an update. That is, when it's the right time to get a new pixbuf from
<a class="link" href="GwyDataView.html#gwy-data-view-get-pixbuf" title="gwy_data_view_get_pixbuf ()"><code class="function">gwy_data_view_get_pixbuf()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>gwydataview</code></em> :</span></p></td>
<td>The <a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> which received the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GwyDataView-resized"></a><h3>The <code class="literal">"resized"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> *gwydataview,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre>
<p>
The ::resized signal is emitted when <a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> wants to be resized,
that is when the dimensions of base data field changes or square mode
is changed.
Its purpose is to subvert the normal resizing logic of <a class="link" href="GwyDataWindow.html" title="GwyDataWindow"><span class="type">GwyDataWindow</span></a>
(due to geometry hints, its size requests are generally ignored, so
an explicit resize is needed). You should usually ignore it.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>gwydataview</code></em> :</span></p></td>
<td>The <a class="link" href="GwyDataView.html" title="GwyDataView"><span class="type">GwyDataView</span></a> which received the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="GwyDataView.see-also"></a><h2>See Also</h2>
<a class="link" href="GwyDataWindow.html" title="GwyDataWindow"><span class="type">GwyDataWindow</span></a> -- window combining data view with other controls,
<a class="link" href="GwyDataViewLayer.html" title="GwyDataViewLayer"><span class="type">GwyDataViewLayer</span></a> -- layers a data view is composed of,
<a href="../libgwydraw/libgwydraw-gwypixfield.html">gwypixfield</a> --
low level functions for painting data fields,
<a class="link" href="Gwy3DView.html" title="Gwy3DView"><span class="type">Gwy3DView</span></a> -- OpenGL 3D data display
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.19</div>
</body>
</html>
|