< prev index next >

src/java.desktop/unix/native/libawt_xawt/awt/wsutils.h

Print this page


   1 /*
   2  * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  52 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  53 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  54 IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
  55 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  56 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  57 OTHER DEALINGS IN THE SOFTWARE.
  58 
  59 Except as contained in this notice, the name of The Open Group shall
  60 not be used in advertising or otherwise to promote the sale, use or
  61 other dealings in this Software without prior written authorization
  62 from The Open Group.
  63 
  64     ------------------------------------------------------------------------ **/
  65 
  66 /******************************************************************************
  67  *
  68  * This file contains various typedef's, macros and procedure declarations for
  69  * a set of example utility procedures contained in the file "wsutils.c".
  70  *
  71  ******************************************************************************/




  72 
  73 typedef unsigned long Pixel;
  74 
  75 /* This is the actual structure returned by the X server describing the
  76  * SERVER_OVERLAY_VISUAL property.
  77  */
  78 typedef struct
  79 {
  80   VisualID      visualID;               /* The VisualID of the overlay visual */
  81   int           transparentType;        /* Can be None, TransparentPixel or
  82                                          * TransparentMask */
  83   Pixel         value;                  /* Pixel value */
  84   int           layer;                  /* Overlay planes will always be in
  85                                          * layer 1 */
  86 } OverlayVisualPropertyRec;
  87 
  88 
  89 /* This is structure also describes the SERVER_OVERLAY_VISUAL property, but
  90  * should be more useful than the one actually returned by the X server
  91  * because it actually points to the visual's XVisualInfo struct rather than


   1 /*
   2  * Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  52 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  53 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  54 IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
  55 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  56 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  57 OTHER DEALINGS IN THE SOFTWARE.
  58 
  59 Except as contained in this notice, the name of The Open Group shall
  60 not be used in advertising or otherwise to promote the sale, use or
  61 other dealings in this Software without prior written authorization
  62 from The Open Group.
  63 
  64     ------------------------------------------------------------------------ **/
  65 
  66 /******************************************************************************
  67  *
  68  * This file contains various typedef's, macros and procedure declarations for
  69  * a set of example utility procedures contained in the file "wsutils.c".
  70  *
  71  ******************************************************************************/
  72 
  73 #ifdef HEADLESS
  74     #error This file should not be included in headless library
  75 #endif
  76 
  77 typedef unsigned long Pixel;
  78 
  79 /* This is the actual structure returned by the X server describing the
  80  * SERVER_OVERLAY_VISUAL property.
  81  */
  82 typedef struct
  83 {
  84   VisualID      visualID;               /* The VisualID of the overlay visual */
  85   int           transparentType;        /* Can be None, TransparentPixel or
  86                                          * TransparentMask */
  87   Pixel         value;                  /* Pixel value */
  88   int           layer;                  /* Overlay planes will always be in
  89                                          * layer 1 */
  90 } OverlayVisualPropertyRec;
  91 
  92 
  93 /* This is structure also describes the SERVER_OVERLAY_VISUAL property, but
  94  * should be more useful than the one actually returned by the X server
  95  * because it actually points to the visual's XVisualInfo struct rather than


< prev index next >