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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkGrid: GTK+ 3 Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
<link rel="up" href="LayoutContainers.html" title="Layout Containers">
<link rel="prev" href="GtkBox.html" title="GtkBox">
<link rel="next" href="GtkRevealer.html" title="GtkRevealer">
<meta name="generator" content="GTK-Doc V1.25.1 (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="#GtkGrid.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
<a href="#GtkGrid.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces"> <span class="dim">|</span>
<a href="#GtkGrid.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties"> <span class="dim">|</span>
<a href="#GtkGrid.properties" class="shortcut">Properties</a></span><span id="nav_child_properties"> <span class="dim">|</span>
<a href="#GtkGrid.child-properties" class="shortcut">Child Properties</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><a accesskey="u" href="LayoutContainers.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="GtkBox.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="GtkRevealer.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GtkGrid"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GtkGrid.top_of_page"></a>GtkGrid</span></h2>
<p>GtkGrid — Pack widgets in rows and columns</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="GtkGrid.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *
</td>
<td class="function_name">
<a class="link" href="GtkGrid.html#gtk-grid-new" title="gtk_grid_new ()">gtk_grid_new</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="GtkGrid.html#gtk-grid-attach" title="gtk_grid_attach ()">gtk_grid_attach</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="GtkGrid.html#gtk-grid-attach-next-to" title="gtk_grid_attach_next_to ()">gtk_grid_attach_next_to</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *
</td>
<td class="function_name">
<a class="link" href="GtkGrid.html#gtk-grid-get-child-at" title="gtk_grid_get_child_at ()">gtk_grid_get_child_at</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="GtkGrid.html#gtk-grid-insert-row" title="gtk_grid_insert_row ()">gtk_grid_insert_row</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="GtkGrid.html#gtk-grid-insert-column" title="gtk_grid_insert_column ()">gtk_grid_insert_column</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="GtkGrid.html#gtk-grid-remove-row" title="gtk_grid_remove_row ()">gtk_grid_remove_row</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="GtkGrid.html#gtk-grid-remove-column" title="gtk_grid_remove_column ()">gtk_grid_remove_column</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="GtkGrid.html#gtk-grid-insert-next-to" title="gtk_grid_insert_next_to ()">gtk_grid_insert_next_to</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="GtkGrid.html#gtk-grid-set-row-homogeneous" title="gtk_grid_set_row_homogeneous ()">gtk_grid_set_row_homogeneous</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GtkGrid.html#gtk-grid-get-row-homogeneous" title="gtk_grid_get_row_homogeneous ()">gtk_grid_get_row_homogeneous</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="GtkGrid.html#gtk-grid-set-row-spacing" title="gtk_grid_set_row_spacing ()">gtk_grid_set_row_spacing</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
</td>
<td class="function_name">
<a class="link" href="GtkGrid.html#gtk-grid-get-row-spacing" title="gtk_grid_get_row_spacing ()">gtk_grid_get_row_spacing</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="GtkGrid.html#gtk-grid-set-column-homogeneous" title="gtk_grid_set_column_homogeneous ()">gtk_grid_set_column_homogeneous</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GtkGrid.html#gtk-grid-get-column-homogeneous" title="gtk_grid_get_column_homogeneous ()">gtk_grid_get_column_homogeneous</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="GtkGrid.html#gtk-grid-set-column-spacing" title="gtk_grid_set_column_spacing ()">gtk_grid_set_column_spacing</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
</td>
<td class="function_name">
<a class="link" href="GtkGrid.html#gtk-grid-get-column-spacing" title="gtk_grid_get_column_spacing ()">gtk_grid_get_column_spacing</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
</td>
<td class="function_name">
<a class="link" href="GtkGrid.html#gtk-grid-get-baseline-row" title="gtk_grid_get_baseline_row ()">gtk_grid_get_baseline_row</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="GtkGrid.html#gtk-grid-set-baseline-row" title="gtk_grid_set_baseline_row ()">gtk_grid_set_baseline_row</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gtk3-Standard-Enumerations.html#GtkBaselinePosition" title="enum GtkBaselinePosition"><span class="returnvalue">GtkBaselinePosition</span></a>
</td>
<td class="function_name">
<a class="link" href="GtkGrid.html#gtk-grid-get-row-baseline-position" title="gtk_grid_get_row_baseline_position ()">gtk_grid_get_row_baseline_position</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="GtkGrid.html#gtk-grid-set-row-baseline-position" title="gtk_grid_set_row_baseline_position ()">gtk_grid_set_row_baseline_position</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GtkGrid.properties"></a><h2>Properties</h2>
<div class="informaltable"><table class="informaltable" 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="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
<td class="property_name"><a class="link" href="GtkGrid.html#GtkGrid--baseline-row" title="The “baseline-row” property">baseline-row</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
<td class="property_name"><a class="link" href="GtkGrid.html#GtkGrid--column-homogeneous" title="The “column-homogeneous” property">column-homogeneous</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
<td class="property_name"><a class="link" href="GtkGrid.html#GtkGrid--column-spacing" title="The “column-spacing” property">column-spacing</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
<td class="property_name"><a class="link" href="GtkGrid.html#GtkGrid--row-homogeneous" title="The “row-homogeneous” property">row-homogeneous</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
<td class="property_name"><a class="link" href="GtkGrid.html#GtkGrid--row-spacing" title="The “row-spacing” property">row-spacing</a></td>
<td class="property_flags">Read / Write</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GtkGrid.child-properties"></a><h2>Child Properties</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="child_properties_type">
<col width="300px" class="child_properties_name">
<col width="200px" class="child_properties_flags">
</colgroup>
<tbody>
<tr>
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
<td class="property_name"><a class="link" href="GtkGrid.html#GtkGrid--c-height" title="The “height” child property">height</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
<td class="property_name"><a class="link" href="GtkGrid.html#GtkGrid--c-left-attach" title="The “left-attach” child property">left-attach</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
<td class="property_name"><a class="link" href="GtkGrid.html#GtkGrid--c-top-attach" title="The “top-attach” child property">top-attach</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
<td class="property_name"><a class="link" href="GtkGrid.html#GtkGrid--c-width" title="The “width” child property">width</a></td>
<td class="property_flags">Read / Write</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GtkGrid.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" 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="GtkGrid.html#GtkGrid-struct" title="struct GtkGrid">GtkGrid</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="GtkGrid.html#GtkGridClass" title="struct GtkGridClass">GtkGridClass</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GtkGrid.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen"> <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
<span class="lineart">╰──</span> <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
<span class="lineart">╰──</span> <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
<span class="lineart">╰──</span> <a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
<span class="lineart">╰──</span> GtkGrid
</pre>
</div>
<div class="refsect1">
<a name="GtkGrid.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GtkGrid implements
AtkImplementorIface, <a class="link" href="GtkBuildable.html" title="GtkBuildable">GtkBuildable</a> and <a class="link" href="gtk3-Orientable.html#GtkOrientable">GtkOrientable</a>.</p>
</div>
<div class="refsect1">
<a name="GtkGrid.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include <gtk/gtk.h>
</pre>
</div>
<div class="refsect1">
<a name="GtkGrid.description"></a><h2>Description</h2>
<p>GtkGrid is a container which arranges its child widgets in
rows and columns. It is a very similar to <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> and <a class="link" href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a>,
but it consistently uses <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>’s <a class="link" href="GtkWidget.html#GtkWidget--margin" title="The “margin” property"><span class="type">“margin”</span></a> and <a class="link" href="GtkWidget.html#GtkWidget--expand" title="The “expand” property"><span class="type">“expand”</span></a>
properties instead of custom child properties, and it fully supports
<a class="link" href="GtkWidget.html#geometry-management" title="Height-for-width Geometry Management">height-for-width geometry management</a>.</p>
<p>Children are added using <a class="link" href="GtkGrid.html#gtk-grid-attach" title="gtk_grid_attach ()"><code class="function">gtk_grid_attach()</code></a>. They can span multiple
rows or columns. It is also possible to add a child next to an
existing child, using <a class="link" href="GtkGrid.html#gtk-grid-attach-next-to" title="gtk_grid_attach_next_to ()"><code class="function">gtk_grid_attach_next_to()</code></a>. The behaviour of
GtkGrid when several children occupy the same grid cell is undefined.</p>
<p>GtkGrid can be used like a <a class="link" href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a> by just using <a class="link" href="GtkContainer.html#gtk-container-add" title="gtk_container_add ()"><code class="function">gtk_container_add()</code></a>,
which will place children next to each other in the direction determined
by the <a class="link" href="gtk3-Orientable.html#GtkOrientable--orientation" title="The “orientation” property"><span class="type">“orientation”</span></a> property.</p>
<div class="refsect2">
<a name="id-1.3.7.3.10.5"></a><h3>CSS nodes</h3>
<p>GtkGrid uses a single CSS node with name grid.</p>
</div>
</div>
<div class="refsect1">
<a name="GtkGrid.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="gtk-grid-new"></a><h3>gtk_grid_new ()</h3>
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *
gtk_grid_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>Creates a new grid widget.</p>
<div class="refsect3">
<a name="gtk-grid-new.returns"></a><h4>Returns</h4>
<p> the new <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-attach"></a><h3>gtk_grid_attach ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_grid_attach (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> left</code></em>,
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> top</code></em>,
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);</pre>
<p>Adds a widget to the grid.</p>
<p>The position of <em class="parameter"><code>child</code></em>
is determined by <em class="parameter"><code>left</code></em>
and <em class="parameter"><code>top</code></em>
. The
number of “cells” that <em class="parameter"><code>child</code></em>
will occupy is determined by
<em class="parameter"><code>width</code></em>
and <em class="parameter"><code>height</code></em>
.</p>
<div class="refsect3">
<a name="gtk-grid-attach.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>grid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>child</p></td>
<td class="parameter_description"><p>the widget to add</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>left</p></td>
<td class="parameter_description"><p>the column number to attach the left side of <em class="parameter"><code>child</code></em>
to</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>top</p></td>
<td class="parameter_description"><p>the row number to attach the top side of <em class="parameter"><code>child</code></em>
to</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>the number of columns that <em class="parameter"><code>child</code></em>
will span</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>the number of rows that <em class="parameter"><code>child</code></em>
will span</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-attach-next-to"></a><h3>gtk_grid_attach_next_to ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_grid_attach_next_to (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *sibling</code></em>,
<em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> side</code></em>,
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);</pre>
<p>Adds a widget to the grid.</p>
<p>The widget is placed next to <em class="parameter"><code>sibling</code></em>
, on the side determined by
<em class="parameter"><code>side</code></em>
. When <em class="parameter"><code>sibling</code></em>
is <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the widget is placed in row (for
left or right placement) or column 0 (for top or bottom placement),
at the end indicated by <em class="parameter"><code>side</code></em>
.</p>
<p>Attaching widgets labeled [1], [2], [3] with <em class="parameter"><code>sibling</code></em>
== <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> and
<em class="parameter"><code>side</code></em>
== <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-LEFT:CAPS"><code class="literal">GTK_POS_LEFT</code></a> yields a layout of 3[1].</p>
<div class="refsect3">
<a name="gtk-grid-attach-next-to.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>grid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>child</p></td>
<td class="parameter_description"><p>the widget to add</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>sibling</p></td>
<td class="parameter_description"><p> the child of <em class="parameter"><code>grid</code></em>
that <em class="parameter"><code>child</code></em>
will be placed
next to, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to place <em class="parameter"><code>child</code></em>
at the beginning or end. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>side</p></td>
<td class="parameter_description"><p>the side of <em class="parameter"><code>sibling</code></em>
that <em class="parameter"><code>child</code></em>
is positioned next to</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>the number of columns that <em class="parameter"><code>child</code></em>
will span</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>the number of rows that <em class="parameter"><code>child</code></em>
will span</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-get-child-at"></a><h3>gtk_grid_get_child_at ()</h3>
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *
gtk_grid_get_child_at (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> left</code></em>,
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> top</code></em>);</pre>
<p>Gets the child of <em class="parameter"><code>grid</code></em>
whose area covers the grid
cell whose upper left corner is at <em class="parameter"><code>left</code></em>
, <em class="parameter"><code>top</code></em>
.</p>
<div class="refsect3">
<a name="gtk-grid-get-child-at.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>grid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>left</p></td>
<td class="parameter_description"><p>the left edge of the cell</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>top</p></td>
<td class="parameter_description"><p>the top edge of the cell</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-grid-get-child-at.returns"></a><h4>Returns</h4>
<p> the child at the given position, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-2.html#api-index-3.2">3.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-insert-row"></a><h3>gtk_grid_insert_row ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_grid_insert_row (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> position</code></em>);</pre>
<p>Inserts a row at the specified position.</p>
<p>Children which are attached at or below this position
are moved one row down. Children which span across this
position are grown to span the new row.</p>
<div class="refsect3">
<a name="gtk-grid-insert-row.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>grid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>position</p></td>
<td class="parameter_description"><p>the position to insert the row at</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-2.html#api-index-3.2">3.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-insert-column"></a><h3>gtk_grid_insert_column ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_grid_insert_column (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> position</code></em>);</pre>
<p>Inserts a column at the specified position.</p>
<p>Children which are attached at or to the right of this position
are moved one column to the right. Children which span across this
position are grown to span the new column.</p>
<div class="refsect3">
<a name="gtk-grid-insert-column.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>grid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>position</p></td>
<td class="parameter_description"><p>the position to insert the column at</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-2.html#api-index-3.2">3.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-remove-row"></a><h3>gtk_grid_remove_row ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_grid_remove_row (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> position</code></em>);</pre>
<p>Removes a row from the grid.</p>
<p>Children that are placed in this row are removed,
spanning children that overlap this row have their
height reduced by one, and children below the row
are moved up.</p>
<div class="refsect3">
<a name="gtk-grid-remove-row.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>grid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>position</p></td>
<td class="parameter_description"><p>the position of the row to remove</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-10.html#api-index-3.10">3.10</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-remove-column"></a><h3>gtk_grid_remove_column ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_grid_remove_column (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> position</code></em>);</pre>
<p>Removes a column from the grid.</p>
<p>Children that are placed in this column are removed,
spanning children that overlap this column have their
width reduced by one, and children after the column
are moved to the left.</p>
<div class="refsect3">
<a name="gtk-grid-remove-column.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>grid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>position</p></td>
<td class="parameter_description"><p>the position of the column to remove</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-10.html#api-index-3.10">3.10</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-insert-next-to"></a><h3>gtk_grid_insert_next_to ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_grid_insert_next_to (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *sibling</code></em>,
<em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> side</code></em>);</pre>
<p>Inserts a row or column at the specified position.</p>
<p>The new row or column is placed next to <em class="parameter"><code>sibling</code></em>
, on the side
determined by <em class="parameter"><code>side</code></em>
. If <em class="parameter"><code>side</code></em>
is <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-TOP:CAPS"><code class="literal">GTK_POS_TOP</code></a> or <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-BOTTOM:CAPS"><code class="literal">GTK_POS_BOTTOM</code></a>,
a row is inserted. If <em class="parameter"><code>side</code></em>
is <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-LEFT:CAPS"><code class="literal">GTK_POS_LEFT</code></a> of <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-RIGHT:CAPS"><code class="literal">GTK_POS_RIGHT</code></a>,
a column is inserted.</p>
<div class="refsect3">
<a name="gtk-grid-insert-next-to.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>grid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>sibling</p></td>
<td class="parameter_description"><p>the child of <em class="parameter"><code>grid</code></em>
that the new row or column will be
placed next to</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>side</p></td>
<td class="parameter_description"><p>the side of <em class="parameter"><code>sibling</code></em>
that <em class="parameter"><code>child</code></em>
is positioned next to</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-2.html#api-index-3.2">3.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-set-row-homogeneous"></a><h3>gtk_grid_set_row_homogeneous ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_grid_set_row_homogeneous (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> homogeneous</code></em>);</pre>
<p>Sets whether all rows of <em class="parameter"><code>grid</code></em>
will have the same height.</p>
<div class="refsect3">
<a name="gtk-grid-set-row-homogeneous.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>grid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>homogeneous</p></td>
<td class="parameter_description"><p><a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to make rows homogeneous</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-get-row-homogeneous"></a><h3>gtk_grid_get_row_homogeneous ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gtk_grid_get_row_homogeneous (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);</pre>
<p>Returns whether all rows of <em class="parameter"><code>grid</code></em>
have the same height.</p>
<div class="refsect3">
<a name="gtk-grid-get-row-homogeneous.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>grid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-grid-get-row-homogeneous.returns"></a><h4>Returns</h4>
<p> whether all rows of <em class="parameter"><code>grid</code></em>
have the same height.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-set-row-spacing"></a><h3>gtk_grid_set_row_spacing ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_grid_set_row_spacing (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> spacing</code></em>);</pre>
<p>Sets the amount of space between rows of <em class="parameter"><code>grid</code></em>
.</p>
<div class="refsect3">
<a name="gtk-grid-set-row-spacing.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>grid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>spacing</p></td>
<td class="parameter_description"><p>the amount of space to insert between rows</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-get-row-spacing"></a><h3>gtk_grid_get_row_spacing ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
gtk_grid_get_row_spacing (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);</pre>
<p>Returns the amount of space between the rows of <em class="parameter"><code>grid</code></em>
.</p>
<div class="refsect3">
<a name="gtk-grid-get-row-spacing.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>grid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-grid-get-row-spacing.returns"></a><h4>Returns</h4>
<p> the row spacing of <em class="parameter"><code>grid</code></em>
</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-set-column-homogeneous"></a><h3>gtk_grid_set_column_homogeneous ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_grid_set_column_homogeneous (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> homogeneous</code></em>);</pre>
<p>Sets whether all columns of <em class="parameter"><code>grid</code></em>
will have the same width.</p>
<div class="refsect3">
<a name="gtk-grid-set-column-homogeneous.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>grid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>homogeneous</p></td>
<td class="parameter_description"><p><a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to make columns homogeneous</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-get-column-homogeneous"></a><h3>gtk_grid_get_column_homogeneous ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gtk_grid_get_column_homogeneous (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);</pre>
<p>Returns whether all columns of <em class="parameter"><code>grid</code></em>
have the same width.</p>
<div class="refsect3">
<a name="gtk-grid-get-column-homogeneous.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>grid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-grid-get-column-homogeneous.returns"></a><h4>Returns</h4>
<p> whether all columns of <em class="parameter"><code>grid</code></em>
have the same width.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-set-column-spacing"></a><h3>gtk_grid_set_column_spacing ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_grid_set_column_spacing (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> spacing</code></em>);</pre>
<p>Sets the amount of space between columns of <em class="parameter"><code>grid</code></em>
.</p>
<div class="refsect3">
<a name="gtk-grid-set-column-spacing.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>grid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>spacing</p></td>
<td class="parameter_description"><p>the amount of space to insert between columns</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-get-column-spacing"></a><h3>gtk_grid_get_column_spacing ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
gtk_grid_get_column_spacing (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);</pre>
<p>Returns the amount of space between the columns of <em class="parameter"><code>grid</code></em>
.</p>
<div class="refsect3">
<a name="gtk-grid-get-column-spacing.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>grid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-grid-get-column-spacing.returns"></a><h4>Returns</h4>
<p> the column spacing of <em class="parameter"><code>grid</code></em>
</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-get-baseline-row"></a><h3>gtk_grid_get_baseline_row ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
gtk_grid_get_baseline_row (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);</pre>
<p>Returns which row defines the global baseline of <em class="parameter"><code>grid</code></em>
.</p>
<div class="refsect3">
<a name="gtk-grid-get-baseline-row.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>grid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-grid-get-baseline-row.returns"></a><h4>Returns</h4>
<p> the row index defining the global baseline</p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-10.html#api-index-3.10">3.10</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-set-baseline-row"></a><h3>gtk_grid_set_baseline_row ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_grid_set_baseline_row (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> row</code></em>);</pre>
<p>Sets which row defines the global baseline for the entire grid.
Each row in the grid can have its own local baseline, but only
one of those is global, meaning it will be the baseline in the
parent of the <em class="parameter"><code>grid</code></em>
.</p>
<div class="refsect3">
<a name="gtk-grid-set-baseline-row.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>grid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>row</p></td>
<td class="parameter_description"><p>the row index</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-10.html#api-index-3.10">3.10</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-get-row-baseline-position"></a><h3>gtk_grid_get_row_baseline_position ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-Standard-Enumerations.html#GtkBaselinePosition" title="enum GtkBaselinePosition"><span class="returnvalue">GtkBaselinePosition</span></a>
gtk_grid_get_row_baseline_position (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> row</code></em>);</pre>
<p>Returns the baseline position of <em class="parameter"><code>row</code></em>
as set
by <a class="link" href="GtkGrid.html#gtk-grid-set-row-baseline-position" title="gtk_grid_set_row_baseline_position ()"><code class="function">gtk_grid_set_row_baseline_position()</code></a> or the default value
<a class="link" href="gtk3-Standard-Enumerations.html#GTK-BASELINE-POSITION-CENTER:CAPS"><code class="literal">GTK_BASELINE_POSITION_CENTER</code></a>.</p>
<div class="refsect3">
<a name="gtk-grid-get-row-baseline-position.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>grid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>row</p></td>
<td class="parameter_description"><p>a row index</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-grid-get-row-baseline-position.returns"></a><h4>Returns</h4>
<p> the baseline position of <em class="parameter"><code>row</code></em>
</p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-10.html#api-index-3.10">3.10</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-set-row-baseline-position"></a><h3>gtk_grid_set_row_baseline_position ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_grid_set_row_baseline_position (<em class="parameter"><code><a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> row</code></em>,
<em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkBaselinePosition" title="enum GtkBaselinePosition"><span class="type">GtkBaselinePosition</span></a> pos</code></em>);</pre>
<p>Sets how the baseline should be positioned on <em class="parameter"><code>row</code></em>
of the
grid, in case that row is assigned more space than is requested.</p>
<div class="refsect3">
<a name="gtk-grid-set-row-baseline-position.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>grid</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>row</p></td>
<td class="parameter_description"><p>a row index</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>pos</p></td>
<td class="parameter_description"><p>a <a class="link" href="gtk3-Standard-Enumerations.html#GtkBaselinePosition" title="enum GtkBaselinePosition"><span class="type">GtkBaselinePosition</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-10.html#api-index-3.10">3.10</a></p>
</div>
</div>
<div class="refsect1">
<a name="GtkGrid.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="GtkGrid-struct"></a><h3>struct GtkGrid</h3>
<pre class="programlisting">struct GtkGrid;</pre>
</div>
<hr>
<div class="refsect2">
<a name="GtkGridClass"></a><h3>struct GtkGridClass</h3>
<pre class="programlisting">struct GtkGridClass {
GtkContainerClass parent_class;
};
</pre>
<div class="refsect3">
<a name="GtkGridClass.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="struct_members_name">
<col class="struct_members_description">
<col width="200px" class="struct_members_annotations">
</colgroup>
<tbody></tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="GtkGrid.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GtkGrid--baseline-row"></a><h3>The <code class="literal">“baseline-row”</code> property</h3>
<pre class="programlisting"> “baseline-row” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
<p>The row to align the to the baseline when valign is GTK_ALIGN_BASELINE.</p>
<p>Flags: Read / Write</p>
<p>Allowed values: >= 0</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkGrid--column-homogeneous"></a><h3>The <code class="literal">“column-homogeneous”</code> property</h3>
<pre class="programlisting"> “column-homogeneous” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
<p>If TRUE, the columns are all the same width.</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkGrid--column-spacing"></a><h3>The <code class="literal">“column-spacing”</code> property</h3>
<pre class="programlisting"> “column-spacing” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
<p>The amount of space between two consecutive columns.</p>
<p>Flags: Read / Write</p>
<p>Allowed values: [0,32767]</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkGrid--row-homogeneous"></a><h3>The <code class="literal">“row-homogeneous”</code> property</h3>
<pre class="programlisting"> “row-homogeneous” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
<p>If TRUE, the rows are all the same height.</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkGrid--row-spacing"></a><h3>The <code class="literal">“row-spacing”</code> property</h3>
<pre class="programlisting"> “row-spacing” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
<p>The amount of space between two consecutive rows.</p>
<p>Flags: Read / Write</p>
<p>Allowed values: [0,32767]</p>
<p>Default value: 0</p>
</div>
</div>
<div class="refsect1">
<a name="GtkGrid.child-property-details"></a><h2>Child Property Details</h2>
<div class="refsect2">
<a name="GtkGrid--c-height"></a><h3>The <code class="literal">“height”</code> child property</h3>
<pre class="programlisting"> “height” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
<p>The number of rows that a child spans.</p>
<p>Flags: Read / Write</p>
<p>Allowed values: >= 1</p>
<p>Default value: 1</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkGrid--c-left-attach"></a><h3>The <code class="literal">“left-attach”</code> child property</h3>
<pre class="programlisting"> “left-attach” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
<p>The column number to attach the left side of the child to.</p>
<p>Flags: Read / Write</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkGrid--c-top-attach"></a><h3>The <code class="literal">“top-attach”</code> child property</h3>
<pre class="programlisting"> “top-attach” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
<p>The row number to attach the top side of a child widget to.</p>
<p>Flags: Read / Write</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkGrid--c-width"></a><h3>The <code class="literal">“width”</code> child property</h3>
<pre class="programlisting"> “width” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
<p>The number of columns that a child spans.</p>
<p>Flags: Read / Write</p>
<p>Allowed values: >= 1</p>
<p>Default value: 1</p>
</div>
</div>
<div class="refsect1">
<a name="GtkGrid.see-also"></a><h2>See Also</h2>
<p><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a>, <a class="link" href="GtkHBox.html" title="GtkHBox"><span class="type">GtkHBox</span></a>, <a class="link" href="GtkVBox.html" title="GtkVBox"><span class="type">GtkVBox</span></a></p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.25.1</div>
</body>
</html>
|