Annotation of researchv9/X11/src/X.V11R1/server/include/cursorstr.h, revision 1.1.1.1

1.1       root        1: /* $Header: cursorstr.h,v 1.1 87/09/11 07:49:40 toddb Exp $ */
                      2: /***********************************************************
                      3: Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
                      4: and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
                      5: 
                      6:                         All Rights Reserved
                      7: 
                      8: Permission to use, copy, modify, and distribute this software and its 
                      9: documentation for any purpose and without fee is hereby granted, 
                     10: provided that the above copyright notice appear in all copies and that
                     11: both that copyright notice and this permission notice appear in 
                     12: supporting documentation, and that the names of Digital or MIT not be
                     13: used in advertising or publicity pertaining to distribution of the
                     14: software without specific, written prior permission.  
                     15: 
                     16: DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
                     17: ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
                     18: DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
                     19: ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
                     20: WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
                     21: ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
                     22: SOFTWARE.
                     23: 
                     24: ******************************************************************/
                     25: #ifndef CURSORSTRUCT_H
                     26: #define CURSORSTRUCT_H 
                     27: 
                     28: #include "cursor.h"
                     29: #include "pixmap.h"
                     30: #include "misc.h"
                     31: /* 
                     32:  * device-independent cursor storage
                     33:  *
                     34:  * source and mask point directly to the bits, which are in the server-defined
                     35:  * bitmap format.
                     36:  */
                     37: typedef struct _Cursor {
                     38:     unsigned char *source;                     /* points to bits */
                     39:     unsigned char *mask;                       /* points to bits */
                     40:     int width;
                     41:     int height;
                     42:     int xhot;                                  /* must be within bitmap */
                     43:     int yhot;                                  /* must be within bitmap */
                     44:     unsigned foreRed, foreGreen, foreBlue;     /* device-independent color */
                     45:     unsigned backRed, backGreen, backBlue;     /* device-independent color */
                     46:     int refcnt;
                     47:     pointer devPriv[MAXSCREENS];               /* set by pScr->RealizeCursor*/
                     48: } CursorRec;
                     49: 
                     50: typedef struct _CursorMetric {
                     51:     int width, height, xhot, yhot;
                     52: } CursorMetricRec;
                     53: 
                     54: extern void            FreeCursor();
                     55: extern CursorPtr       AllocCursor();          /* also realizes it */
                     56:                                /* created from default cursor font */
                     57: extern CursorPtr       CreateRootCursor();
                     58: 
                     59: #endif /* CURSORSTRUCT_H */

unix.superglobalmegacorp.com

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