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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>GTK+ Foundation Classes</title>
<link href="gfc.css" rel="stylesheet" type="text/css">
<meta content="The GFC Development Team" name="author">
<meta content="Core Library Reference Manual" name="description">
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(243, 244, 248);"
alink="#000099" link="#000099" vlink="#990099">
<table style="text-align: left; width: 1227px; height: 117px;"
border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td
style="text-align: center; background-color: rgb(255, 255, 255); width: 220px; vertical-align: top;"><img
alt="GFC Logo" src="../images/gfc.png"
style="width: 207px; height: 92px;"></td>
<td
style="text-align: center; background-color: rgb(87, 107, 152); vertical-align: middle;"><img
alt="GFC Title Logo" src="../images/gfc-title.png"
style="width: 418px; height: 76px;"><br>
</td>
</tr>
<tr>
<td
style="text-align: center; background-color: rgb(65, 77, 104); vertical-align: middle;"><big><span
style="color: rgb(255, 255, 153); font-weight: bold;">Reference Manual</span></big><br>
</td>
<td
style="text-align: center; background-color: rgb(148, 164, 200); vertical-align: middle;"><small
style="font-family: helvetica,arial,sans-serif;"><a
href="../html/index.html">Main Page</a> | <a
href="../html/namespaces.html">Namespace List</a> | <a
href="classes.html">Alphabetical List</a> | <a
href="../html/annotated.html">Class List</a> | <a
href="../html/files.html">File List</a></small><br>
</td>
</tr>
</tbody>
</table>
<small> </small>
</body>
</html>
<!-- Generated by Doxygen 1.3.8 -->
<h1>GFC::Gdk::Display Class Reference</h1>A GdkDisplay C++ wrapper class.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="display_8hh-source.html">gfc/gdk/display.hh</a>></code>
<p>
<p>Inheritance diagram for GFC::Gdk::Display:
<p><center><img src="classGFC_1_1Gdk_1_1Display.png" usemap="#GFC::Gdk::Display_map" border="0" alt=""></center>
<map name="GFC::Gdk::Display_map">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Object.html" alt="GFC::G::Object" shape="rect" coords="0,112,134,136">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1TypeInstance.html" alt="GFC::G::TypeInstance" shape="rect" coords="0,56,134,80">
<area doxygen="gfccore.tag:" href="classGFC_1_1Trackable.html" alt="GFC::Trackable" shape="rect" coords="0,0,134,24">
</map>
<a href="classGFC_1_1Gdk_1_1Display-members.html">List of all members.</a><h2>Signal Prototypes</h2>
<ul>
<li>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">ClosedSignalType</a> <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z113_2">closed_signal</a>
<dl class="el"><dd class="mdescRight">Closed signal (see <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z117_0">sig_closed()</a>). <a href="#z113_2"></a><br></dl></ul>
<h2>Public Member Functions</h2>
<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
<ul>
<li><a class="anchor" name="z114_0" doxytag="GFC::Gdk::Display::~Display" ></a>
virtual <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z114_0">~Display</a> ()
<dl class="el"><dd class="mdescRight">Destructor. <br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Accessors</div></td></tr>
<ul>
<li><a class="anchor" name="z115_0" doxytag="GFC::Gdk::Display::gdk_display" ></a>
GdkDisplay * <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z115_0">gdk_display</a> () const
<dl class="el"><dd class="mdescRight">Get a pointer to the GdkDisplay structure. <br></dl><li><a class="anchor" name="z115_1" doxytag="GFC::Gdk::Display::operator GdkDisplay *" ></a>
<a class="el" href="classGFC_1_1Gdk_1_1Display.html#z115_1">operator GdkDisplay *</a> () const
<dl class="el"><dd class="mdescRight">Conversion operator; safely converts a <a class="el" href="classGFC_1_1Gdk_1_1Display.html">Display</a> to a GdkDisplay pointer. <br></dl><li><a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z115_2">get_name</a> () const
<dl class="el"><dd class="mdescRight">Gets the name of the display. <a href="#z115_2"></a><br></dl><li>int <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z115_3">get_n_screens</a> () const
<dl class="el"><dd class="mdescRight">Gets the number of screen managed by the display. <a href="#z115_3"></a><br></dl><li><a class="el" href="classGFC_1_1Gdk_1_1Screen.html">Screen</a> * <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z115_4">get_screen</a> (int screen_num) const
<dl class="el"><dd class="mdescRight">Returns a screen object for one of the screens of the display. <a href="#z115_4"></a><br></dl><li><a class="el" href="classGFC_1_1Gdk_1_1Screen.html">Screen</a> * <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z115_5">get_default_screen</a> () const
<dl class="el"><dd class="mdescRight">Get the default screen for the display. <a href="#z115_5"></a><br></dl><li>bool <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z115_6">pointer_is_grabbed</a> () const
<dl class="el"><dd class="mdescRight">Test if the pointer is grabbed. <a href="#z115_6"></a><br></dl><li>bool <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z115_7">list_devices</a> (std::vector< <a class="el" href="classGFC_1_1Gdk_1_1Device.html">Device</a> * > &devices) const
<dl class="el"><dd class="mdescRight">Returns the list of available input devices attached to the display. <a href="#z115_7"></a><br></dl><li><a class="el" href="classGFC_1_1Gdk_1_1Device.html">Device</a> * <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z115_8">get_core_pointer</a> () const
<dl class="el"><dd class="mdescRight">Returns the core pointer device for the given display. <a href="#z115_8"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z115_9">get_pointer</a> (<a class="el" href="classGFC_1_1Gdk_1_1Screen.html">Screen</a> **screen, int *x, int *y, <a class="el" href="namespaceGFC_1_1Gdk.html#a286">ModifierType</a> *mask=0) const
<dl class="el"><dd class="mdescRight">Gets the current location of the pointer and the current modifier mask for the display. <a href="#z115_9"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z115_10">get_pointer</a> (<a class="el" href="classGFC_1_1Gdk_1_1Screen.html">Screen</a> **screen, <a class="el" href="classGFC_1_1Gdk_1_1Point.html">Point</a> *point, <a class="el" href="namespaceGFC_1_1Gdk.html#a286">ModifierType</a> *mask=0) const
<dl class="el"><dd class="mdescRight">Gets the current location of the pointer and the current modifier mask for the display. <a href="#z115_10"></a><br></dl><li><a class="el" href="classGFC_1_1Gdk_1_1Point.html">Point</a> <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z115_11">get_pointer</a> (<a class="el" href="classGFC_1_1Gdk_1_1Screen.html">Screen</a> **screen=0, <a class="el" href="namespaceGFC_1_1Gdk.html#a286">ModifierType</a> *mask=0) const
<dl class="el"><dd class="mdescRight">Gets the current location of the pointer and the current modifier mask for the display. <a href="#z115_11"></a><br></dl><li><a class="el" href="classGFC_1_1Gdk_1_1Window.html">Window</a> * <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z115_12">get_window_at_pointer</a> (int *win_x, int *win_y) const
<dl class="el"><dd class="mdescRight">Obtains the window underneath the mouse pointer, returning the location of that window in win_x, win_y for the screen. <a href="#z115_12"></a><br></dl><li><a class="el" href="classGFC_1_1Gdk_1_1Window.html">Window</a> * <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z115_13">get_window_at_pointer</a> (<a class="el" href="classGFC_1_1Gdk_1_1Point.html">Point</a> *win_origin) const
<dl class="el"><dd class="mdescRight">Obtains the window underneath the mouse pointer, returning the location of that window in win_origin for the screen. <a href="#z115_13"></a><br></dl><li>bool <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z115_14">supports_cursor_alpha</a> () const
<dl class="el"><dd class="mdescRight">Determines if cursors can use an 8bit alpha channel on display, otherwise, cursors are restricted to bilevel alpha (i.e. <a href="#z115_14"></a><br></dl><li>bool <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z115_15">supports_cursor_color</a> () const
<dl class="el"><dd class="mdescRight">Determines if multicolored cursors are supported on display. <a href="#z115_15"></a><br></dl><li>unsigned int <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z115_16">get_default_cursor_size</a> () const
<dl class="el"><dd class="mdescRight">Gets the default size to use for cursors on the display. <a href="#z115_16"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z115_17">get_maximal_cursor_size</a> (unsigned int *width, unsigned int *height) const
<dl class="el"><dd class="mdescRight">Gets the maximal size to use for cursors on the display. <a href="#z115_17"></a><br></dl><li><a class="el" href="classGFC_1_1Gdk_1_1Window.html">Window</a> * <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z115_18">get_default_group</a> () const
<dl class="el"><dd class="mdescRight">Gets the default group leader window for all toplevel windows on display. <a href="#z115_18"></a><br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Methods</div></td></tr>
<ul>
<li>void <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z116_0">pointer_ungrab</a> (unsigned int time)
<dl class="el"><dd class="mdescRight">Release any pointer grab. <a href="#z116_0"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z116_1">keyboard_ungrab</a> (unsigned int time)
<dl class="el"><dd class="mdescRight">Release any keyboard grab. <a href="#z116_1"></a><br></dl><li><a class="anchor" name="z116_2" doxytag="GFC::Gdk::Display::beep" ></a>
void <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z116_2">beep</a> ()
<dl class="el"><dd class="mdescRight">Emits a short beep on the display. <br></dl><li>void <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z116_3">sync</a> ()
<dl class="el"><dd class="mdescRight">Flushes any requests queued for the windowing system and waits until all requests have been handled. <a href="#z116_3"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z116_4">flush</a> ()
<dl class="el"><dd class="mdescRight">Flushes any requests queued for the windowing system. <a href="#z116_4"></a><br></dl><li><a class="anchor" name="z116_5" doxytag="GFC::Gdk::Display::close" ></a>
void <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z116_5">close</a> ()
<dl class="el"><dd class="mdescRight">Closes the connection windowing system for the display, and cleans up associated resources. <br></dl><li><a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a>< <a class="el" href="classGFC_1_1Gdk_1_1Event.html">Event</a> > <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z116_6">get_event</a> ()
<dl class="el"><dd class="mdescRight">Gets the next GdkEvent to be processed for display, fetching events from the windowing system if necessary. <a href="#z116_6"></a><br></dl><li><a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a>< <a class="el" href="classGFC_1_1Gdk_1_1Event.html">Event</a> > <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z116_7">peek_event</a> ()
<dl class="el"><dd class="mdescRight">Gets a copy of the first GdkEvent in the display's event queue, without removing the event from the queue. <a href="#z116_7"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z116_8">put_event</a> (const <a class="el" href="classGFC_1_1Gdk_1_1Event.html">Gdk::Event</a> &event)
<dl class="el"><dd class="mdescRight">Appends a copy of the given event onto the front of the event queue for display. <a href="#z116_8"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z116_9">add_client_message_filter</a> (<a class="el" href="namespaceGFC_1_1Gdk.html#a134">Atom</a> message_type, GdkFilterFunc func, void *data)
<dl class="el"><dd class="mdescRight">Adds a filter to be called when X ClientMessage events are received. <a href="#z116_9"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z116_10">set_double_click_time</a> (unsigned int msec)
<dl class="el"><dd class="mdescRight">Sets the double click time (two clicks within this time interval count as a double click and result in a GDK_2BUTTON_PRESS event). <a href="#z116_10"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z116_11">set_double_click_distance</a> (unsigned int distance)
<dl class="el"><dd class="mdescRight">Sets the double click distance (two clicks within this distance count as a double click and result in a GDK_2BUTTON_PRESS event). <a href="#z116_11"></a><br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Signal Proxies</div></td></tr>
<ul>
<li><a class="anchor" name="z117_0" doxytag="GFC::Gdk::Display::sig_closed" ></a>
const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">ClosedSignalProxy</a> <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z117_0">sig_closed</a> ()
<dl class="el"><dd class="mdescRight">Connect to the closed_signal; emitted when the display is closed. <br></dl></ul>
<h2>Static Public Member Functions</h2>
<ul>
<li><a class="el" href="classGFC_1_1Gdk_1_1Display.html">Display</a> * <a class="el" href="classGFC_1_1Gdk_1_1Display.html#e0">get_default</a> ()
<dl class="el"><dd class="mdescRight">Gets the default display. <a href="#e0"></a><br></dl><li><a class="el" href="classGFC_1_1Gdk_1_1Display.html">Display</a> * <a class="el" href="classGFC_1_1Gdk_1_1Display.html#e2">open</a> (const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &display_name)
<dl class="el"><dd class="mdescRight">Opens a display. <a href="#e2"></a><br></dl></ul>
<h2>Protected Member Functions</h2>
<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
<ul>
<li><a class="el" href="classGFC_1_1Gdk_1_1Display.html#z112_0">Display</a> (GdkDisplay *display, bool <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Trackable.html#z143_1">owns_reference</a>=true)
<dl class="el"><dd class="mdescRight">Construct a new <a class="el" href="classGFC_1_1Gdk_1_1Display.html">Display</a> from an existing GdkDisplay. <a href="#z112_0"></a><br></dl></ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A GdkDisplay C++ wrapper class.
<p>
The purpose of <a class="el" href="classGFC_1_1Gdk_1_1Display.html">Display</a> objects are two fold:<ul>
<li>To grab/ungrab the keyboard focus and mouse pointer.</li><li>To manage and provide information about the Screen(s) available for this <a class="el" href="classGFC_1_1Gdk_1_1Display.html">Display</a>.</li></ul>
<p>
<a class="el" href="classGFC_1_1Gdk_1_1Display.html">Display</a> objects are the GDK representation of the X <a class="el" href="classGFC_1_1Gdk_1_1Display.html">Display</a> which can be described as a workstation consisting of a keyboard, a pointing device (such as a mouse) and one or more screens. It is used to open and keep track of various <a class="el" href="classGFC_1_1Gdk_1_1Screen.html">Screen</a> objects currently instantiated by the application. It is also used to grab and release the keyboard and mouse pointer.
<p>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="z112_0" doxytag="GFC::Gdk::Display::Display" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> GFC::Gdk::Display::Display </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">GdkDisplay * </td>
<td class="mdname" nowrap> <em>display</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>bool </td>
<td class="mdname" nowrap> <em>owns_reference</em> = <code>true</code></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [explicit, protected]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Construct a new <a class="el" href="classGFC_1_1Gdk_1_1Display.html">Display</a> from an existing GdkDisplay.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>display</em> </td><td>A pointer to a GdkDisplay. </td></tr>
<tr><td></td><td valign=top><em>owns_reference</em> </td><td>Set false if the initial reference count is floating, set true if it's not.</td></tr>
</table>
</dl>
<br>
The <em>display</em> can be a newly created GdkDisplay or an existing GdkDisplay. (see <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Object.html#z68_0">G::Object::Object</a>). </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="z116_9" doxytag="GFC::Gdk::Display::add_client_message_filter" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gdk::Display::add_client_message_filter </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="namespaceGFC_1_1Gdk.html#a134">Atom</a> </td>
<td class="mdname" nowrap> <em>message_type</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>GdkFilterFunc </td>
<td class="mdname" nowrap> <em>func</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>void * </td>
<td class="mdname" nowrap> <em>data</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Adds a filter to be called when X ClientMessage events are received.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>message_type</em> </td><td>The type of ClientMessage events to receive; This will be checked against the message_type field of the XClientMessage event struct. </td></tr>
<tr><td></td><td valign=top><em>func</em> </td><td>The function to call to process the event. </td></tr>
<tr><td></td><td valign=top><em>data</em> </td><td>User data to pass to <em>func</em>. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z116_4" doxytag="GFC::Gdk::Display::flush" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gdk::Display::flush </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Flushes any requests queued for the windowing system.
<p>
This happens automatically when the main loop blocks waiting for new events, but if your application is drawing without returning control to the main loop, you may need to call this function explicitely. A common case where this function needs to be called is when an application is executing drawing commands from a thread other than the thread where the main loop is running.<p>
This method is most useful for X11. On windowing systems where requests are handled synchronously, this method will do nothing. </td>
</tr>
</table>
<a class="anchor" name="z115_8" doxytag="GFC::Gdk::Display::get_core_pointer" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="classGFC_1_1Gdk_1_1Device.html">Device</a>* GFC::Gdk::Display::get_core_pointer </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Returns the core pointer device for the given display.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The core pointer device; this is owned by the display and must not be unreferenced. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="e0" doxytag="GFC::Gdk::Display::get_default" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="classGFC_1_1Gdk_1_1Display.html">Display</a>* GFC::Gdk::Display::get_default </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Gets the default display.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The default <a class="el" href="classGFC_1_1Gdk_1_1Display.html">Display</a>, or null if there is no default display. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z115_16" doxytag="GFC::Gdk::Display::get_default_cursor_size" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> unsigned int GFC::Gdk::Display::get_default_cursor_size </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Gets the default size to use for cursors on the display.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The default cursor size. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z115_18" doxytag="GFC::Gdk::Display::get_default_group" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="classGFC_1_1Gdk_1_1Window.html">Window</a>* GFC::Gdk::Display::get_default_group </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Gets the default group leader window for all toplevel windows on display.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The default group leader window for the display.</dd></dl>
<br>
This window is implicitly created by GDK (see <a class="el" href="classGFC_1_1Gdk_1_1Window.html#z234_47">Gdk::Window::set_group()</a>). </td>
</tr>
</table>
<a class="anchor" name="z115_5" doxytag="GFC::Gdk::Display::get_default_screen" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="classGFC_1_1Gdk_1_1Screen.html">Screen</a>* GFC::Gdk::Display::get_default_screen </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Get the default screen for the display.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The default <a class="el" href="classGFC_1_1Gdk_1_1Screen.html">Screen</a> object for the display. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z116_6" doxytag="GFC::Gdk::Display::get_event" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a><<a class="el" href="classGFC_1_1Gdk_1_1Event.html">Event</a>> GFC::Gdk::Display::get_event </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Gets the next GdkEvent to be processed for display, fetching events from the windowing system if necessary.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The next GdkEvent to be processed, or null if no events are pending. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z115_17" doxytag="GFC::Gdk::Display::get_maximal_cursor_size" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gdk::Display::get_maximal_cursor_size </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">unsigned int * </td>
<td class="mdname" nowrap> <em>width</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>unsigned int * </td>
<td class="mdname" nowrap> <em>height</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Gets the maximal size to use for cursors on the display.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>width</em> </td><td>The return location for the maximal cursor width. </td></tr>
<tr><td></td><td valign=top><em>height</em> </td><td>The return location for the maximal cursor height. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z115_3" doxytag="GFC::Gdk::Display::get_n_screens" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> int GFC::Gdk::Display::get_n_screens </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Gets the number of screen managed by the display.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The number of screens. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z115_2" doxytag="GFC::Gdk::Display::get_name" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> GFC::Gdk::Display::get_name </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Gets the name of the display.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>A <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> representing the display name. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z115_11" doxytag="GFC::Gdk::Display::get_pointer" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="classGFC_1_1Gdk_1_1Point.html">Point</a> GFC::Gdk::Display::get_pointer </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gdk_1_1Screen.html">Screen</a> ** </td>
<td class="mdname" nowrap> <em>screen</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap><a class="el" href="namespaceGFC_1_1Gdk.html#a286">ModifierType</a> * </td>
<td class="mdname" nowrap> <em>mask</em> = <code>0</code></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Gets the current location of the pointer and the current modifier mask for the display.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>screen</em> </td><td>The location to store the screen that the cursor is on, or null. </td></tr>
<tr><td></td><td valign=top><em>mask</em> </td><td>The location to store current modifier mask, or null. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGFC_1_1Gdk_1_1Point.html">Point</a> storing root window X and Y coordinates of the pointer. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z115_10" doxytag="GFC::Gdk::Display::get_pointer" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gdk::Display::get_pointer </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gdk_1_1Screen.html">Screen</a> ** </td>
<td class="mdname" nowrap> <em>screen</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap><a class="el" href="classGFC_1_1Gdk_1_1Point.html">Point</a> * </td>
<td class="mdname" nowrap> <em>point</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap><a class="el" href="namespaceGFC_1_1Gdk.html#a286">ModifierType</a> * </td>
<td class="mdname" nowrap> <em>mask</em> = <code>0</code></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Gets the current location of the pointer and the current modifier mask for the display.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>screen</em> </td><td>The location to store the screen that the cursor is on, or null. </td></tr>
<tr><td></td><td valign=top><em>point</em> </td><td>The location to store root window X and Y coordinates of the pointer, or null. </td></tr>
<tr><td></td><td valign=top><em>mask</em> </td><td>The location to store current modifier mask, or null. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z115_9" doxytag="GFC::Gdk::Display::get_pointer" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gdk::Display::get_pointer </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gdk_1_1Screen.html">Screen</a> ** </td>
<td class="mdname" nowrap> <em>screen</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>int * </td>
<td class="mdname" nowrap> <em>x</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>int * </td>
<td class="mdname" nowrap> <em>y</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap><a class="el" href="namespaceGFC_1_1Gdk.html#a286">ModifierType</a> * </td>
<td class="mdname" nowrap> <em>mask</em> = <code>0</code></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Gets the current location of the pointer and the current modifier mask for the display.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>screen</em> </td><td>The location to store the screen that the cursor is on, or null. </td></tr>
<tr><td></td><td valign=top><em>x</em> </td><td>The location to store root window X coordinate of pointer, or null. </td></tr>
<tr><td></td><td valign=top><em>y</em> </td><td>The location to store root window Y coordinate of pointer, or null. </td></tr>
<tr><td></td><td valign=top><em>mask</em> </td><td>The location to store current modifier mask, or null. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z115_4" doxytag="GFC::Gdk::Display::get_screen" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="classGFC_1_1Gdk_1_1Screen.html">Screen</a>* GFC::Gdk::Display::get_screen </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">int </td>
<td class="mdname1" valign="top" nowrap> <em>screen_num</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Returns a screen object for one of the screens of the display.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>screen_num</em> </td><td>The screen number. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGFC_1_1Gdk_1_1Screen.html">Screen</a> object. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z115_13" doxytag="GFC::Gdk::Display::get_window_at_pointer" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="classGFC_1_1Gdk_1_1Window.html">Window</a>* GFC::Gdk::Display::get_window_at_pointer </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gdk_1_1Point.html">Point</a> * </td>
<td class="mdname1" valign="top" nowrap> <em>win_origin</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Obtains the window underneath the mouse pointer, returning the location of that window in win_origin for the screen.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>win_origin</em> </td><td>The return location for the X and Y origin of the window under the pointer. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The window under the mouse pointer, or null.</dd></dl>
<br>
Returns null if the window under the mouse pointer is not known to GDK (for example, belongs to another application). </td>
</tr>
</table>
<a class="anchor" name="z115_12" doxytag="GFC::Gdk::Display::get_window_at_pointer" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="classGFC_1_1Gdk_1_1Window.html">Window</a>* GFC::Gdk::Display::get_window_at_pointer </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">int * </td>
<td class="mdname" nowrap> <em>win_x</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>int * </td>
<td class="mdname" nowrap> <em>win_y</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Obtains the window underneath the mouse pointer, returning the location of that window in win_x, win_y for the screen.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>win_x</em> </td><td>The return location for the X origin of the window under the pointer. </td></tr>
<tr><td></td><td valign=top><em>win_y</em> </td><td>The return location for the Y origin of the window under the pointer. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The window under the mouse pointer, or null.</dd></dl>
<br>
Returns null if the window under the mouse pointer is not known to GDK (for example, belongs to another application). </td>
</tr>
</table>
<a class="anchor" name="z116_1" doxytag="GFC::Gdk::Display::keyboard_ungrab" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gdk::Display::keyboard_ungrab </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">unsigned int </td>
<td class="mdname1" valign="top" nowrap> <em>time</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Release any keyboard grab.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>time</em> </td><td>A timestap (e.g. GDK_CURRENT_TIME). </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z115_7" doxytag="GFC::Gdk::Display::list_devices" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool GFC::Gdk::Display::list_devices </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">std::vector< <a class="el" href="classGFC_1_1Gdk_1_1Device.html">Device</a> * > & </td>
<td class="mdname1" valign="top" nowrap> <em>devices</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Returns the list of available input devices attached to the display.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>devices</em> </td><td>A reference to a vector of Device* to hold the list of devices. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><em>true</em> if the vector is not empty.</dd></dl>
<br>
The devices in this list are statically allocated and will be freed by GTK+. </td>
</tr>
</table>
<a class="anchor" name="e2" doxytag="GFC::Gdk::Display::open" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="classGFC_1_1Gdk_1_1Display.html">Display</a>* GFC::Gdk::Display::open </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>display_name</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Opens a display.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>display_name</em> </td><td>The name of the display to open. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGFC_1_1Gdk_1_1Display.html">Display</a>, or null if the display could not be opened. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z116_7" doxytag="GFC::Gdk::Display::peek_event" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Pointer.html">Pointer</a><<a class="el" href="classGFC_1_1Gdk_1_1Event.html">Event</a>> GFC::Gdk::Display::peek_event </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Gets a copy of the first GdkEvent in the display's event queue, without removing the event from the queue.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>A copy of the first GdkEvent on the event queue, or null if no events are in the queue.</dd></dl>
<br>
This method will not get more events from the windowing system. It only checks the events that have already been moved to the GDK event queue. </td>
</tr>
</table>
<a class="anchor" name="z115_6" doxytag="GFC::Gdk::Display::pointer_is_grabbed" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool GFC::Gdk::Display::pointer_is_grabbed </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Test if the pointer is grabbed.
<p>
<dl compact><dt><b>Returns:</b></dt><dd><em>true</em> if an active X pointer grab is in effect </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z116_0" doxytag="GFC::Gdk::Display::pointer_ungrab" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gdk::Display::pointer_ungrab </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">unsigned int </td>
<td class="mdname1" valign="top" nowrap> <em>time</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Release any pointer grab.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>time</em> </td><td>A timestap (e.g. GDK_CURRENT_TIME). </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z116_8" doxytag="GFC::Gdk::Display::put_event" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gdk::Display::put_event </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Gdk_1_1Event.html">Gdk::Event</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>event</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Appends a copy of the given event onto the front of the event queue for display.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>event</em> </td><td>A GdkEvent. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z116_11" doxytag="GFC::Gdk::Display::set_double_click_distance" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gdk::Display::set_double_click_distance </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">unsigned int </td>
<td class="mdname1" valign="top" nowrap> <em>distance</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Sets the double click distance (two clicks within this distance count as a double click and result in a GDK_2BUTTON_PRESS event).
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>distance</em> </td><td>The distance in pixels.</td></tr>
</table>
</dl>
<br>
Applications should not set this, it is a global user-configured setting. </td>
</tr>
</table>
<a class="anchor" name="z116_10" doxytag="GFC::Gdk::Display::set_double_click_time" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gdk::Display::set_double_click_time </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">unsigned int </td>
<td class="mdname1" valign="top" nowrap> <em>msec</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Sets the double click time (two clicks within this time interval count as a double click and result in a GDK_2BUTTON_PRESS event).
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>msec</em> </td><td>The double click time in milliseconds (thousandths of a second).</td></tr>
</table>
</dl>
<br>
Applications should NOT set this, it is a global user-configured setting. </td>
</tr>
</table>
<a class="anchor" name="z115_14" doxytag="GFC::Gdk::Display::supports_cursor_alpha" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool GFC::Gdk::Display::supports_cursor_alpha </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Determines if cursors can use an 8bit alpha channel on display, otherwise, cursors are restricted to bilevel alpha (i.e.
<p>
a mask). <dl compact><dt><b>Returns:</b></dt><dd><em>true</em> if cursors can have alpha channels. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z115_15" doxytag="GFC::Gdk::Display::supports_cursor_color" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool GFC::Gdk::Display::supports_cursor_color </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Determines if multicolored cursors are supported on display.
<p>
<dl compact><dt><b>Returns:</b></dt><dd><em>true</em> if cursors can have multiple colors.</dd></dl>
<br>
If multicolored cursors not supported cursors have only a forground and a background color. </td>
</tr>
</table>
<a class="anchor" name="z116_3" doxytag="GFC::Gdk::Display::sync" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void GFC::Gdk::Display::sync </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Flushes any requests queued for the windowing system and waits until all requests have been handled.
<p>
This is often used for making sure that the display is synchronized with the current state of the program. Calling <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z116_3">sync()</a> before gdk_error_trap_pop() makes sure that any errors generated from earlier requests are handled before the error trap is removed. This is most useful for X11. On windowing systems where requests are handled synchronously, this function will do nothing. </td>
</tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="z113_2" doxytag="GFC::Gdk::Display::closed_signal" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">ClosedSignalType</a> <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z113_2">GFC::Gdk::Display::closed_signal</a><code> [static, protected]</code> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Closed signal (see <a class="el" href="classGFC_1_1Gdk_1_1Display.html#z117_0">sig_closed()</a>).
<p>
Calls a slot with the signature: <div class="fragment"><pre> <span class="keywordtype">void</span> function(<span class="keywordtype">bool</span> is_error);
<span class="comment">// is_error: Is true if the display was closed due to an error.</span>
</pre></div> </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="display_8hh-source.html">display.hh</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Aug 24 00:34:35 2004 for GFC-UI by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>
|