/usr/include/Xm/XmP.h is in libmotif-dev 2.3.4-13.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 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 | /*
* Motif
*
* Copyright (c) 1987-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these librararies and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*
* HISTORY
*/
/* $TOG: XmP.h /main/23 1997/09/15 14:22:29 cshi $ */
/* (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
/************************************<+>*************************************
****************************************************************************
**
** File: XmP.h
**
** Description: This include file contains the class and instance record
** definitions for all meta classes. It also contains externs
** for internally shared functions and defines for internally
** shared values.
**
****************************************************************************
************************************<+>*************************************/
#ifndef _XmP_h
#define _XmP_h
#include <stdarg.h>
#include <Xm/Xm.h>
#include <X11/IntrinsicP.h>
#include <X11/ObjectP.h>
#include <Xm/ColorP.h>
#include <Xm/AccColorT.h>
#ifdef __cplusplus
extern "C" {
#endif
/***************************************************************************
*
* Macros replacing toolkit macros so that gadgets are handled properly.
*
***************************************************************************/
/* Temporary hack until we can clean up our own code. ??? */
#ifndef NO_XM_1_2_XTMACROS
#define XM_1_2_XTMACROS 1
#endif
#ifdef XM_1_2_XTMACROS
/* XtClass is a macro in IntrinsicP.h, but it does no casting
so removing this one would certainly generate warnings everywhere,
we can keep it */
#ifdef XtClass
#undef XtClass
#endif
#define XtClass(widget) (((Object)(widget))->object.widget_class)
/* Exist in IntrinsicP.h, but does no casting, so removing this
one will probably generate a lot of warnings */
#ifdef XtParent
#undef XtParent
#endif
#define XtParent(widget) (((Object)(widget))->object.parent)
/* The following routines exist in Xt, but do not accept Gadgets. */
#ifdef XtDisplay
#undef XtDisplay
#endif
#define XtDisplay(widget) XtDisplayOfObject((Widget) widget)
#ifdef XtScreen
#undef XtScreen
#endif
#define XtScreen(widget) XtScreenOfObject((Widget) widget)
#ifdef XtWindow
#undef XtWindow
#endif
#define XtWindow(widget) XtWindowOfObject((Widget) widget)
/* The following macros are not provided by Xt */
#define XtX(w) ((w)->core.x)
#define XtY(w) ((w)->core.y)
#define XtWidth(w) ((w)->core.width)
#define XtHeight(w) ((w)->core.height)
#define XtBorderWidth(w) ((w)->core.border_width)
#define XtBackground(w) ((w)->core.background_pixel)
#define XtCoreProc(w,proc) ((w)->core.widget_class->core_class.proc)
#endif /* XM_1_2_XTMACROS */
/***********************************************************************
*
* Miscellaneous SemiPrivate Defines
*
***********************************************************************/
/* new for the initialized gadget checking */
#define XmNdotCache ".cache"
#define XmCDotCache ".Cache"
#define XmDELAYED_PIXMAP (XmUNSPECIFIED_PIXMAP - 1)
#define XmUNSPECIFIED (~0)
#define XmUNSPECIFIED_COUNT (~0)
/* Used by conversion routine in ResConvert.c, RepType.c, IconG.c, etc */
#define _XM_CONVERTER_DONE( to_rtn, type, value, failure ) \
{ \
static type buf ; \
\
if (to_rtn->addr) \
{ \
if (to_rtn->size < sizeof(type)) \
{ \
failure \
to_rtn->size = sizeof(type); \
return FALSE; \
} \
else \
{ \
*((type *) (to_rtn->addr)) = value; \
} \
} \
else \
{ \
buf = value; \
to_rtn->addr = (XPointer) &buf; \
} \
to_rtn->size = sizeof(type); \
return TRUE; \
}
/* defines needed for 3D visual enhancement of defaultButtonshadow and
* implementation of ToggleButton Indicatorsize. **/
#define Xm3D_ENHANCE_PIXEL 2
#define XmINDICATOR_SHADOW_THICKNESS 2
#define XmINVALID_DIMENSION 0xFFFF
/***********************************************************************
*
* Const stuff
*
***********************************************************************/
#ifndef XmConst
#if defined(__STDC__) || !defined( NO_CONST )
#define XmConst const
#else
#define XmConst
#endif /* __STDC__ */
#endif /* XmConst */
/***********************************************************************
*
* Status for menus
*
***********************************************************************/
/* Defines used for menu/button communication */
enum{ XmMENU_POPDOWN, XmMENU_PROCESS_TREE,
XmMENU_TRAVERSAL, XmMENU_SHELL_POPDOWN,
XmMENU_CALLBACK, XmMENU_BUTTON,
XmMENU_CASCADING, XmMENU_SUBMENU,
XmMENU_ARM, XmMENU_DISARM,
XmMENU_BAR_CLEANUP, XmMENU_STATUS,
XmMENU_MEMWIDGET_UPDATE, XmMENU_BUTTON_POPDOWN,
XmMENU_RESTORE_EXCLUDED_TEAROFF_TO_TOPLEVEL_SHELL,
XmMENU_RESTORE_TEAROFF_TO_TOPLEVEL_SHELL,
XmMENU_RESTORE_TEAROFF_TO_MENUSHELL,
XmMENU_GET_LAST_SELECT_TOPLEVEL,
XmMENU_TEAR_OFF_ARM
} ;
#define XmMENU_TORN_BIT (1 << 0)
#define XmMENU_TEAR_OFF_SHELL_DESCENDANT_BIT (1 << 1)
#define XmMENU_POPUP_POSTED_BIT (1 << 2)
#define XmMENU_IN_DRAG_MODE_BIT (1 << 3)
#define XmIsTorn(mask) \
(mask & XmMENU_TORN_BIT)
#define XmIsTearOffShellDescendant(mask) \
(mask & XmMENU_TEAR_OFF_SHELL_DESCENDANT_BIT)
#define XmPopupPosted(mask) \
(mask & XmMENU_POPUP_POSTED_BIT)
#define XmIsInDragMode(mask) \
(mask & XmMENU_IN_DRAG_MODE_BIT)
typedef void (*XmMenuProc)( int, Widget, ...) ;
/***********************************************************************
*
* Simple Menu Structure
*
***********************************************************************/
typedef struct _XmSimpleMenuRec {
int count;
int post_from_button;
XtCallbackProc callback;
XmStringTable label_string;
String *accelerator;
XmStringTable accelerator_text;
XmKeySymTable mnemonic;
XmStringCharSetTable mnemonic_charset;
XmButtonTypeTable button_type;
int button_set;
XmString option_label;
KeySym option_mnemonic;
} XmSimpleMenuRec, * XmSimpleMenu;
/* For MapEvent: _XmMatchBtnEvent */
#define XmIGNORE_EVENTTYPE -1
/* Default minimum Toggle indicator dimension */
#define XmDEFAULT_INDICATOR_DIM 9
/************************************************************************
*
* SyntheticP.h
*
************************************************************************/
typedef enum{ XmSYNTHETIC_NONE, XmSYNTHETIC_LOAD } XmImportOperator ;
typedef void (*XmExportProc)( Widget, int, XtArgVal *) ;
typedef XmImportOperator (*XmImportProc)( Widget, int, XtArgVal *) ;
typedef struct _XmSyntheticResource
{
String resource_name;
Cardinal resource_size;
Cardinal resource_offset;
XmExportProc export_proc;
XmImportProc import_proc;
} XmSyntheticResource;
/***********************************************************************
*
* ParProcP.h
*
***********************************************************************/
typedef struct
{
int process_type ; /* Common to all parent process records. */
} XmParentProcessAnyRec ;
typedef struct
{
int process_type ; /* Common to all parent process records. */
XEvent * event ;
int action ;
String * params ;
Cardinal * num_params ;
} XmParentInputActionRec ;
typedef union
{
XmParentProcessAnyRec any ;
XmParentInputActionRec input_action ;
} XmParentProcessDataRec, * XmParentProcessData ;
enum{ XmPARENT_PROCESS_ANY, XmINPUT_ACTION
} ;
enum{ XmPARENT_ACTIVATE, XmPARENT_CANCEL
} ;
#define XmRETURN XmPARENT_ACTIVATE /* For Motif 1.1 BC. */
#define XmCANCEL XmPARENT_CANCEL /* For Motif 1.1 BC. */
/***********************************************************************
*
* BaselineP.h
*
***********************************************************************/
enum{ XmBASELINE_GET, XmBASELINE_SET
} ;
typedef struct _XmBaselineMargins
{
unsigned char get_or_set;
Dimension margin_top;
Dimension margin_bottom;
Dimension shadow;
Dimension highlight;
Dimension text_height;
Dimension margin_height;
} XmBaselineMargins;
typedef enum{ XmFOCUS_IN, XmFOCUS_OUT, XmENTER, XmLEAVE } XmFocusChange ;
typedef enum{
XmNOT_NAVIGABLE, XmCONTROL_NAVIGABLE,
XmTAB_NAVIGABLE, XmDESCENDANTS_NAVIGABLE,
XmDESCENDANTS_TAB_NAVIGABLE
} XmNavigability ;
/***********************************************************************
*
* Various proc types
*
***********************************************************************/
#define XmVoidProc XtProc
typedef Boolean (*XmParentProcessProc)( Widget, XmParentProcessData) ;
typedef void (*XmWidgetDispatchProc)( Widget, XEvent *, Mask) ;
typedef void (*XmGrabShellPopupProc)( Widget, Widget, XEvent *) ;
typedef void (*XmMenuPopupProc)( Widget, Widget, XEvent *) ;
typedef void (*XmMenuTraversalProc)( Widget, Widget, XmTraversalDirection) ;
typedef void (*XmResizeFlagProc)(
Widget,
#if NeedWidePrototypes
int) ;
#else
Boolean) ;
#endif /* NeedWidePrototypes */
typedef void (*XmRealizeOutProc)( Widget, Mask *, XSetWindowAttributes *) ;
typedef Boolean (*XmVisualChangeProc)( Widget, Widget, Widget) ;
typedef void (*XmTraversalProc)( Widget, XtPointer, XtPointer, int) ;
typedef void (*XmFocusMovedProc)( Widget, XtPointer, XtPointer) ;
typedef void (*XmCacheCopyProc)( XtPointer, XtPointer, size_t) ;
typedef void (*XmGadgetCacheProc)( XtPointer) ;
typedef int (*XmCacheCompareProc)( XtPointer, XtPointer) ;
typedef Boolean (*XmWidgetBaselineProc)(Widget, Dimension **, int *);
typedef Boolean (*XmWidgetDisplayRectProc)(Widget, XRectangle *);
typedef void (*XmWidgetMarginsProc)(Widget, XmBaselineMargins *);
typedef XmNavigability (*XmWidgetNavigableProc)( Widget) ;
typedef void (*XmFocusChangeProc)(Widget, XmFocusChange);
typedef Boolean (*XmSpatialPlacementProc)(Widget, Widget, unsigned char);
typedef Boolean (*XmSpatialRemoveProc)(Widget, Widget);
typedef Boolean (*XmSpatialTestFitProc)(Widget, Widget, Position, Position);
/****************
*
* Data structure for building a real translation table out of a
* virtual string.
*
****************/
typedef struct {
Modifiers mod;
char *key;
char *action;
} _XmBuildVirtualKeyStruct;
typedef struct _XmKeyBindingRec
{
KeySym keysym;
Modifiers modifiers;
} XmKeyBindingRec, *XmKeyBinding;
/***********************************************************************
*
* Types shared by text widgets
*
***********************************************************************/
typedef enum { XmsdLeft, XmsdRight } XmTextScanDirection;
/*
* This struct is for support of Insert Selection targets.
*/
typedef struct {
Atom selection;
Atom target;
} _XmTextInsertPair;
typedef struct {
XmTextPosition position; /* Starting position. */
XmHighlightMode mode; /* Highlighting mode for this position. */
} _XmHighlightRec;
typedef struct {
Cardinal number; /* Number of different highlight areas. */
Cardinal maximum; /* Number we've allocated space for. */
_XmHighlightRec *list; /* Pointer to array of highlight data. */
} _XmHighlightData;
typedef enum { XmDEST_SELECT, XmPRIM_SELECT } XmSelectType;
typedef struct {
Boolean done_status; /* completion status of insert selection */
Boolean success_status; /* success status of insert selection */
XmSelectType select_type; /* insert selection type */
XSelectionRequestEvent *event; /* event that initiated the
insert selection */
} _XmInsertSelect;
typedef struct {
XEvent *event;
String *params;
Cardinal *num_params;
} _XmTextActionRec;
typedef struct {
Widget widget;
XmTextPosition insert_pos;
int num_chars;
Time timestamp;
Boolean move;
} _XmTextDropTransferRec;
typedef struct {
XmTextPosition position;
Atom target;
Time time;
int num_chars;
int ref_count;
} _XmTextPrimSelect;
typedef struct {
Screen *screen;
XContext context;
unsigned char type;
} XmTextContextDataRec, *XmTextContextData;
enum {_XM_IS_DEST_CTX, _XM_IS_GC_DATA_CTX, _XM_IS_PIXMAP_CTX};
#define XmTEXT_DRAG_ICON_WIDTH 64
#define XmTEXT_DRAG_ICON_HEIGHT 64
#define XmTEXT_DRAG_ICON_X_HOT 10
#define XmTEXT_DRAG_ICON_Y_HOT 4
/***********************************************************************
*
* GeoUtilsP.h
*
***********************************************************************/
/* Defines used by geometry manager utilities */
enum{ XmGET_ACTUAL_SIZE = 1, XmGET_PREFERRED_SIZE,
XmGEO_PRE_SET, XmGEO_POST_SET
} ;
/* Defaults for Geometry Utility defines are always 0. */
enum{ XmGEO_EXPAND, XmGEO_CENTER,
XmGEO_PACK
} ;
enum{ XmGEO_PROPORTIONAL, XmGEO_AVERAGING,
XmGEO_WRAP
} ;
enum{ XmGEO_ROW_MAJOR, XmGEO_COLUMN_MAJOR
} ;
/* XmGEO_COLUMN_MAJOR is not yet supported. */
typedef struct _XmGeoMatrixRec *XmGeoMatrix ;
typedef union _XmGeoMajorLayoutRec *XmGeoMajorLayout ;
typedef struct _XmKidGeometryRec
{
Widget kid; /* ptr to kid */
XtWidgetGeometry box; /* kid geo box */
} XmKidGeometryRec, *XmKidGeometry;
typedef void (*XmGeoArrangeProc)( XmGeoMatrix,
#if NeedWidePrototypes
int, int,
#else
Position, Position,
#endif /* NeedWidePrototypes */
Dimension *, Dimension *) ;
typedef Boolean (*XmGeoExceptProc)( XmGeoMatrix ) ;
typedef void (*XmGeoExtDestructorProc)( XtPointer ) ;
typedef void (*XmGeoSegmentFixUpProc)( XmGeoMatrix, int, XmGeoMajorLayout,
XmKidGeometry) ;
typedef struct
{ Boolean end ; /* Flag to mark end of rows. */
XmGeoSegmentFixUpProc fix_up ;/* Used for non-ordinary layouts. */
Dimension even_width ; /* If non-zero, set all boxes to same width.*/
Dimension even_height ;/* If non-zero, set all boxes to same height*/
Dimension min_height ; /* Minimum height, if stretch_height TRUE. */
Boolean stretch_height ;/* Stretch height to fill vertically. */
Boolean uniform_border ;/* Enforce on all kids this row, dflt F. */
Dimension border ; /* Value to use if uniform_border set. */
unsigned char fill_mode ; /* Possible values: XmGEO_PACK, XmGEO_CENTER,*/
/* or XmGEO_EXPAND (default). */
unsigned char fit_mode ; /* Method for fitting boxes into space, */
/* XmGEO_PROPORTIONAL (dflt), XmGEO_AVERAGING, or XmGEO_WRAP.*/
Boolean sticky_end ; /* Last box in row sticks to edge, dflt F. */
Dimension space_above ; /* Between-line spacing, default 0. */
Dimension space_end ; /* End spacing (XmGEO_CENTER), default 0. */
Dimension space_between ; /* Internal spacing, default 0. */
Dimension max_box_height ;/* Set during arrange routine. */
Dimension boxes_width ; /* Set during arrange routine. */
Dimension fill_width ; /* Set during arrange routine. */
Dimension box_count ; /* Set during arrange routine. */
} XmGeoRowLayoutRec, *XmGeoRowLayout ;
typedef struct
{ Boolean end ; /* Flag to mark end of columns. */
XmGeoSegmentFixUpProc fix_up ;/* Used for non-ordinary layouts. */
Dimension even_height ;/* If non-zero, set all boxes to same height*/
Dimension even_width ; /* If non-zero, set all boxes to same width.*/
Dimension min_width ; /* Minimum width, if stretch_width TRUE. */
Boolean stretch_width ;/* Stretch width to fill horizontally. */
Boolean uniform_border ;/* Enforce on all kids this row, dflt F. */
Dimension border ; /* Value to use if uniform_border set. */
unsigned char fill_mode ; /* Possible values: XmGEO_PACK, XmGEO_CENTER,*/
/* or XmGEO_EXPAND (default). */
unsigned char fit_mode ; /* Method for fitting boxes into space, */
/* XmGEO_PROPORTIONAL (dflt), XmGEO_AVERAGING, or XmGEO_WRAP.*/
Boolean sticky_end ; /* Last box in row sticks to edge, dflt F. */
Dimension space_left ; /* Between-column spacing, default 0. */
Dimension space_end ; /* End spacing (XmGEO_CENTER), default 0. */
Dimension space_between ; /* Internal spacing, default 0. */
Dimension max_box_width ; /* Set during arrange routine. */
Dimension boxes_height ; /* Set during arrange routine. */
Dimension fill_height ; /* Set during arrange routine. */
Dimension box_count ; /* Set during arrange routine. */
} XmGeoColumnLayoutRec, *XmGeoColumnLayout ;
typedef union _XmGeoMajorLayoutRec
{
XmGeoRowLayoutRec row ;
XmGeoColumnLayoutRec col ;
} XmGeoMajorLayoutRec ;
typedef struct _XmGeoMatrixRec
{ Widget composite ; /* Widget managing layout. */
Widget instigator ; /* Widget initiating re-layout. */
XtWidgetGeometry instig_request ;/* Geometry layout request of instigatr.*/
XtWidgetGeometry parent_request ;/* Subsequent layout request to parent. */
XtWidgetGeometry *in_layout ; /* Geo. of instig. in layout (after Get).*/
XmKidGeometry boxes ;/* Array of boxes, lines separated by NULL record.*/
XmGeoMajorLayout layouts ; /* Array of major_order format info. */
Dimension margin_w ;/*Sum of margin, highlight, & shadow thickness.*/
Dimension margin_h ;/*Sum of margin, highlight, & shadow thickness.*/
Boolean stretch_boxes ; /* Set during arrange routine. */
Boolean uniform_border ;/* Enforce on all kids, default FALSE. */
Dimension border ; /* Value to use if uniform_border TRUE. */
Dimension max_major ; /* Set during arrange routine. */
Dimension boxes_minor ; /* Set during arrange routine. */
Dimension fill_minor ; /* Set during arrange routine. */
Dimension width ; /* Set during arrange routine. */
Dimension height ; /* Set during arrange routine. */
XmGeoExceptProc set_except ;
XmGeoExceptProc almost_except ;
XmGeoExceptProc no_geo_request ;
XtPointer extension ;
XmGeoExtDestructorProc ext_destructor ;
XmGeoArrangeProc arrange_boxes ;/* For user-defined arrangement routine. */
unsigned char major_order ;
} XmGeoMatrixRec;
typedef XmGeoMatrix (*XmGeoCreateProc)( Widget, Widget, XtWidgetGeometry *) ;
/***********************************************************************
*
* XmInheritP.h
*
***********************************************************************/
#define XmInheritCallbackProc ((XtCallbackProc) _XtInherit)
#define XmInheritTraversalProc ((XmTraversalProc) _XtInherit)
#define XmInheritParentProcess ((XmParentProcessProc) _XtInherit)
#define XmInheritWidgetProc ((XtWidgetProc) _XtInherit)
#define XmInheritMenuProc ((XmMenuProc) _XtInherit)
#define XmInheritTranslations XtInheritTranslations
#define XmInheritCachePart ((XmCacheClassPartPtr) _XtInherit)
#define XmInheritBaselineProc ((XmWidgetBaselineProc) _XtInherit)
#define XmInheritDisplayRectProc ((XmWidgetDisplayRectProc) _XtInherit)
#define XmInheritMarginsProc ((XmWidgetMarginsProc) _XtInherit)
#define XmInheritGeoMatrixCreate ((XmGeoCreateProc) _XtInherit)
#define XmInheritFocusMovedProc ((XmFocusMovedProc) _XtInherit)
#define XmInheritClass ((WidgetClass) &_XmInheritClass)
#define XmInheritInitializePrehook ((XtInitProc) _XtInherit)
#define XmInheritSetValuesPrehook ((XtSetValuesFunc) _XtInherit)
#define XmInheritGetValuesPrehook ((XtArgsProc) _XtInherit)
#define XmInheritInitializePosthook ((XtInitProc) _XtInherit)
#define XmInheritSetValuesPosthook ((XtSetValuesFunc) _XtInherit)
#define XmInheritGetValuesPosthook ((XtArgsProc) _XtInherit)
#define XmInheritSecObjectCreate ((XtInitProc) _XtInherit)
#define XmInheritGetSecResData ((XmGetSecResDataFunc) _XtInherit)
#define XmInheritInputDispatch ((XmWidgetDispatchProc) _XtInherit)
#define XmInheritVisualChange ((XmVisualChangeProc) _XtInherit)
#define XmInheritArmAndActivate ((XtActionProc) _XtInherit)
#define XmInheritActionProc ((XtActionProc) _XtInherit)
#define XmInheritFocusChange ((XmFocusChangeProc) _XtInherit)
#define XmInheritWidgetNavigable ((XmWidgetNavigableProc) _XtInherit)
#define XmInheritClassPartInitPrehook ((XtWidgetClassProc) _XtInherit)
#define XmInheritClassPartInitPosthook ((XtWidgetClassProc) _XtInherit)
#define XmInheritBorderHighlight ((XtWidgetProc) _XtInherit)
#define XmInheritBorderUnhighlight ((XtWidgetProc) _XtInherit)
/************************************************************************
*
* Fast subclassing macros and definitions
*
************************************************************************/
/* WARNING: Application subclasses which choose to use fast
* subclassing must use only those bits between
* 192 (XmFIRST_APPLICATION_SUBCLASS_BIT) and 255.
* All other fast subclass bits are reserved for
* future use. Use of reserved fast subclass bits
* will cause binary compatibility breaks with
* future Motif versions.
*/
#define XmFIRST_APPLICATION_SUBCLASS_BIT 192
enum{ XmCASCADE_BUTTON_BIT = 1, XmCASCADE_BUTTON_GADGET_BIT,
XmCOMMAND_BOX_BIT, XmDIALOG_SHELL_BIT,
XmLIST_BIT, XmFORM_BIT,
XmTEXT_FIELD_BIT, XmGADGET_BIT,
XmLABEL_BIT, XmLABEL_GADGET_BIT,
XmMAIN_WINDOW_BIT, XmMANAGER_BIT,
XmMENU_SHELL_BIT, XmDRAWN_BUTTON_BIT,
XmPRIMITIVE_BIT, XmPUSH_BUTTON_BIT,
XmPUSH_BUTTON_GADGET_BIT, XmROW_COLUMN_BIT,
XmSCROLL_BAR_BIT, XmSCROLLED_WINDOW_BIT,
XmSELECTION_BOX_BIT, XmSEPARATOR_BIT,
XmSEPARATOR_GADGET_BIT, XmTEXT_BIT,
XmTOGGLE_BUTTON_BIT, XmTOGGLE_BUTTON_GADGET_BIT,
XmDROP_TRANSFER_BIT, XmDROP_SITE_MANAGER_BIT,
XmDISPLAY_BIT, XmSCREEN_BIT,
XmPRINT_SHELL_BIT, XmARROW_BUTTON_BIT,
XmARROW_BUTTON_GADGET_BIT, XmBULLETIN_BOARD_BIT,
XmDRAWING_AREA_BIT, XmFILE_SELECTION_BOX_BIT,
XmFRAME_BIT, XmMESSAGE_BOX_BIT,
XmSASH_BIT, XmSCALE_BIT,
XmPANED_WINDOW_BIT, XmVENDOR_SHELL_BIT,
XmCLIP_WINDOW_BIT, XmDRAG_ICON_BIT,
XmTEAROFF_BUTTON_BIT, XmDRAG_OVER_SHELL_BIT,
XmDRAG_CONTEXT_BIT, XmCONTAINER_BIT,
XmICONGADGET_BIT, XmNOTEBOOK_BIT,
XmCSTEXT_BIT, XmGRAB_SHELL_BIT,
XmCOMBO_BOX_BIT, XmSPINBOX_BIT,
XmICONHEADER_BIT,
XmBUTTONBOX_BIT,
XmDATAFIELD_BIT,
XmI18LIST_BIT,
XmEXT18LIST_BIT,
XmMULTI_LIST_BIT = XmEXT18LIST_BIT,
XmCOLORSELECTOR_BIT,
XmICONBOX_BIT,
XmICONBUTTON_BIT,
XmTABLE_BIT,
XmTABSTACK_BIT,
XmTREE_BIT,
XmTABBOX_BIT,
XmCOLUMN_BIT,
XmFONTSELECTOR_BIT,
XmCOMBINATION_BOX_2_BIT,
XmDROP_DOWN_BIT = XmCOMBINATION_BOX_2_BIT,
XmFAST_SUBCLASS_TAIL_BIT /* New entries precede this. */
} ;
#define XmLAST_FAST_SUBCLASS_BIT (XmFAST_SUBCLASS_TAIL_BIT - 1)
#undef XmIsCascadeButton
#define XmIsCascadeButton(w) \
(_XmIsFastSubclass(XtClass(w), XmCASCADE_BUTTON_BIT))
#undef XmIsCascadeButtonGadget
#define XmIsCascadeButtonGadget(w) \
(_XmIsFastSubclass(XtClass(w), XmCASCADE_BUTTON_GADGET_BIT))
#undef XmIsClipWindow
#define XmIsClipWindow(w) \
(_XmIsFastSubclass(XtClass(w), XmCLIP_WINDOW_BIT))
#undef XmIsComboBox
#define XmIsComboBox(w) \
(_XmIsFastSubclass(XtClass(w), XmCOMBO_BOX_BIT))
#undef XmIsCommandBox
#define XmIsCommandBox(w) \
(_XmIsFastSubclass(XtClass(w), XmCOMMAND_BOX_BIT))
#undef XmIsContainer
#define XmIsContainer(w) \
(_XmIsFastSubclass(XtClass(w), XmCONTAINER_BIT))
#undef XmIsDialogShell
#define XmIsDialogShell(w) \
(_XmIsFastSubclass(XtClass(w), XmDIALOG_SHELL_BIT))
#undef XmIsDisplay
#define XmIsDisplay(w) \
(_XmIsFastSubclass(XtClass(w), XmDISPLAY_BIT))
#undef XmIsGrabShell
#define XmIsGrabShell(w) \
(_XmIsFastSubclass(XtClass(w), XmGRAB_SHELL_BIT))
#undef XmIsIconGadget
#define XmIsIconGadget(w) \
(_XmIsFastSubclass(XtClass(w), XmICONGADGET_BIT))
#undef XmIsList
#define XmIsList(w) \
(_XmIsFastSubclass(XtClass(w), XmLIST_BIT))
#undef XmIsForm
#define XmIsForm(w) \
(_XmIsFastSubclass(XtClass(w), XmFORM_BIT))
#undef XmIsTextField
#define XmIsTextField(w) \
(_XmIsFastSubclass(XtClass(w), XmTEXT_FIELD_BIT))
#undef XmIsGadget
#define XmIsGadget(w) \
(_XmIsFastSubclass(XtClass(w), XmGADGET_BIT))
#undef XmIsLabel
#define XmIsLabel(w) \
(_XmIsFastSubclass(XtClass(w), XmLABEL_BIT))
#undef XmIsLabelGadget
#define XmIsLabelGadget(w) \
(_XmIsFastSubclass(XtClass(w), XmLABEL_GADGET_BIT))
#undef XmIsMainWindow
#define XmIsMainWindow(w) \
(_XmIsFastSubclass(XtClass(w), XmMAIN_WINDOW_BIT))
#undef XmIsManager
#define XmIsManager(w) \
(_XmIsFastSubclass(XtClass(w), XmMANAGER_BIT))
#undef XmIsMenuShell
#define XmIsMenuShell(w) \
(_XmIsFastSubclass(XtClass(w), XmMENU_SHELL_BIT))
#undef XmIsNotebook
#define XmIsNotebook(w) \
(_XmIsFastSubclass(XtClass(w), XmNOTEBOOK_BIT))
#undef XmIsDragIcon
#define XmIsDragIcon(w) \
(_XmIsFastSubclass(XtClass(w), XmDRAG_ICON_BIT))
#undef XmIsDropSiteManager
#define XmIsDropSiteManager(w) \
(_XmIsFastSubclass(XtClass(w), XmDROP_SITE_MANAGER_BIT))
#undef XmIsDropTransfer
#define XmIsDropTransfer(w) \
(_XmIsFastSubclass(XtClass(w), XmDROP_TRANSFER_BIT))
#undef XmIsDragOverShell
#define XmIsDragOverShell(w) \
(_XmIsFastSubclass(XtClass(w), XmDRAG_OVER_SHELL_BIT))
#undef XmIsDragContext
#define XmIsDragContext(w) \
(_XmIsFastSubclass(XtClass(w), XmDRAG_CONTEXT_BIT))
#undef XmIsDrawnButton
#define XmIsDrawnButton(w) \
(_XmIsFastSubclass(XtClass(w), XmDRAWN_BUTTON_BIT))
#undef XmIsPrimitive
#define XmIsPrimitive(w) \
(_XmIsFastSubclass(XtClass(w), XmPRIMITIVE_BIT))
#undef XmIsPushButton
#define XmIsPushButton(w) \
(_XmIsFastSubclass(XtClass(w), XmPUSH_BUTTON_BIT))
#undef XmIsPushButtonGadget
#define XmIsPushButtonGadget(w) \
(_XmIsFastSubclass(XtClass(w), XmPUSH_BUTTON_GADGET_BIT))
#undef XmIsRowColumn
#define XmIsRowColumn(w) \
(_XmIsFastSubclass(XtClass(w), XmROW_COLUMN_BIT))
#undef XmIsScreen
#define XmIsScreen(w) \
(_XmIsFastSubclass(XtClass(w), XmSCREEN_BIT))
#undef XmIsScrollBar
#define XmIsScrollBar(w) \
(_XmIsFastSubclass(XtClass(w), XmSCROLL_BAR_BIT))
#undef XmIsScrolledWindow
#define XmIsScrolledWindow(w) \
(_XmIsFastSubclass(XtClass(w), XmSCROLLED_WINDOW_BIT))
#undef XmIsSelectionBox
#define XmIsSelectionBox(w) \
(_XmIsFastSubclass(XtClass(w), XmSELECTION_BOX_BIT))
#undef XmIsSeparator
#define XmIsSeparator(w) \
(_XmIsFastSubclass(XtClass(w), XmSEPARATOR_BIT))
#undef XmIsSeparatorGadget
#define XmIsSeparatorGadget(w) \
(_XmIsFastSubclass(XtClass(w), XmSEPARATOR_GADGET_BIT))
#undef XmIsSpinButton
#define XmIsSpinButton(w) \
(_XmIsFastSubclass(XtClass(w), XmSPINBUTTON_BIT))
#undef XmIsText
#define XmIsText(w) \
(_XmIsFastSubclass(XtClass(w), XmTEXT_BIT))
#undef XmIsTearOffButton
#define XmIsTearOffButton(w) \
(_XmIsFastSubclass(XtClass(w), XmTEAROFF_BUTTON_BIT))
#undef XmIsToggleButton
#define XmIsToggleButton(w) \
(_XmIsFastSubclass(XtClass(w), XmTOGGLE_BUTTON_BIT))
#undef XmIsToggleButtonGadget
#define XmIsToggleButtonGadget(w) \
(_XmIsFastSubclass(XtClass(w), XmTOGGLE_BUTTON_GADGET_BIT))
#undef XmIsPrintShell
#define XmIsPrintShell(w) \
(_XmIsFastSubclass(XtClass(w), XmPRINT_SHELL_BIT))
#undef XmIsArrowButton
#define XmIsArrowButton(w) \
(_XmIsFastSubclass(XtClass(w), XmARROW_BUTTON_BIT))
#undef XmIsArrowButtonGadget
#define XmIsArrowButtonGadget(w) \
(_XmIsFastSubclass(XtClass(w), XmARROW_BUTTON_GADGET_BIT))
#undef XmIsBulletinBoard
#define XmIsBulletinBoard(w) \
(_XmIsFastSubclass(XtClass(w), XmBULLETIN_BOARD_BIT))
#undef XmIsDrawingArea
#define XmIsDrawingArea(w) \
(_XmIsFastSubclass(XtClass(w), XmDRAWING_AREA_BIT))
#undef XmIsFileSelectionBox
#define XmIsFileSelectionBox(w) \
(_XmIsFastSubclass(XtClass(w), XmFILE_SELECTION_BOX_BIT))
#undef XmIsFrame
#define XmIsFrame(w) \
(_XmIsFastSubclass(XtClass(w), XmFRAME_BIT))
#undef XmIsMessageBox
#define XmIsMessageBox(w) \
(_XmIsFastSubclass(XtClass(w), XmMESSAGE_BOX_BIT))
#undef XmIsSash
#define XmIsSash(w) \
(_XmIsFastSubclass(XtClass(w), XmSASH_BIT))
#undef XmIsScale
#define XmIsScale(w) \
(_XmIsFastSubclass(XtClass(w), XmSCALE_BIT))
#undef XmIsPanedWindow
#define XmIsPanedWindow(w) \
(_XmIsFastSubclass(XtClass(w), XmPANED_WINDOW_BIT))
#undef XmIsCSText
#define XmIsCSText(w) \
(_XmIsFastSubclass(XtClass(w), XmCSTEXT_BIT))
#undef XmIsCombinationBox2
#define XmIsCombinationBox2(w) \
(_XmIsFastSubclass(XtClass(w), XmCOMBINATION_BOX_2_BIT))
#undef XmIsDropDown
#define XmIsDropDown(w) \
(_XmIsFastSubclass(XtClass(w), XmDROP_DOWN_BIT))
#undef XmIsExt18List
#define XmIsExt18List(w) \
(_XmIsFastSubclass(XtClass(w), XmEXT18LIST_BIT))
#undef XmIsMultiList
#define XmIsMultiList(w) \
(_XmIsFastSubclass(XtClass(w), XmMULTI_LIST_BIT))
/************************************************************************
*
* ResolveP.h
*
************************************************************************/
/* Widget class indices used with XmPartOffset and XmField macros */
#define XmObjectIndex 0
#define ObjectIndex XmObjectIndex
#define XmRectObjIndex (XmObjectIndex + 1)
#define RectObjIndex XmRectObjIndex
#define XmWindowObjIndex (XmRectObjIndex + 1)
#define WindowObjIndex XmWindowObjIndex
#define XmCoreIndex 0
#define CoreIndex XmCoreIndex
#define XmCompositeIndex (XmWindowObjIndex + 2)
#define CompositeIndex XmCompositeIndex
#define XmConstraintIndex (XmCompositeIndex + 1)
#define ConstraintIndex XmConstraintIndex
#define XmGadgetIndex (XmRectObjIndex + 1)
#define XmPrimitiveIndex (XmWindowObjIndex + 2)
#define XmManagerIndex (XmConstraintIndex + 1)
#define XmArrowBIndex (XmPrimitiveIndex + 1)
#define XmArrowButtonIndex XmArrowBIndex
#define XmLabelIndex (XmPrimitiveIndex + 1)
#define XmListIndex (XmPrimitiveIndex + 1)
#define XmScrollBarIndex (XmPrimitiveIndex + 1)
#define XmSeparatorIndex (XmPrimitiveIndex + 1)
#define XmTextIndex (XmPrimitiveIndex + 1)
#define XmTextFieldIndex (XmPrimitiveIndex + 1)
#define XmCSTextIndex (XmPrimitiveIndex + 1)
#define XmCascadeBIndex (XmLabelIndex + 1)
#define XmCascadeButtonIndex XmCascadeBIndex
#define XmDrawnBIndex (XmLabelIndex + 1)
#define XmDrawnButtonIndex XmDrawnBIndex
#define XmPushBIndex (XmLabelIndex + 1)
#define XmPushButtonIndex XmPushBIndex
#define XmToggleBIndex (XmLabelIndex + 1)
#define XmToggleButtonIndex XmToggleBIndex
#define XmTearOffButtonIndex (XmPushBIndex + 1)
#define XmArrowBGIndex (XmGadgetIndex + 1)
#define XmArrowButtonGadgetIndex XmArrowBGIndex
#define XmLabelGIndex (XmGadgetIndex + 1)
#define XmLabelGadgetIndex XmLabelGIndex
#define XmSeparatoGIndex (XmGadgetIndex + 1)
#define XmSeparatorGadgetIndex XmSeparatoGIndex
#define XmCascadeBGIndex (XmLabelGIndex + 1)
#define XmCascadeButtonGadgetIndex XmCascadeBGIndex
#define XmPushBGIndex (XmLabelGIndex + 1)
#define XmPushButtonGadgetIndex XmPushBGIndex
#define XmToggleBGIndex (XmLabelGIndex + 1)
#define XmToggleButtonGadgetIndex XmToggleBGIndex
#define XmIconGadgetIndex (XmGadgetIndex + 1)
#define XmBulletinBIndex (XmManagerIndex + 1)
#define XmBulletinBoardIndex XmBulletinBIndex
#define XmDrawingAIndex (XmManagerIndex + 1)
#define XmDrawingAreaIndex XmDrawingAIndex
#define XmClipWindowIndex (XmDrawingAIndex + 1)
#define XmFrameIndex (XmManagerIndex + 1)
#define XmPanedWIndex (XmManagerIndex + 1)
#define XmPanedWindowIndex XmPanedWIndex
#define XmSashIndex (XmPrimitiveIndex + 1)
#define XmRowColumnIndex (XmManagerIndex + 1)
#define XmScaleIndex (XmManagerIndex + 1)
#define XmScrolledWIndex (XmManagerIndex + 1)
#define XmScrolledWindowIndex XmScrolledWIndex
#define XmFormIndex (XmBulletinBIndex + 1)
#define XmMessageBIndex (XmBulletinBIndex + 1)
#define XmMessageBoxIndex XmMessageBIndex
#define XmSelectioBIndex (XmBulletinBIndex + 1)
#define XmSelectionBoxIndex XmSelectioBIndex
#define XmMainWIndex (XmScrolledWIndex + 1)
#define XmMainWindowIndex XmMainWIndex
#define XmCommandIndex (XmSelectioBIndex + 1)
#define XmFileSBIndex (XmSelectioBIndex + 1)
#define XmFileSelectionBoxIndex XmFileSBIndex
#define XmShellIndex (XmCompositeIndex + 1)
#define ShellIndex XmShellIndex
#define XmOverrideShellIndex (XmShellIndex + 1)
#define OverrideShellIndex XmOverrideShellIndex
#define XmWMShellIndex (XmShellIndex + 1)
#define WMShellIndex XmWMShellIndex
#define XmVendorShellIndex (XmWMShellIndex + 1)
#define VendorShellIndex XmVendorShellIndex
#define XmTransientShellIndex (XmVendorShellIndex + 1)
#define TransientShellIndex XmTransientShellIndex
#define XmTopLevelShellIndex (XmVendorShellIndex + 1)
#define TopLevelShellIndex XmTopLevelShellIndex
#define XmApplicationShellIndex (XmTopLevelShellIndex + 1)
#define ApplicationShellIndex XmApplicationShellIndex
#define XmGrabShellIndex (XmVendorShellIndex + 1)
#define XmDisplayIndex (XmApplicationShellIndex + 1)
#define XmDialogSIndex (XmTransientShellIndex + 1)
#define XmDialogShellIndex XmDialogSIndex
#define XmMenuShellIndex (XmOverrideShellIndex + 1)
#define XmContainerIndex (XmManagerIndex + 1)
#define XmNotebookIndex (XmManagerIndex + 1)
#define XmSpinButtonIndex (XmManagerIndex + 1)
#define XmComboBoxIndex (XmManagerIndex + 1)
#define XmDragIconIndex (XmRectObjIndex + 1)
#define XmDropSiteManagerIndex (XmObjectIndex + 1)
#define XmDropTransferIndex (XmObjectIndex + 1)
#define XmDragOverShellIndex (XmVendorShellIndex + 1)
#define XmDragContextIndex (XmCoreIndex + 1)
/*
* XmOFFSETBITS is the number of bits used for the part offset within the
* resource_offset field in the XmPartResource struct. XmOFFSETMASK is the
* bitmask to mask for the part offset.
*/
#define XmOFFSETBITS (sizeof(Cardinal)*8/2)
#define XmOFFSETMASK ((1<<XmOFFSETBITS)-1)
typedef struct _XmPartResource {
String resource_name; /* Resource name */
String resource_class; /* Resource class */
String resource_type; /* Representation type desired */
Cardinal resource_size; /* Size in bytes of representation */
Cardinal resource_offset; /* Index within & offset within part */
String default_type; /* representation type of specified default */
XtPointer default_addr; /* Address of default resource */
} XmPartResource;
#if (defined(__STDC__) && !defined(UNIXCPP)) || defined(__cplusplus) || defined(ANSICPP)
# define XmPartOffset(part, variable) \
((part##Index) << XmOFFSETBITS) + XtOffsetOf( part##Part, variable)
# define XmConstraintPartOffset(part, variable) \
((part##Index) << XmOFFSETBITS) + \
XtOffsetOf( part##ConstraintPart, variable)
# define XmGetPartOffset(r, offset) \
((r)->resource_offset & XmOFFSETMASK) + \
(*(offset))[(r)->resource_offset >> XmOFFSETBITS]
# define XmField(widget, offsetrecord, part, variable, type) \
(*(type *)(((char *) (widget)) + offsetrecord[part##Index] + \
XtOffsetOf( part##Part, variable)))
# define XmConstraintField(widget, offsetrecord, part, variable, type) \
(*(type *)(((char *) (widget)->core.constraints) + \
offsetrecord[part##Index] + \
XtOffsetOf( part##ConstraintPart, variable)))
#else
# define XmPartOffset(part, variable) \
((part/**/Index) << XmOFFSETBITS) + XtOffsetOf( part/**/Part, variable)
# define XmConstraintPartOffset(part, variable) \
((part/**/Index) << XmOFFSETBITS) + \
XtOffsetOf( part/**/ConstraintPart, variable)
# define XmGetPartOffset(r, offset) \
((r)->resource_offset & XmOFFSETMASK) + \
(*(offset))[(r)->resource_offset >> XmOFFSETBITS];
# define XmField(widget, offsetrecord, part, variable, type) \
(*(type *)(((char *) (widget)) + offsetrecord[part/**/Index] + \
XtOffsetOf( part/**/Part, variable)))
# define XmConstraintField(widget, offsetrecord, part, variable, type) \
(*(type *)(((char *) (widget)->core.constraints) + \
offsetrecord[part/**/Index] + \
XtOffsetOf( part/**/ConstraintPart, variable)))
#endif
/***********************************************************************
*
* RegionP.h
*
* This structure must match the opaque libX Region structure.
***********************************************************************/
typedef struct {
short x1, x2, y1, y2;
} XmRegionBox;
typedef struct _XmRegion {
long size;
long numRects;
XmRegionBox *rects;
XmRegionBox extents;
} XmRegionRec, *XmRegion;
/******** ResConvert.c ********/
enum{ XmLABEL_FONTLIST = 1, XmBUTTON_FONTLIST,
XmTEXT_FONTLIST
} ;
enum {
XmLABEL_RENDER_TABLE = 1,
XmBUTTON_RENDER_TABLE,
XmTEXT_RENDER_TABLE
} ;
/**** Private Defines, Typedefs, and Function Declarations for XmString.c ****/
/* For _XmStringIndexCacheTag() and _XmStringCacheTag() length. */
#define XmSTRING_TAG_STRLEN -1
/* For _XmStringGetNextTabWidth. EOS = End Of String. */
typedef enum { XmTAB_NEXT, XmTAB_NEWLINE, XmTAB_EOS } NextTabResult;
/******** End Private Function Declarations ********/
/******** Traversal.c ********/
#define XmTAB_ANY ((XmNavigationType) 255)
#define XmNONE_OR_BC ((XmNavigationType) 254)
typedef struct _XmFocusMovedCallbackStruct{
int reason;
XEvent *event;
Boolean cont;
Widget old_focus;
Widget new_focus;
unsigned char focus_policy;
XmTraversalDirection direction;
} XmFocusMovedCallbackStruct, *XmFocusMovedCallback;
typedef struct _XmFocusDataRec *XmFocusData;
/******** ResInd.c ********/
typedef enum {
XmPARSE_ERROR, XmPARSE_NO_UNITS, XmPARSE_UNITS_OK
} XmParseResult;
/******** Function Declarations for Xme ********/
/* GadgetUtil.c */
extern void XmeRedisplayGadgets(
Widget w,
register XEvent *event,
Region region) ;
extern void XmeConfigureObject(
Widget g,
#if NeedWidePrototypes
int x,
int y,
int width,
int height,
int border_width) ;
#else
Position x,
Position y,
Dimension width,
Dimension height,
Dimension border_width) ;
#endif /* NeedWidePrototypes */
/* Traversal.c */
extern void XmeNavigChangeManaged(
Widget wid) ;
extern Boolean XmeFocusIsInShell(
Widget wid) ;
/* ResInd.c */
extern XmImportOperator XmeToHorizontalPixels(
Widget widget,
int offset,
XtArgVal *value) ;
extern XmImportOperator XmeToVerticalPixels(
Widget widget,
int offset,
XtArgVal *value) ;
extern void XmeFromHorizontalPixels(
Widget widget,
int offset,
XtArgVal *value) ;
extern void XmeFromVerticalPixels(
Widget widget,
int offset,
XtArgVal *value) ;
extern XmParseResult XmeParseUnits(String spec, int *unitType);
/* DragIcon. c */
extern Widget XmeGetTextualDragIcon(Widget w) ;
/* BulletinB.c */
extern Widget XmeCreateClassDialog(
WidgetClass w_class,
Widget ds_p,
String name,
ArgList bb_args,
Cardinal bb_n ) ;
/* ImageCache.c */
extern Boolean XmeGetPixmapData(
Screen *screen,
Pixmap pixmap,
char **image_name,
int *depth,
Pixel *foreground,
Pixel *background,
int *hot_x,
int *hot_y,
unsigned int *width,
unsigned int *height) ;
extern Pixmap XmeGetMask(
Screen *screen,
char *image_name) ;
/* VaSimple.c */
extern int XmeCountVaListSimple(va_list al);
extern Widget XmeVLCreateWidget(
char *name,
WidgetClass wc,
Widget parent,
Boolean managed,
va_list al,
int count);
/* VirtKeys.c */
extern int XmeVirtualToActualKeysyms(
Display *dpy,
KeySym virtKeysym,
XmKeyBinding *actualKeyData) ;
/* Screen.c */
extern Cursor XmeGetNullCursor(Widget w) ;
extern void XmeQueryBestCursorSize(
Widget w,
Dimension *width,
Dimension *height );
/* Xm.c */
extern void XmeWarning( Widget w, char *message ) ;
/* ResConvert.c */
extern XmFontList XmeGetDefaultRenderTable(
Widget w,
#if NeedWidePrototypes
unsigned int fontListType );
#else
unsigned char fontListType );
#endif /* NeedWidePrototypes */
extern Boolean XmeNamesAreEqual(
register char *in_str,
register char *test_str );
/* Primitive.c */
extern void XmeResolvePartOffsets(
WidgetClass w_class,
XmOffsetPtr *offset,
XmOffsetPtr *constraint_offset ) ;
/* XmString.c */
extern Boolean XmeStringIsValid( XmString string ) ;
extern void XmeSetWMShellTitle(
XmString xmstr,
Widget shell) ;
extern XmIncludeStatus XmeGetDirection(XtPointer *in_out,
XtPointer text_end,
XmTextType type,
XmStringTag locale_tag,
XmParseMapping entry,
int pattern_length,
XmString *str_include,
XtPointer call_data);
extern XmIncludeStatus XmeGetNextCharacter(XtPointer *in_out,
XtPointer text_end,
XmTextType type,
XmStringTag locale_tag,
XmParseMapping entry,
int pattern_length,
XmString *str_include,
XtPointer call_data);
extern XmStringComponentType XmeStringGetComponent(_XmStringContext context,
Boolean update_context,
Boolean copy_data,
unsigned int *length,
XtPointer *value);
/* XmFontList.c */
extern Boolean XmeRenderTableGetDefaultFont(
XmFontList fontlist,
XFontStruct **font_struct ) ;
/* GMUtils.c */
extern XtGeometryResult XmeReplyToQueryGeometry(
Widget widget,
XtWidgetGeometry * intended,
XtWidgetGeometry * desired) ;
/* Color.c */
extern void XmeGetDefaultPixel(
Widget widget,
int type,
int offset,
XrmValue *value) ;
/* Xmos.c */
extern String XmeGetHomeDirName(void) ;
extern int XmeMicroSleep(
long secs) ;
extern XmString XmeGetLocalizedString(
char *reserved,
Widget widget,
char *resource,
String string) ;
extern void XmRenderTableGetDefaultFontExtents(
XmRenderTable rendertable,
int *height,
int *ascent,
int *descent) ;
/******** End Function Declarations for Xme ********/
/******** ********/
#ifdef __cplusplus
} /* Close scope of 'extern "C"' declaration which encloses file. */
#endif
#include <Xm/BaseClassP.h>
/***********************************************************************
*
* Motif 1.2 BC compilation.
*
***********************************************************************/
#ifndef NO_XM_1_2_BC
/*
* These routines have all been made obsolete by public Xme functions.
* The declarations here are intended solely as an aid to porting,
* and will be removed in a future release. All applications should
* name the Xme methods directly.
*
* _XmVirtualToActualKeysym, _XmResizeObject, and _XmMoveObject have
* Xme counterparts with slightly different semantics or parameters,
* so a simple rename will not work for them.
*/
#define _XmClearBorder XmeClearBorder
#define _XmConfigureObject XmeConfigureObject
#define _XmDrawArrow XmeDrawArrow
#define _XmDrawDiamond XmeDrawDiamond
#define _XmDrawSeparator XmeDrawSeparator
#define _XmDrawShadows XmeDrawShadows
#define _XmDrawSimpleHighlight XmeDrawHighlight
#define _XmFontListGetDefaultFont XmeRenderTableGetDefaultFont
#define _XmFromHorizontalPixels XmeFromHorizontalPixels
#define _XmFromVerticalPixels XmeFromVerticalPixels
#define _XmGMReplyToQueryGeometry XmeReplyToQueryGeometry
#define _XmGetDefaultFontList XmeGetDefaultRenderTable
#define _XmGetMaxCursorSize XmeQueryBestCursorSize
#define _XmGetNullCursor XmeGetNullCursor
#define _XmGetTextualDragIcon XmeGetTextualDragIcon
#define _XmInputInGadget XmObjectAtPoint
#define _XmMicroSleep XmeMicroSleep
#define _XmNavigChangeManaged XmeNavigChangeManaged
#define _XmOSGetHomeDirName XmeGetHomeDirName
#define _XmOSGetLocalizedString XmeGetLocalizedString
#define _XmRedisplayGadgets XmeRedisplayGadgets
#define _XmStringIsXmString XmeStringIsValid
#define _XmStringUpdateWMShellTitle XmeSetWMShellTitle
#define _XmStringsAreEqual XmeNamesAreEqual
#define _XmToHorizontalPixels XmeToHorizontalPixels
#define _XmToVerticalPixels XmeToVerticalPixels
#define _XmWarning XmeWarning
/*
* These routines are really undocumented and internal, but have been
* used widely enough as data that they are preserved here for source
* compatibility.
*/
extern void _XmDestroyParentCallback(
Widget w,
XtPointer client_data,
XtPointer call_data) ;
/*
* Use of these internal macros is sufficiently widespread that they
* are still made available here for source compatibility.
*/
/* The _XmCreateImage macro is used to create XImage with client
* specific data for the bit and byte order. We still have to do the
* following because XCreateImage will stuff here display specific
* data and we want client specific values (i.e the bit orders we used
* for creating the bitmap data in Motif) */
#define _XmCreateImage(IMAGE, DISPLAY, DATA, WIDTH, HEIGHT, BYTE_ORDER) {\
IMAGE = XCreateImage(DISPLAY,\
DefaultVisual(DISPLAY, DefaultScreen(DISPLAY)),\
1,\
XYBitmap,\
0,\
DATA,\
WIDTH, HEIGHT,\
8,\
(WIDTH+7) >> 3);\
IMAGE->byte_order = BYTE_ORDER;\
IMAGE->bitmap_unit = 8;\
IMAGE->bitmap_bit_order = LSBFirst;\
}
#endif /* NO_XM_1_2_BC */
#if __GNUC__
# define XM_DEPRECATED __attribute__((__deprecated__))
# define XM_ALIAS(sym) __attribute__((__weak__,alias(#sym)))
#else
# define XM_DEPRECATED
# define XM_ALIAS(sym)
#endif
#define FIX_1381
#endif /* _XmP_h */
/* DON'T ADD STUFF AFTER THIS #endif */
|