Annotation of 43BSD/contrib/X/xwm/xwm.h, revision 1.1

1.1     ! root        1: #include <X/mit-copyright.h>
        !             2: 
        !             3: /* Copyright    Massachusetts Institute of Technology    1985  */
        !             4: 
        !             5: /*
        !             6:  * xwm - X Window System window manager header file.
        !             7:  *
        !             8:  *     File:           xwm.h
        !             9:  */
        !            10: 
        !            11: /* $Header: xwm.h,v 10.3 86/02/01 16:10:49 tony Rel $ */
        !            12: 
        !            13: #include <errno.h>
        !            14: #include <stdio.h>
        !            15: #include <X/Xlib.h>
        !            16: 
        !            17: typedef enum _bool {FALSE, TRUE} Bool;
        !            18: 
        !            19: #define min(x, y)      ((x) <= (y) ? (x) : (y))
        !            20: #define max(x, y)      ((x) >= (y) ? (x) : (y))
        !            21: 
        !            22: #define DEF_BUTTON_MASK                MetaMask
        !            23: #define DEF_KEY_MASK           MetaMask
        !            24: #define DEF_DELTA              5
        !            25: #define DEF_I_FONT             "6x10"
        !            26: #define DEF_P_FONT             "6x10"
        !            27: #define DEF_FUNC               GXcopy
        !            28: #define DEF_ICON_BORDER_WIDTH  2
        !            29: #define DEF_ICON_PADDING       4
        !            30: #define DEF_POP_BORDER_WIDTH   2
        !            31: #define DEF_POP_PADDING                4
        !            32: 
        !            33: #define INIT_PTEXT             {'0', '0', '0', 'x', '0', '0', '0'}
        !            34: 
        !            35: #define CURSOR_WIDTH           16
        !            36: #define CURSOR_HEIGHT          16
        !            37: 
        !            38: #define MAX_ZAP_VECTORS                16
        !            39: #define MAX_BOX_VECTORS                26
        !            40: 
        !            41: #define DRAW_HEIGHT            1
        !            42: #define DRAW_WIDTH             1
        !            43: #define DRAW_VALUE             ~0
        !            44: #define DRAW_FUNC              GXxor
        !            45: #define DRAW_PLANES            1
        !            46: 
        !            47: #define FAILURE                        0
        !            48: 
        !            49: /*
        !            50:  * External variable definitions.
        !            51:  */
        !            52: extern int errno;
        !            53: 
        !            54: extern Window Pop;             /* Pop up dimension display window. */
        !            55: extern Font IFont;             /* Icon output font. */
        !            56: extern FontInfo IFontInfo;     /* Icon output font information. */
        !            57: extern Font PFont;             /* Pop up output font. */
        !            58: extern FontInfo PFontInfo;     /* Pop up output font information. */
        !            59: extern Pixmap GrayPixmap;      /* Gray pixmap. */
        !            60: extern Pixmap IBorder;         /* Icon window border pixmap. */
        !            61: extern Pixmap IBackground;     /* Icon window background pixmap. */
        !            62: extern Pixmap PBorder;         /* Pop-Up Window border pixmap. */
        !            63: extern Pixmap PBackground;     /* Pop-up Window background pixmap. */
        !            64: extern Cursor ArrowCrossCursor; /* Arrow cross cursor. */
        !            65: extern Cursor ULAngleCursor;   /* Upper left angle cursor. */
        !            66: extern Cursor LLAngleCursor;   /* Lower left angle cursor. */
        !            67: extern Cursor LRAngleCursor;   /* Lower right angle cursor. */
        !            68: extern Cursor URAngleCursor;   /* Upper right angle cursor. */
        !            69: extern Cursor TopTeeCursor;    /* Top tee cursor. */
        !            70: extern Cursor LeftTeeCursor;   /* Left tee cursor. */
        !            71: extern Cursor BottomTeeCursor; /* Bottom tee cursor. */
        !            72: extern Cursor RightTeeCursor;  /* Right tee cursor. */
        !            73: extern Cursor DotCursor;       /* Dot cursor. */
        !            74: extern Cursor CircleCursor;    /* Circle Cursor. */
        !            75: extern Cursor TextCursor;      /* Text cursor used in icon windows. */
        !            76: extern Cursor IconCursor;      /* Icon Cursor. */
        !            77: extern int ScreenWidth;                /* Display screen width. */
        !            78: extern int ScreenHeight;       /* Display screen height. */
        !            79: extern int CursorFunc;         /* Mouse cursor function. */
        !            80: extern int IconCursorFunc;     /* Icon Mouse Cursor function. */
        !            81: extern int ITextForground;     /* Icon window text forground color. */
        !            82: extern int ITextBackground;    /* Icon window text background color. */
        !            83: extern int IBorderWidth;       /* Icon window border width. */
        !            84: extern int IPadding;           /* Icon window padding. */
        !            85: extern int PTextForground;     /* Pop-up window text forground color. */
        !            86: extern int PTextBackground;    /* Pop-up window text background color. */
        !            87: extern int PWidth;             /* Pop-up window width (including borders). */
        !            88: extern int PHeight;            /* Pop-up window height (including borders). */
        !            89: extern int PBorderWidth;       /* Pop-up window border width. */
        !            90: extern int PPadding;           /* Pop-up window padding. */
        !            91: extern int ButtonMask;         /* Global mouse button event mask. */
        !            92: extern int Delta;              /* Mouse movement slop. */
        !            93: 
        !            94: extern Bool Debug;             /* Global debug flag. */
        !            95: extern Bool Grid;              /* Should the m/r box contain a 9 seg. grid. */
        !            96: extern Bool Zap;               /* Should the the zap effect be used. */
        !            97: 
        !            98: 
        !            99: extern char PText[];           /* Pop-up window dummy text. */
        !           100: extern int PTextSize;          /* Pop-up window dummy text size. */
        !           101: 
        !           102: #ifdef PROFIL
        !           103: int ptrap();
        !           104: #endif
        !           105: 
        !           106: /*
        !           107:  * External routine typing.
        !           108:  */
        !           109: extern Bool Change();
        !           110: extern Bool GetButton();
        !           111: extern int LowerIconify();
        !           112: extern int Move();
        !           113: extern int StoreCursors();
        !           114: extern int StoreBox();
        !           115: extern int StoreGridBox();
        !           116: extern int StoreZap();
        !           117: extern int Error();
        !           118: extern int XError();

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.