Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:15:28

0001 /* 
0002  * Motif
0003  *
0004  * Copyright (c) 1987-2012, The Open Group. All rights reserved.
0005  *
0006  * These libraries and programs are free software; you can
0007  * redistribute them and/or modify them under the terms of the GNU
0008  * Lesser General Public License as published by the Free Software
0009  * Foundation; either version 2 of the License, or (at your option)
0010  * any later version.
0011  *
0012  * These libraries and programs are distributed in the hope that
0013  * they will be useful, but WITHOUT ANY WARRANTY; without even the
0014  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
0015  * PURPOSE. See the GNU Lesser General Public License for more
0016  * details.
0017  *
0018  * You should have received a copy of the GNU Lesser General Public
0019  * License along with these librararies and programs; if not, write
0020  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
0021  * Floor, Boston, MA 02110-1301 USA
0022 */ 
0023 #ifndef _XmScreenP_h
0024 #define _XmScreenP_h
0025 
0026 #include <Xm/DesktopP.h>
0027 #include <Xm/Screen.h>
0028 #include <Xm/DragIcon.h>
0029 
0030 #ifdef __cplusplus
0031 extern "C" {
0032 #endif
0033 
0034 typedef struct _XmScreenClassPart {
0035     XtPointer       extension;
0036 } XmScreenClassPart, *XmScreenClassPartPtr;
0037 
0038 typedef struct _XmScreenClassRec {
0039 /*    ObjectClassPart       object_class;
0040     XmExtClassPart      ext_class; */
0041     CoreClassPart               core_class ;
0042     XmDesktopClassPart      desktop_class;
0043     XmScreenClassPart       screen_class;
0044 } XmScreenClassRec;
0045 
0046 typedef struct _XmDragCursorRec {
0047     struct _XmDragCursorRec *next;
0048     Cursor          cursor;
0049     XmDragIconObject        stateIcon;
0050     XmDragIconObject        opIcon;
0051     XmDragIconObject        sourceIcon;
0052     Boolean         dirty;
0053 } XmDragCursorRec, *XmDragCursorCache;
0054 
0055 typedef struct _XmScratchPixmapKeyRec *XmScratchPixmapKey;
0056 
0057 typedef struct _XmScratchPixmapKeyRec {
0058     Cardinal        depth;
0059     Dimension           width;
0060     Dimension           height;
0061 } XmScratchPixmapKeyRec;
0062 
0063 typedef struct {
0064     Boolean     mwmPresent;
0065     unsigned short  numReparented;
0066     int         darkThreshold;
0067     int         foregroundThreshold;
0068     int         lightThreshold;
0069     XmDragIconObject    defaultNoneCursorIcon;
0070     XmDragIconObject    defaultValidCursorIcon;
0071     XmDragIconObject    defaultInvalidCursorIcon;
0072     XmDragIconObject    defaultMoveCursorIcon;
0073     XmDragIconObject    defaultCopyCursorIcon;
0074     XmDragIconObject    defaultLinkCursorIcon;
0075     XmDragIconObject    defaultSourceCursorIcon;
0076 
0077     Cursor      nullCursor;
0078     XmDragCursorRec *cursorCache;
0079     Cardinal        maxCursorWidth;
0080     Cardinal        maxCursorHeight;
0081 
0082     Cursor      menuCursor;
0083     unsigned char   unpostBehavior;
0084     XFontStruct *   font_struct;
0085     int         h_unit;
0086     int         v_unit;
0087     XtPointer       scratchPixmaps;
0088     unsigned char       moveOpaque;
0089     XmScreenColorProc   color_calc_proc;
0090     XmAllocColorProc    color_alloc_proc;
0091     XtEnum              bitmap_conversion_model;
0092 
0093     /* to save internally-created XmDragIcons */
0094 
0095     XmDragIconObject    xmStateCursorIcon;
0096     XmDragIconObject    xmMoveCursorIcon;
0097     XmDragIconObject    xmCopyCursorIcon;
0098     XmDragIconObject    xmLinkCursorIcon;
0099     XmDragIconObject    xmSourceCursorIcon;
0100 
0101     GC          imageGC;        /* OBSOLETE FIELD */
0102     int         imageGCDepth;           /* OBSOLETE FIELD */
0103     Pixel       imageForeground;        /* OBSOLETE FIELD */
0104     Pixel       imageBackground;        /* OBSOLETE FIELD */
0105 
0106     XtPointer       screenInfo;     /* extension */
0107 
0108     XtPointer           user_data;
0109 
0110     Pixmap              insensitive_stipple_bitmap;
0111 
0112 #ifdef DEFAULT_GLYPH_PIXMAP
0113    Pixmap           default_glyph_pixmap ;
0114    unsigned int     default_glyph_pixmap_width ;
0115    unsigned int     default_glyph_pixmap_height ;
0116 #endif
0117 
0118    XtPointer        inUsePixmaps;
0119 } XmScreenPart, *XmScreenPartPtr;
0120 
0121 typedef struct _XmScreenInfo {
0122     /* so much for information hiding */
0123     XtPointer   menu_state;     /* MenuUtil.c */
0124     Boolean     destroyCallbackAdded;   /* ImageCache.c */
0125 } XmScreenInfo;
0126 
0127 externalref XmScreenClassRec    xmScreenClassRec;
0128 
0129 typedef struct _XmScreenRec {
0130 /*    ObjectPart            object;
0131     XmExtPart           ext; */
0132     CorePart                    core ;
0133     XmDesktopPart       desktop;
0134     XmScreenPart        screen;
0135 } XmScreenRec;
0136 
0137 
0138 #ifdef __cplusplus
0139 }  /* Close scope of 'extern "C"' declaration which encloses file. */
0140 #endif
0141 
0142 #endif /* _XmScreenP_h */
0143 /* DON'T ADD STUFF AFTER THIS #endif */