1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483
|
<HTML>
<HEAD>
<TITLE>B - Function Reference</TITLE>
</HEAD>
<BODY>
<H1 ALIGN="RIGHT"><A NAME="functions">B - Function Reference</A></H1>
<P>This appendix describes all of the <tt>fl_</tt> functions. For a
description of the FLTK classes, see <A href="widgets.html">Appendix
A</A>.
<H2>Function List by Name</H2>
<TABLE width=100%>
<TR>
<TD width=33%>
<UL>
<LI><A HREF="osissues.html#WIN32.gdi"><TT>fl_RGB</TT></A> (WIN32)</LI>
<LI><A HREF="common.html#add_symbol"><TT>fl_add_symbol</TT></A></LI>
<LI><A HREF="#fl_alert"><TT>fl_alert</TT></A></LI>
<LI><A HREF="#fl_alphasort"><TT>fl_alphasort</TT></A></LI>
<LI><A HREF="drawing.html#fl_arc"><TT>fl_arc</TT></A></LI>
<LI><A HREF="#fl_ask"><TT>fl_ask</TT></A></LI>
<LI><A HREF="#fl_beep"><TT>fl_beep</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_complex_polygon"><TT>fl_begin_complex_polygon</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_line"><TT>fl_begin_line</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_loop"><TT>fl_begin_loop</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_offscreen"><TT>fl_begin_offscreen</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_points"><TT>fl_begin_points</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_polygon"><TT>fl_begin_polygon</TT></A></LI>
<LI><A HREF="common.html#fl_box"><TT>fl_box</TT></A></LI>
<LI><A HREF="osissues.html#WIN32.gdi"><TT>fl_brush</TT></A> (WIN32)</LI>
<LI><A HREF="drawing.html#fl_can_do_alpha_blending"><TT>fl_can_do_alpha_blending</TT></A></LI>
<LI><A HREF="#fl_casealphasort"><TT>fl_casealphasort</TT></A></LI>
<LI><A HREF="#fl_casenumericsort"><TT>fl_casenumericsort</TT></A></LI>
<LI><A HREF="#fl_choice2"><TT>fl_choice</TT></A></LI>
<LI><A HREF="drawing.html#fl_circle"><TT>fl_circle</TT></A></LI>
<LI><A HREF="drawing.html#fl_clip_box"><TT>fl_clip_box</TT></A></LI>
<LI><A HREF="drawing.html#fl_clip_region"><TT>fl_clip_region</TT></A></LI>
<LI><A HREF="osissues.html#fl_close_display"><TT>fl_close_display</TT></A></LI>
<LI><A HREF="drawing.html#fl_color"><TT>fl_color</TT></A></LI>
<LI><A HREF="#fl_color_average"><TT>fl_color_average</TT></A></LI>
<LI><A HREF="#fl_color_chooser_func"><TT>fl_color_chooser</TT></A></LI>
<LI><A HREF="#fl_color_cube"><TT>fl_color_cube</TT></A></LI>
<LI><A HREF="#fl_contrast"><TT>fl_contrast</TT></A></LI>
<LI><A HREF="drawing.html#fl_copy_offscreen"><TT>fl_copy_offscreen</TT></A></LI>
<LI><A HREF="drawing.html#fl_create_offscreen"><TT>fl_create_offscreen</TT></A></LI>
<LI><A HREF="#fl_cursor"><TT>fl_cursor</TT></A></LI>
<LI><A HREF="drawing.html#fl_curve"><TT>fl_curve</TT></A></LI>
<LI><A HREF="#fl_darker"><TT>fl_darker</TT></A></LI>
<LI><A HREF="drawing.html#fl_delete_offscreen"><TT>fl_delete_offscreen</TT></A></LI>
<LI><A HREF="drawing.html#fl_descent"><TT>fl_descent</TT></A></LI>
<LI><A HREF="#fl_dir_chooser"><TT>fl_dir_chooser</TT></A></LI>
<LI><A HREF="common.html#fl_down"><TT>fl_down</TT></A></LI>
<LI><A HREF="drawing.html#fl_draw"><TT>fl_draw</TT></A></LI>
<LI><A HREF="drawing.html#fl_draw_box"><TT>fl_draw_box</TT></A></LI>
<LI><A HREF="drawing.html#fl_draw_image"><TT>fl_draw_image</TT></A></LI>
<LI><A HREF="drawing.html#fl_draw_image"><TT>fl_draw_image_mono</TT></A></LI>
<LI><A HREF="drawing.html#fl_draw_pixmap"><TT>fl_draw_pixmap</TT></A></LI>
<LI><A HREF="common.html#fl_draw_symbol"><TT>fl_draw_symbol</TT></A></LI>
</UL>
</TD>
<TD width=33%>
<UL>
<LI><A HREF="drawing.html#fl_begin_complex_polygon"><TT>fl_end_complex_polygon</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_line"><TT>fl_end_line</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_loop"><TT>fl_end_loop</TT></A></LI>
<LI><A HREF="drawing.html#fl_end_offscreen"><TT>fl_end_offscreen</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_points"><TT>fl_end_points</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_polygon"><TT>fl_end_polygon</TT></A></LI>
<LI><A HREF="#fl_file_chooser2"><TT>fl_file_chooser</TT></A></LI>
<LI><A HREF="#fl_file_chooser_callback"><TT>fl_file_chooser_callback</TT></A></LI>
<LI><A HREF="#fl_file_chooser_ok_label"><TT>fl_file_chooser_ok_label</TT></A></LI>
<LI><A HREF="#fl_filename_absolute"><TT>fl_filename_absolute</TT></A></LI>
<LI><A HREF="#fl_filename_expand"><TT>fl_filename_expand</TT></A></LI>
<LI><A HREF="#fl_filename_ext"><TT>fl_filename_ext</TT></A></LI>
<LI><A HREF="#fl_filename_isdir"><TT>fl_filename_isdir</TT></A></LI>
<LI><A HREF="#fl_filename_list"><TT>fl_filename_list</TT></A></LI>
<LI><A HREF="#fl_filename_match"><TT>fl_filename_match</TT></A></LI>
<LI><A HREF="#fl_filename_name"><TT>fl_filename_name</TT></A></LI>
<LI><A HREF="#fl_filename_relative"><TT>fl_filename_relative</TT></A></LI>
<LI><A HREF="#fl_filename_setext"><TT>fl_filename_setext</TT></A></LI>
<LI><A HREF="osissues.html#fl_find"><TT>fl_find</TT></A></LI>
<LI><A HREF="drawing.html#fl_font"><TT>fl_font</TT></A></LI>
<LI><A HREF="common.html#fl_frame"><TT>fl_frame</TT></A></LI>
<LI><A HREF="drawing.html#fl_frame"><TT>fl_frame</TT></A></LI>
<LI><A HREF="drawing.html#fl_frame2"><TT>fl_frame2</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_complex_polygon"><TT>fl_gap</TT></A></LI>
<LI><A HREF="#fl_gray_ramp"><TT>fl_gray_ramp</TT></A></LI>
<LI><A HREF="osissues.html#fl_handle"><TT>fl_handle</TT></A> (X11)</LI>
<LI><A HREF="drawing.html#fl_height"><TT>fl_height</TT></A></LI>
<LI><A HREF="#fl_inactive"><TT>fl_inactive</TT></A></LI>
<LI><A HREF="#fl_input2"><TT>fl_input</TT></A></LI>
<LI><A HREF="drawing.html#character_encoding"><TT>fl_latin1_to_local</TT></A></LI>
<LI><A HREF="#fl_lighter"><TT>fl_lighter</TT></A></LI>
<LI><A HREF="drawing.html#fl_line"><TT>fl_line</TT></A></LI>
<LI><A HREF="drawing.html#fl_line_style"><TT>fl_line_style</TT></A></LI>
<LI><A HREF="drawing.html#character_encoding"><TT>fl_local_to_latin1</TT></A></LI>
<LI><A HREF="drawing.html#character_encoding"><TT>fl_local_to_mac_roman</TT></A></LI>
<LI><A HREF="drawing.html#fl_loop"><TT>fl_loop</TT></A></LI>
<LI><A HREF="drawing.html#character_encoding"><TT>fl_mac_roman_to_local</TT></A></LI>
<LI><A HREF="drawing.html#fl_measure"><TT>fl_measure</TT></A></LI>
<LI><A HREF="drawing.html#fl_measure_pixmap"><TT>fl_measure_pixmap</TT></A></LI>
<LI><A HREF="#fl_message"><TT>fl_message</TT></A></LI>
<LI><A HREF="#fl_message_font"><TT>fl_message_font</TT></A></LI>
<LI><A HREF="#fl_message_icon"><TT>fl_message_icon</TT></A></LI>
</UL>
</TD>
<TD width=30%>
<UL>
<LI><A HREF="drawing.html#fl_scale"><TT>fl_mult_matrix</TT></A></LI>
<LI><A HREF="drawing.html#fl_not_clipped"><TT>fl_not_clipped</TT></A></LI>
<LI><A HREF="#fl_numericsort"><TT>fl_numericsort</TT></A></LI>
<LI><A HREF="osissues.html#fl_open_callback"><TT>fl_open_callback</TT></A></LI>
<LI><A HREF="osissues.html#fl_open_display"><TT>fl_open_display</TT></A></LI>
<LI><A HREF="#fl_open_uri"><TT>fl_open_uri</TT></A></LI>
<LI><A HREF="drawing.html#overlay"><TT>fl_overlay_clear</TT></A></LI>
<LI><A HREF="drawing.html#overlay"><TT>fl_overlay_rect</TT></A></LI>
<LI><A HREF="osissues.html#fl_parse_color"><TT>fl_parse_color</TT></A></LI>
<LI><A HREF="#fl_password"><TT>fl_password</TT></A></LI>
<LI><A HREF="osissues.html#WIN32.gdi"><TT>fl_pen</TT></A> (WIN32)</LI>
<LI><A HREF="drawing.html#fl_pie"><TT>fl_pie</TT></A></LI>
<LI><A HREF="drawing.html#fl_point"><TT>fl_point</TT></A></LI>
<LI><A HREF="drawing.html#fl_polygon"><TT>fl_polygon</TT></A></LI>
<LI><A HREF="drawing.html#fl_pop_clip"><TT>fl_pop_clip</TT></A></LI>
<LI><A HREF="drawing.html#fl_push_matrix"><TT>fl_pop_matrix</TT></A></LI>
<LI><A HREF="drawing.html#fl_push_clip"><TT>fl_push_clip</TT></A></LI>
<LI><A HREF="drawing.html#fl_push_matrix"><TT>fl_push_matrix</TT></A></LI>
<LI><A HREF="drawing.html#fl_push_no_clip"><TT>fl_push_no_clip</TT></A></LI>
<LI><A HREF="drawing.html#fl_read_image"><TT>fl_read_image</TT></A></LI>
<LI><A HREF="drawing.html#fl_rect"><TT>fl_rect</TT></A></LI>
<LI><A HREF="drawing.html#fl_rectf"><TT>fl_rectf</TT></A></LI>
<LI><A HREF="#fl_register_images"><TT>fl_register_images</TT></A></LI>
<LI><A HREF="#fl_rgb_color"><TT>fl_rgb_color</TT></A></LI>
<LI><A HREF="drawing.html#fl_scale"><TT>fl_rotate</TT></A></LI>
<LI><A HREF="drawing.html#fl_scale"><TT>fl_scale</TT></A></LI>
<LI><A HREF="drawing.html#fl_scroll"><TT>fl_scroll</TT></A></LI>
<LI><A HREF="drawing.html#fl_shortcut_label"><TT>fl_shortcut_label</TT></A></LI>
<LI><A HREF="#fl_show_colormap"><TT>fl_show_colormap</TT></A></LI>
<LI><A HREF="drawing.html#fl_size"><TT>fl_size</TT></A></LI>
<LI><A HREF="drawing.html#fl_transform"><TT>fl_transform_dx</TT></A></LI>
<LI><A HREF="drawing.html#fl_transform"><TT>fl_transform_dy</TT></A></LI>
<LI><A HREF="drawing.html#fl_transform"><TT>fl_transform_x</TT></A></LI>
<LI><A HREF="drawing.html#fl_transform"><TT>fl_transform_y</TT></A></LI>
<LI><A HREF="drawing.html#fl_transform"><TT>fl_transformed_vertex</TT></A></LI>
<LI><A HREF="drawing.html#fl_scale"><TT>fl_translate</TT></A></LI>
<LI><A HREF="drawing.html#fl_vertex"><TT>fl_vertex</TT></A></LI>
<LI><A HREF="drawing.html#fl_width"><TT>fl_width</TT></A></LI>
<LI><A HREF="osissues.html#fl_xid"><TT>fl_xid</TT></A></LI>
<LI><A HREF="osissues.html#fl_xpixel"><TT>fl_xpixel</TT></A></LI>
<LI><A HREF="drawing.html#fl_xyline"><TT>fl_xyline</TT></A></LI>
<LI><A HREF="drawing.html#fl_yxline"><TT>fl_yxline</TT></A></LI>
<!-- <LI><A HREF=""><TT>fl_brush_action</TT></A> (WIN32)</LI> -->
<!-- <LI><A HREF=""><TT>fl_create_alphamask</TT></A></LI> -->
<!-- <LI><A HREF=""><TT>fl_create_bitmask</TT></A></LI> -->
<!-- <LI><A HREF=""><TT>fl_delete_bitmask</TT></A></LI> -->
<!-- <LI><A HREF=""><TT>fl_makeDC</TT></A> (WIN32)</LI> -->
<!-- <LI><A HREF=""><TT>fl_old_shortcut</TT></A></LI> -->
<!-- <LI><A HREF=""><TT>fl_release_dc</TT></A></LI> -->
<!-- <LI><A HREF=""><TT>fl_save_dc</TT></A></LI> -->
</UL>
</TD>
</TR>
</TABLE>
<H2>Function List by Category</H2>
<TABLE width=100%>
<TR>
<TD width=50% valign=top>
<UL>
<LI>Drawing Functions
<UL>
<LI>Color
<UL>
<LI><A HREF="drawing.html#fl_color"><TT>fl_color</TT></A></LI>
<LI><A HREF="#fl_color_average"><TT>fl_color_average</TT></A></LI>
<LI><A HREF="#fl_color_cube"><TT>fl_color_cube</TT></A></LI>
<LI><A HREF="#fl_contrast"><TT>fl_contrast</TT></A></LI>
<LI><A HREF="#fl_cursor"><TT>fl_cursor</TT></A></LI>
<LI><A HREF="#fl_darker"><TT>fl_darker</TT></A></LI>
<LI><A HREF="#fl_gray_ramp"><TT>fl_gray_ramp</TT></A></LI>
<LI><A HREF="#fl_lighter"><TT>fl_lighter</TT></A></LI>
<LI><A HREF="#fl_rgb_color"><TT>fl_rgb_color</TT></A></LI>
</UL>
<LI>Text
<UL>
<LI><A HREF="drawing.html#fl_descent"><TT>fl_descent</TT></A></LI>
<LI><A HREF="drawing.html#fl_draw"><TT>fl_draw</TT></A></LI>
<LI><A HREF="drawing.html#fl_font"><TT>fl_font</TT></A></LI>
<LI><A HREF="drawing.html#fl_height"><TT>fl_height</TT></A></LI>
<LI><A HREF="drawing.html#character_encoding"><TT>fl_latin1_to_local</TT></A></LI>
<LI><A HREF="drawing.html#character_encoding"><TT>fl_local_to_latin1</TT></A></LI>
<LI><A HREF="drawing.html#character_encoding"><TT>fl_local_to_mac_roman</TT></A></LI>
<LI><A HREF="drawing.html#character_encoding"><TT>fl_mac_roman_to_local</TT></A></LI>
<LI><A HREF="drawing.html#fl_measure"><TT>fl_measure</TT></A></LI>
<LI><A HREF="drawing.html#fl_shortcut_label"><TT>fl_shortcut_label</TT></A></LI>
<LI><A HREF="drawing.html#fl_size"><TT>fl_size</TT></A></LI>
<LI><A HREF="drawing.html#fl_width"><TT>fl_width</TT></A></LI>
</UL>
<LI>Symbols
<UL>
<LI><A HREF="common.html#add_symbol"><TT>fl_add_symbol</TT></A></LI>
<LI><A HREF="common.html#fl_draw_symbol"><TT>fl_draw_symbol</TT></A></LI>
</UL>
<LI>Fast Drawing
<UL>
<LI><A HREF="drawing.html#fl_arc"><TT>fl_arc</TT></A></LI>
<LI><A HREF="drawing.html#fl_circle"><TT>fl_circle</TT></A></LI>
<LI><A HREF="drawing.html#fl_frame"><TT>fl_frame</TT></A></LI>
<LI><A HREF="drawing.html#fl_frame2"><TT>fl_frame2</TT></A></LI>
<LI><A HREF="drawing.html#fl_line"><TT>fl_line</TT></A></LI>
<LI><A HREF="drawing.html#fl_line_style"><TT>fl_line_style</TT></A></LI>
<LI><A HREF="drawing.html#fl_loop"><TT>fl_loop</TT></A></LI>
<LI><A HREF="drawing.html#fl_pie"><TT>fl_pie</TT></A></LI>
<LI><A HREF="drawing.html#fl_point"><TT>fl_point</TT></A></LI>
<LI><A HREF="drawing.html#fl_polygon"><TT>fl_polygon</TT></A></LI>
<LI><A HREF="drawing.html#fl_rect"><TT>fl_rect</TT></A></LI>
<LI><A HREF="drawing.html#fl_rectf"><TT>fl_rectf</TT></A></LI>
<LI><A HREF="drawing.html#fl_scroll"><TT>fl_scroll</TT></A></LI>
<LI><A HREF="drawing.html#fl_xyline"><TT>fl_xyline</TT></A></LI>
<LI><A HREF="drawing.html#fl_yxline"><TT>fl_yxline</TT></A></LI>
</UL>
<LI>Complex Drawing
<UL>
<LI><A HREF="drawing.html#fl_pie"><TT>fl_arc</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_complex_polygon"><TT>fl_begin_complex_polygon</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_line"><TT>fl_begin_line</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_loop"><TT>fl_begin_loop</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_offscreen"><TT>fl_begin_offscreen</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_points"><TT>fl_begin_points</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_polygon"><TT>fl_begin_polygon</TT></A></LI>
<LI><A HREF="drawing.html#fl_curve"><TT>fl_curve</TT></A></LI>
<LI><A HREF="drawing.html#fl_scale"><TT>fl_rotate</TT></A></LI>
<LI><A HREF="drawing.html#fl_scale"><TT>fl_scale</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_complex_polygon"><TT>fl_end_complex_polygon</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_line"><TT>fl_end_line</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_loop"><TT>fl_end_loop</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_points"><TT>fl_end_points</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_polygon"><TT>fl_end_polygon</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_complex_polygon"><TT>fl_gap</TT></A></LI>
<LI><A HREF="drawing.html#fl_scale"><TT>fl_mult_matrix</TT></A></LI>
<LI><A HREF="drawing.html#fl_push_matrix"><TT>fl_pop_matrix</TT></A></LI>
<LI><A HREF="drawing.html#fl_push_matrix"><TT>fl_push_matrix</TT></A></LI>
<LI><A HREF="drawing.html#fl_transform"><TT>fl_transform_dx</TT></A></LI>
<LI><A HREF="drawing.html#fl_transform"><TT>fl_transform_dy</TT></A></LI>
<LI><A HREF="drawing.html#fl_transform"><TT>fl_transform_x</TT></A></LI>
<LI><A HREF="drawing.html#fl_transform"><TT>fl_transform_y</TT></A></LI>
<LI><A HREF="drawing.html#fl_transform"><TT>fl_transformed_vertex</TT></A></LI>
<LI><A HREF="drawing.html#fl_scale"><TT>fl_translate</TT></A></LI>
<LI><A HREF="drawing.html#fl_vertex"><TT>fl_vertex</TT></A></LI>
</UL>
</UL>
</TD>
<TD width=50% valign=top>
<UL><LI>Drawing Functions (cont'd)
<UL>
<LI>Clipping
<UL>
<LI><A HREF="drawing.html#fl_clip_box"><TT>fl_clip_box</TT></A></LI>
<LI><A HREF="drawing.html#fl_clip_region"><TT>fl_clip_region</TT></A></LI>
<LI><A HREF="drawing.html#fl_not_clipped"><TT>fl_not_clipped</TT></A></LI>
<LI><A HREF="drawing.html#fl_push_no_clip"><TT>fl_push_no_clip</TT></A></LI>
<LI><A HREF="drawing.html#fl_push_clip"><TT>fl_push_clip</TT></A></LI>
<LI><A HREF="drawing.html#fl_pop_clip"><TT>fl_pop_clip</TT></A></LI>
</UL>
<LI>Overlay Drawing
<UL>
<LI><A HREF="drawing.html#overlay"><TT>fl_overlay_clear</TT></A></LI>
<LI><A HREF="drawing.html#overlay"><TT>fl_overlay_rect</TT></A></LI>
</UL>
<LI>Offscreen Drawing
<UL>
<LI><A HREF="drawing.html#fl_copy_offscreen"><TT>fl_copy_offscreen</TT></A></LI>
<LI><A HREF="drawing.html#fl_create_offscreen"><TT>fl_create_offscreen</TT></A></LI>
<LI><A HREF="drawing.html#fl_delete_offscreen"><TT>fl_delete_offscreen</TT></A></LI>
<LI><A HREF="drawing.html#fl_end_offscreen"><TT>fl_end_offscreen</TT></A></LI>
</UL>
</UL>
</LI>
</UL>
<UL>
<LI>Dialog Functions
<UL>
<LI><A HREF="#fl_alert"><TT>fl_alert</TT></A></LI>
<LI><A HREF="#fl_ask"><TT>fl_ask</TT></A></LI>
<LI><A HREF="#fl_beep"><TT>fl_beep</TT></A></LI>
<LI><A HREF="#fl_choice2"><TT>fl_choice</TT></A></LI>
<LI><A HREF="#fl_color_chooser_func"><TT>fl_color_chooser</TT></A></LI>
<LI><A HREF="#fl_dir_chooser"><TT>fl_dir_chooser</TT></A></LI>
<LI><A HREF="#fl_file_chooser2"><TT>fl_file_chooser</TT></A></LI>
<LI><A HREF="#fl_file_chooser_callback"><TT>fl_file_chooser_callback</TT></A></LI>
<LI><A HREF="#fl_file_chooser_ok_label"><TT>fl_file_chooser_ok_label</TT></A></LI>
<LI><A HREF="#fl_input2"><TT>fl_input</TT></A></LI>
<LI><A HREF="#fl_message"><TT>fl_message</TT></A></LI>
<LI><A HREF="#fl_message_font"><TT>fl_message_font</TT></A></LI>
<LI><A HREF="#fl_message_icon"><TT>fl_message_icon</TT></A></LI>
<LI><A HREF="#fl_password"><TT>fl_password</TT></A></LI>
<LI><A HREF="#fl_show_colormap"><TT>fl_show_colormap</TT></A></LI>
</UL>
</LI>
<LI>Filename Functions
<UL>
<LI><A HREF="#fl_filename_absolute"><TT>fl_filename_absolute</TT></A></LI>
<LI><A HREF="#fl_filename_expand"><TT>fl_filename_expand</TT></A></LI>
<LI><A HREF="#fl_filename_ext"><TT>fl_filename_ext</TT></A></LI>
<LI><A HREF="#fl_filename_isdir"><TT>fl_filename_isdir</TT></A></LI>
<LI><A HREF="#fl_filename_list"><TT>fl_filename_list</TT></A></LI>
<LI><A HREF="#fl_filename_match"><TT>fl_filename_match</TT></A></LI>
<LI><A HREF="#fl_filename_name"><TT>fl_filename_name</TT></A></LI>
<LI><A HREF="#fl_filename_relative"><TT>fl_filename_relative</TT></A></LI>
<LI><A HREF="#fl_filename_setext"><TT>fl_filename_setext</TT></A></LI>
<LI><A HREF="#fl_open_uri"><TT>fl_open_uri</TT></A></LI>
</UL>
</LI>
<LI>Image Functions
<UL>
<LI><A HREF="drawing.html#fl_can_do_alpha_blending"><TT>fl_can_do_alpha_blending</TT></A></LI>
<LI><A HREF="#fl_register_images"><TT>fl_register_images</TT></A></LI>
<LI><A HREF="drawing.html#fl_draw_image"><TT>fl_draw_image</TT></A></LI>
<LI><A HREF="drawing.html#fl_draw_image"><TT>fl_draw_image_mono</TT></A></LI>
<LI><A HREF="drawing.html#fl_draw_pixmap"><TT>fl_draw_pixmap</TT></A></LI>
<LI><A HREF="drawing.html#fl_measure_pixmap"><TT>fl_measure_pixmap</TT></A></LI>
<LI><A HREF="drawing.html#fl_read_image"><TT>fl_read_image</TT></A></LI>
</UL>
</LI>
<LI>Box Types
<UL>
<LI><A HREF="common.html#fl_down"><TT>fl_down</TT></A></LI>
<LI><A HREF="drawing.html#fl_draw_box"><TT>fl_draw_box</TT></A></LI>
<LI><A HREF="common.html#fl_frame"><TT>fl_frame</TT></A></LI>
</UL>
<LI>System Related Functions
<UL>
<LI><A HREF="osissues.html#WIN32.gdi"><TT>fl_RGB</TT></A> (WIN32)</LI>
<LI><A HREF="osissues.html#WIN32.gdi"><TT>fl_brush</TT></A> (WIN32)</LI>
<LI><A HREF="osissues.html#fl_close_display"><TT>fl_close_display</TT></A></LI>
<LI><A HREF="osissues.html#fl_find"><TT>fl_find</TT></A></LI>
<LI><A HREF="osissues.html#fl_handle"><TT>fl_handle</TT></A> (X11)</LI>
<LI><A HREF="osissues.html#fl_open_callback"><TT>fl_open_callback</TT></A></LI>
<LI><A HREF="osissues.html#fl_open_display"><TT>fl_open_display</TT></A></LI>
<LI><A HREF="osissues.html#fl_parse_color"><TT>fl_parse_color</TT></A></LI>
<LI><A HREF="osissues.html#WIN32.gdi"><TT>fl_pen</TT></A> (WIN32)</LI>
<LI><A HREF="osissues.html#fl_xid"><TT>fl_xid</TT></A></LI>
<LI><A HREF="osissues.html#fl_xpixel"><TT>fl_xpixel</TT></A></LI>
</UL>
</UL>
</td>
</table>
<!-- NEED 4in -->
<H2><A NAME="fl_alert">fl_alert</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/fl_ask.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
void fl_alert(const char *, ...);
</PRE></UL>
<H3>Description</H3>
<P>Same as <tt>fl_message()</tt> except for the "!" symbol.
<p><b>Note: </b>Common dialog boxes are application modal.
No more than one common dialog box can be open at any time.
Requests for additional dialog boxes are ignored.</p>
<P ALIGN=CENTER><IMG src="fl_alert.gif" ALT="The fl_alert window">
<!-- NEED 4in -->
<H2><A name="fl_ask">fl_ask</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/fl_ask.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
int fl_ask(const char *, ...);
</PRE></UL>
<H3>Description</H3>
<P>Displays a printf-style message in a pop-up box with an
"Yes" and "No" button and waits for the user
to hit a button. The return value is 1 if the user hits Yes,
0 if they pick No or another dialog box is still open.
The enter key is a shortcut for Yes and ESC is a shortcut for No.
<p><b>Note: </b>Common dialog boxes are application modal.
No more than one common dialog box can be open at any time.
Requests for additional dialog boxes are ignored.</p>
<P ALIGN="CENTER"><IMG SRC="fl_ask.gif" ALT="The fl_ask window.">
<p><b>Note: </b>Use of this function is <i>strongly</i>
discouraged, and it will be removed in a later FLTK release.
Instead, use <a href='#fl_choice2'><tt>fl_choice()</tt></a> and
provide unambiguous verbs in place of "Yes" and "No".</p>
<!-- NEED 4in -->
<H2><A name="fl_beep">fl_beep</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/fl_ask.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
void fl_beep(int type = FL_BEEP_DEFAULT)
</PRE></UL>
<H3>Description</H3>
<P>Sounds an audible notification; the default <CODE>type</CODE> argument
sounds a simple "beep" sound. Other values for <CODE>type</CODE> may use
a system or user-defined sound file:
<UL>
<LI><TT>FL_BEEP_DEFAULT</TT> - Make a generic "beep" sound.
<LI><TT>FL_BEEP_MESSAGE</TT> - Make a sound appropriate for an
informational message.
<LI><TT>FL_BEEP_ERROR</TT> - Make a sound appropriate for an
error message.
<LI><TT>FL_BEEP_QUESTION</TT> - Make a sound appropriate for
a question.
<LI><TT>FL_BEEP_PASSWORD</TT> - Make a sound appropriate for
a password prompt.
<LI><TT>FL_BEEP_NOTIFICATION</TT> - Make a sound appropriate for
an event notification ("you have mail", etc.)
</UL>
<!-- NEED 4in -->
<H2><A name="fl_choice2">fl_choice</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/fl_ask.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
int fl_choice(const char *q, const char *b0, const char *b1, const char *b2, ...);
</PRE></UL>
<H3>Description</H3>
<P>Shows the message with three buttons below it marked with the
strings <tt> b0</tt>, <tt>b1</tt>, and <tt>b2</tt>. Returns 0,
if button 0 is hit or another dialog box is still open. Returns
1 or 2 for buttons 1 or 2, respectively. ESC is a shortcut for
button 0 and the enter key is a shortcut for button 1. Notice
the buttons are positioned "backwards". You can hide
buttons by passing <tt>NULL</tt> as their labels.
<p><b>Note: </b>Common dialog boxes are application modal.
No more than one common dialog box can be open at any time.
Requests for additional dialog boxes are ignored.</p>
<P ALIGN="CENTER"><IMG SRC="fl_choice.gif" ALT="The fl_choice window.">
<!-- NEED 4in -->
<H2><A NAME="fl_color_average">fl_color_average</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/Enumerations.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
Fl_Color fl_color_average(Fl_Color c1, Fl_Color c2, float weight);
</PRE></UL>
<H3>Description</H3>
<P>Returns the weighted average color between the two colors.
The red, green, and blue values are averaged using the following
formula:
<UL><PRE>
color = c1 * weight + c2 * (1 - weight)
</PRE></UL>
<P>Thus, a <CODE>weight</CODE> value of 1.0 will return the
first color, while a value of 0.0 will return the second color.
<!-- NEED 4in -->
<H2><A name="fl_color_chooser_func">fl_color_chooser</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/Fl_Color_Chooser.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
int fl_color_chooser(const char *title, double &r, double &g, double &b);
int fl_color_chooser(const char *title, uchar &r, uchar &g, uchar &b);
</PRE></UL>
<H3>Description</H3>
<P>The <CODE>double</CODE> version takes RGB values in the range
0.0 to 1.0. The <CODE>uchar</CODE> version takes RGB values in
the range 0 to 255. The <tt>title</tt> argument specifies the
label (title) for the window.
<P ALIGN="CENTER"><IMG SRC="fl_color_chooser.jpg" ALT="The fl_color_chooser dialog."></P>
<P><tt>fl_color_chooser()</tt> pops up a window to let the user
pick an arbitrary RGB color. They can pick the hue and
saturation in the "hue box" on the left (hold down
CTRL to just change the saturation), and the brighness using the
vertical slider. Or they can type the 8-bit numbers into the
RGB <A href=Fl_Value_Input.html#Fl_Value_Input><tt>
Fl_Value_Input</tt></A> fields, or drag the mouse across them to
adjust them. The pull-down menu lets the user set the input
fields to show RGB, HSV, or 8-bit RGB (0 to 255).
<P>This returns non-zero if the user picks ok, and updates the
RGB values. If the user picks cancel or closes the window this
returns zero and leaves RGB unchanged.
<P>If you use the color chooser on an 8-bit screen, it will
allocate all the available colors, leaving you no space to
exactly represent the color the user picks! You can however use
<A href="drawing.html#fast"><tt> fl_rectf()</tt></A> to fill a
region with a simulated color using dithering.
<!-- NEED 4in -->
<H2><A NAME="fl_color_cube">fl_color_cube</A></H2>
<HR>
<H3>Include File</H3>
<UL><PRE>
#include <FL/fl_draw.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
Fl_Color fl_color_cube(int r, int g, int b);
</PRE></UL>
<H3>Description</H3>
<P>Returns a color out of the color cube. <tt>r</tt> must be in
the range 0 to FL_NUM_RED (5) minus 1. <tt>g</tt> must be in the
range 0 to FL_NUM_GREEN (8) minus 1. <tt>b</tt> must be in the
range 0 to FL_NUM_BLUE (5) minus 1.
<P>To get the closest color to a 8-bit set of R,G,B values use:
<UL><PRE>
fl_color_cube(R * (FL_NUM_RED - 1) / 255,
G * (FL_NUM_GREEN - 1) / 255,
B * (FL_NUM_BLUE - 1) / 255);
</PRE></UL>
<!-- NEED 4in -->
<H2><A NAME="fl_contrast">fl_contrast</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/Enumerations.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
Fl_Color fl_contrast(Fl_Color fg, Fl_Color bg);
</PRE></UL>
<H3>Description</H3>
<P>Returns the foreground color if it contrasts sufficiently
with the background color. Otherwise, returns
<CODE>FL_WHITE</CODE> or <CODE>FL_BLACK</CODE> depending on
which color provides the best contrast.
<!-- NEED 4in -->
<H2><A NAME="fl_cursor">fl_cursor</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/fl_draw.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
void fl_cursor(Fl_Cursor cursor, Fl_Color fg, Fl_Color bg);
</PRE></UL>
<H3>Description</H3>
<P>Sets the cursor for the current window to the specified shape
and colors. The cursors are defined in the <A
HREF="enumerations.html#cursor"><CODE><FL/Enumerations.H></CODE>
header file</A>.
<!-- NEED 4in -->
<H2><A NAME="fl_darker">fl_darker</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/Enumerations.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
Fl_Color fl_darker(Fl_Color c);
</PRE></UL>
<H3>Description</H3>
<P>Returns a darker version of the specified color.
<!-- NEED 4in -->
<H2><A NAME="fl_dir_chooser">fl_dir_chooser</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/Fl_File_Chooser.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
char *fl_dir_chooser(const char * message, const char *fname, int relative = 0);
</PRE></UL>
<H3>Description</H3>
<P>The <tt>fl_dir_chooser()</tt> function displays a <A
HREF="Fl_File_Chooser.html"><tt>Fl_File_Chooser</tt></A> dialog
so that the user can choose a directory.
<P><tt>message</tt> is a string used to title the window.
<P><tt>fname</tt> is a default filename to fill in the chooser
with. If this is <tt>NULL</tt> then the last filename that was
choosen is used. The first time the file chooser is called this
defaults to a blank string.
<P><tt>relative</tt> specifies whether the returned filename
should be relative (any non-zero value) or absolute (0). The
default is to return absolute paths.
<P>The returned value points at a static buffer that is only
good until the next time <tt>fl_dir_chooser()</tt> is called.
<!-- NEED 4in -->
<H2><A NAME="fl_file_chooser2">fl_file_chooser</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/Fl_File_Chooser.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
char *fl_file_chooser(const char * message, const char *pattern, const char *fname, int relative = 0);
</PRE></UL>
<H3>Description</H3>
<P>FLTK provides a "tab completion" file chooser that
makes it easy to choose files from large directories. This file
chooser has several unique features, the major one being that
the Tab key completes filenames like it does in Emacs or tcsh,
and the list always shows all possible completions.
<P ALIGN="CENTER"><IMG SRC="Fl_File_Chooser.jpg" ALT="The fl_file_chooser window.">
<P><tt>fl_file_chooser()</tt> pops up the file chooser, waits
for the user to pick a file or Cancel, and then returns a
pointer to that filename or <tt>NULL</tt> if Cancel is chosen.
<P><tt>message</tt> is a string used to title the window.
<P><tt>pattern</tt> is used to limit the files listed in a
directory to those matching the pattern. This matching is done by
<A href="#fl_filename_match"><tt>fl_filename_match()</tt></A>.
Multiple patterns can be used by separating them with tabs, like
"*.jpg\t*.png\t*.gif\t*". In addition, you can provide
human-readable labels with the patterns inside parenthesis, like
"JPEG Files (*.jpg)\tPNG Files (*.png)\tGIF Files (*.gif)\tAll Files (*)".
Pass <tt>NULL</tt> to show all files.</p>
<P><tt>fname</tt> is a default filename to fill in the chooser
with. If this is <tt>NULL</tt> then the last filename that was
choosen is used (unless that had a different pattern, in which
case just the last directory with no name is used). The first
time the file chooser is called this defaults to a blank string.
<P><tt>relative</tt> specifies whether the returned filename
should be relative (any non-zero value) or absolute (0). The
default is to return absolute paths.
<P>The returned value points at a static buffer that is only
good until the next time <tt>fl_file_chooser()</tt> is called.
<!-- NEED 4in -->
<H2><A NAME="fl_file_chooser_callback">fl_file_chooser_callback</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/Fl_File_Chooser.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
void fl_file_chooser_callback(void (*cb)(const char *));
</PRE></UL>
<H3>Description</H3>
<P>Sets a function that is called every time the user clicks a
file in the currently popped-up file chooser. This could be used
to preview the contents of the file. It has to be reasonably
fast, and cannot create FLTK windows.
<!-- NEED 4in -->
<H2><A NAME="fl_file_chooser_ok_label">fl_file_chooser_ok_label</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/Fl_File_Chooser.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
void fl_file_chooser_ok_label(const char *l);
</PRE></UL>
<H3>Description</H3>
<P>Sets the label that is shown on the "OK" button in the file
chooser. The default label (<tt>fl_ok</tt>) can be restored by
passing a <tt>NULL</tt> pointer for the label string.</p>
<!-- NEED 4in -->
<H2><A NAME="fl_filename_absolute">fl_filename_absolute</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/filename.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
int fl_filename_absolute(char *to, int tolen, const char *from);
int fl_filename_absolute(char *to, const char *from);
</PRE></UL>
<H3>Description</H3>
<P>Converts a relative pathname to an absolute pathname. If
<tt>from</tt> does not start with a slash, the current working
directory is prepended to <tt>from</tt> with any occurances of
<tt>.</tt> and <tt>x/..</TT> deleted from the result. The
absolute pathname is copied to <tt>to</tt>; <tt>from</tt> and
<tt>to</tt> may point to the same buffer.
<TT>fl_filename_absolute</TT> returns non-zero if any changes
were made.
<P>The first form accepts a maximum length (<TT>tolen</TT>) for
the destination buffer, while the second form assumes that the
destination buffer is at least <TT>FL_PATH_MAX</TT> characters
in length.
<!-- NEED 4in -->
<H2><A NAME="fl_filename_expand">fl_filename_expand</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/filename.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
int fl_filename_expand(char *to, int tolen, const char *from);
int fl_filename_expand(char *to, const char *from);
</PRE></UL>
<H3>Description</H3>
<P>This function replaces environment variables and home
directories with the corresponding strings. Any occurrence of
<tt>$X</tt> is replaced by <tt>getenv("X")</tt>; if
<TT>$X</TT> is not defined in the environment, the occurrence is
not replaced. Any occurence of <tt>~X</tt> is replaced by user
<tt>X</tt>'s home directory; if user <TT>X</TT> does not exist,
the occurrence is not replaced. Any resulting double slashes
cause everything before the second slash to be deleted.
<P>The result is copied to <TT>to</TT>, and <TT>from</TT> and
<TT>to</TT> may point to the same buffer.
<TT>fl_filename_expand()</TT> returns non-zero if any changes
were made.
<P>The first form accepts a maximum length (<TT>tolen</TT>) for
the destination buffer, while the second form assumes that the
destination buffer is at least <TT>FL_PATH_MAX</TT> characters
in length.
<!-- NEED 4in -->
<H2><A NAME="fl_filename_ext">fl_filename_ext</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/filename.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
const char *fl_filename_ext(const char *f);
</PRE></UL>
<H3>Description</H3>
<P>Returns a pointer to the last period in
<tt>fl_filename_name(f)</tt>, or a pointer to the trailing
<TT>nul</TT> if none is found.
<!-- NEED 4in -->
<H2><A NAME="fl_filename_isdir">fl_filename_isdir</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/filename.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
int fl_filename_isdir(const char *f);
</PRE></UL>
<H3>Description</H3>
<P>Returns non-zero if the file exists and is a directory.
<!-- NEED 4in -->
<H2><A NAME="fl_filename_list">fl_filename_list</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/filename.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
int fl_filename_list(const char *d, dirent ***list, Fl_File_Sort_F *sort = fl_numericsort);
</PRE></UL>
<H3>Description</H3>
<P>This is a portable and const-correct wrapper for the
<tt>scandir()</tt> function. <tt>d</tt> is the name of a
directory; it does not matter if it has a trailing slash or not.
For each file in that directory a "dirent" structure
is created. The only portable thing about a dirent is that
<TT>dirent.d_name</TT> is the <TT>nul</TT>-terminated file name.
An array of pointers to these <TT>dirent</TT>'s is created and a
pointer to the array is returned in <tt>*list</tt>. The number
of entries is given as a return value. If there is an error
reading the directory a number less than zero is returned, and
<tt>errno</tt> has the reason; <tt>errno</tt> does not work
under WIN32.
<P>The name of directory always ends in a forward slash '/'.
<P>The <tt>sort</tt> argument specifies a sort function to be used
when on the array of filenames. The following standard sort functions
are provided with FLTK:
<UL>
<LI><TT><A NAME=fl_alphasort>fl_alphasort</A></tt> - The files are sorted in
ascending alphabetical order; upper- and lowercase
letters are compared according to their ASCII ordering -
uppercase before lowercase.
<LI><TT><A NAME=fl_casealphasort>fl_casealphasort</A></tt> - The files are sorted in
ascending alphabetical order; upper- and lowercase
letters are compared equally - case is not significant.
<LI><TT><A NAME=fl_casenumericsort>fl_casenumericsort</A></TT> - The files are sorted
in ascending "alphanumeric" order, where an
attempt is made to put unpadded numbers in consecutive
order; upper- and lowercase letters are compared equally
- case is not significant.
<LI><TT><A NAME=fl_numericsort>fl_numericsort</A></TT> - The files are sorted in
ascending "alphanumeric" order, where an
attempt is made to put unpadded numbers in consecutive
order; upper- and lowercase letters are compared
according to their ASCII ordering - uppercase before
lowercase.
</UL>
<P>You can free the returned list of files with the following
code:
<UL><PRE>
for (int i = return_value; i > 0;) {
free((void*)(list[--i]));
}
free((void*)list);
</PRE></UL>
<!-- NEED 4in -->
<H2><A NAME="fl_filename_match">fl_filename_match</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/filename.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
int fl_filename_match(const char *f, const char *pattern);
</PRE></UL>
<H3>Description</H3>
<P>Returns non-zero if <tt>f</tt> matches <tt>pattern</tt>. The
following syntax is used by <tt>pattern</tt>:
<UL>
<LI><tt>*</tt> matches any sequence of 0 or more
characters.</LI>
<LI><tt>?</tt> matches any single character.</LI>
<LI><tt>[set]</tt> matches any character in the set. Set
can contain any single characters, or a-z to represent a
range. To match ] or - they must be the first
characters. To match ^ or ! they must not be the first
characters.</LI>
<LI><tt>[^set] or <B>[!set]</B></tt> matches any
character not in the set.</LI>
<LI><tt>{X|Y|Z} or <B>{X,Y,Z}</B></tt> matches any one of the
subexpressions literally.</LI>
<LI><tt>\x</tt> quotes the character x so it has no
special meaning.</LI>
<LI><tt>x</tt> all other characters must be matched
exactly.</LI>
</UL>
<!-- NEED 4in -->
<H2><A NAME="fl_filename_name">fl_filename_name</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/filename.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
const char *fl_filename_name(const char *f);
</PRE></UL>
<H3>Description</H3>
<P>Returns a pointer to the character after the last slash, or
to the start of the filename if there is none.
<!-- NEED 4in -->
<H2><A NAME="fl_filename_relative">fl_filename_relative</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/filename.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
int fl_filename_relative(char *to, int tolen, const char *from);
int fl_filename_relative(char *to, const char *from);
</PRE></UL>
<H3>Description</H3>
<P>Converts an absolute pathname to an relative pathname. The
relative pathname is copied to <tt>to</tt>; <tt>from</tt> and
<tt>to</tt> may point to the same buffer.
<TT>fl_filename_relative</TT> returns non-zero if any changes
were made.
<P>The first form accepts a maximum length (<TT>tolen</TT>) for
the destination buffer, while the second form assumes that the
destination buffer is at least <TT>FL_PATH_MAX</TT> characters
in length.
<!-- NEED 4in -->
<H2><A NAME="fl_filename_setext">fl_filename_setext</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/filename.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
char *fl_filename_setext(char *to, int tolen, const char *ext);
char *fl_filename_setext(char *to, const char *ext);
</PRE></UL>
<H3>Description</H3>
<P>Replaces the extension in <TT>to</TT> with the extension in
<TT>ext</TT>. Returns a pointer to <tt>to</tt>.
<P>The first form accepts a maximum length (<TT>tolen</TT>) for
the destination buffer, while the second form assumes that the
destination buffer is at least <TT>FL_PATH_MAX</TT> characters
in length.
<!-- NEED 4in -->
<H2><A NAME="fl_gray_ramp">fl_gray_ramp</A></H2>
<HR>
<H3>Include File</H3>
<UL><PRE>
#include <FL/fl_draw.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
Fl_Color fl_gray_ramp(int i);
</PRE></UL>
<H3>Description</H3>
<P>Returns a gray color value from black (<TT>i == 0</TT>) to
white (<TT>i == FL_NUM_GRAY - 1</TT>). <TT>FL_NUM_GRAY</TT> is
defined to be 24 in the current FLTK release. To get the closest
FLTK gray value to an 8-bit grayscale color 'I' use:
<UL><PRE>
fl_gray_ramp(I * (FL_NUM_GRAY - 1) / 255)
</PRE></UL>
<!-- NEED 4in -->
<H2><A NAME="fl_inactive">fl_inactive</A></H2>
<HR>
<H3>Include File</H3>
<UL><PRE>
#include <FL/Enumerations.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
Fl_Color fl_inactive(Fl_Color c);
</PRE></UL>
<H3>Description</H3>
<P>Returns the inactive, dimmed version of the give color
<!-- NEED 4in -->
<H2><A NAME="fl_input2">fl_input</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/fl_ask.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
const char *fl_input(const char *label, const char *deflt = 0, ...);
</PRE></UL>
<H3>Description</H3>
<P>Pops up a window displaying a string, lets the user edit it, and
returns the new value. The function returns <tt>NULL</tt> if the
<b>Cancel</b> button is hit or another dialog box is still open.
<I>The returned pointer is only valid until the
next time <tt>fl_input()</tt> is called</I>.
Due to back-compatibility, the arguments to any printf commands
in the label are after the default value.
<p><b>Note: </b>Common dialog boxes are application modal.
No more than one common dialog box can be open at any time.
Requests for additional dialog boxes are ignored.</p>
<P ALIGN=CENTER><IMG SRC="fl_input.gif" ALT="The fl_input window.">
<!-- NEED 4in -->
<H2><A NAME="fl_lighter">fl_lighter</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/Enumerations.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
Fl_Color fl_lighter(Fl_Color c);
</PRE></UL>
<H3>Description</H3>
<P>Returns a lighter version of the specified color.
<!-- NEED 4in -->
<H2><A name="fl_message">fl_message</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/fl_ask.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
void fl_message(const char *, ...);
</PRE></UL>
<H3>Description</H3>
<P>Displays a printf-style message in a pop-up box with an
"OK" button, waits for the user to hit the button.
The message will wrap to fit the window, or may be many lines by
putting <tt>\n</tt> characters into it. The enter key is a
shortcut for the OK button.
<P>The message text is limited to 1024 characters.
<p><b>Note: </b>Common dialog boxes are application modal.
No more than one common dialog box can be open at any time.
Requests for additional dialog boxes are ignored.</p>
<P ALIGN="CENTER"><IMG src="fl_message.gif" ALT="The fl_message window.">
<!-- NEED 4in -->
<H2><A NAME="fl_message_font">fl_message_font</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/fl_ask.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
void fl_message_font(Fl_Font fontid, uchar size);
</PRE></UL>
<H3>Description</H3>
<P>Changes the font and font size used for the messages in all
the popups.
<!-- NEED 4in -->
<H2><A NAME="fl_message_icon">fl_message_icon</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/fl_ask.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
Fl_Widget *fl_message_icon();
</PRE></UL>
<H3>Description</H3>
<P>Returns a pointer to the box at the left edge of all the
popups. You can alter the font, color, label, or image before
calling the functions.
<!-- NEED 4in -->
<H2><A NAME="fl_open_uri">fl_open_uri</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/filename.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
void fl_open_uri(const char *uri, char *msg = (char *)0, int msglen = 0);
</PRE></UL>
<H3>Description</H3>
<P>fl_open_uri() opens the specified Uniform Resource Identifier (URI) using an operating-system dependent program or interface. For URIs using the "ftp", "http", or "https" schemes, the system default web browser is used to open the URI, while "mailto" and "news" URIs are typically opened using the system default mail reader and "file" URIs are opened using the file system navigator.</P>
<P>On success, the (optional) <TT>msg</TT> buffer is filled with the command that was run to open the URI; on Windows, this will always be "open uri".</P>
<P>On failure, the <TT>msg</TT> buffer is filled with an English error message.</P>
<!-- NEED 4in -->
<H2><A NAME="fl_password">fl_password</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/fl_ask.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
const char *fl_password(const char *label, const char *deflt = 0, ...);
</PRE></UL>
<H3>Description</H3>
<P>Same as <tt>fl_input()</tt>, except an
<A href=Fl_Secret_Input.html><tt>Fl_Secret_Input</tt></A>
field is used.
<p><b>Note: </b>Common dialog boxes are application modal.
No more than one common dialog box can be open at any time.
Requests for additional dialog boxes are ignored.</p>
<!-- NEED 4in -->
<H2><A NAME="fl_register_images">fl_register_images</A></H2>
<HR>
<H3>Include File</H3>
<UL><PRE>
#include <FL/Fl_Shared_Image.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
void fl_register_images();
</PRE></UL>
<H3>Description</H3>
<P>Registers the extra image file formats that are not provided
as part of the core FLTK library for use with the <A
HREF="Fl_Shared_Image.html#Fl_Shared_Image"><CODE>Fl_Shared_Image</CODE></A>
class.
<P>This function is provided in the <CODE>fltk_images</CODE>
library.
<!-- NEED 4in -->
<H2><A NAME="fl_rgb_color">fl_rgb_color</A></H2>
<HR>
<H3>Include File</H3>
<UL><PRE>
#include <FL/fl_draw.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
Fl_Color fl_rgb_color(uchar r, uchar g, uchar b);
Fl_Color fl_rgb_color(uchar g);
</PRE></UL>
<H3>Description</H3>
<P>Returns the 24-bit RGB color value for the specified 8-bit
RGB or grayscale values.
<!-- NEED 8in -->
<H2><A name="fl_show_colormap">fl_show_colormap</A></H2>
<HR>
<H3>Include Files</H3>
<UL><PRE>
#include <FL/fl_show_colormap.H>
</PRE></UL>
<H3>Prototype</H3>
<UL><PRE>
Fl_Color fl_show_colormap(Fl_Color oldcol)
</PRE></UL>
<H3>Description</H3>
<P><tt>fl_show_colormap()</tt> pops up a panel of the 256 colors
you can access with <A
href="drawing.html#fl_color"><tt>fl_color()</tt></A> and lets
the user pick one of them. It returns the new color index, or
the old one if the user types ESC or clicks outside the window.
<P ALIGN="CENTER"><IMG src="fl_show_colormap.gif" ALT="The fl_show_colormap dialog">
</BODY>
</HTML>
|