0N/A/*
2362N/A * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/Apackage sun.awt.X11;
0N/A
216N/Afinal public class XUtilConstants {
216N/A
216N/A private XUtilConstants(){}
216N/A
0N/A /*
0N/A * Bitmask returned by XParseGeometry(). Each bit tells if the corresponding
0N/A * value (x, y, width, height) was found in the parsed string.
0N/A */
0N/A public static final int NoValue = 0x0000 ;
0N/A public static final int XValue = 0x0001 ;
0N/A public static final int YValue = 0x0002 ;
0N/A public static final int WidthValue = 0x0004 ;
0N/A public static final int HeightValue = 0x0008 ;
0N/A public static final int AllValues = 0x000F ;
0N/A public static final int XNegative = 0x0010 ;
0N/A public static final int YNegative = 0x0020 ;
0N/A
0N/A /*
0N/A * The next block of definitions are for window manager properties that
0N/A * clients and applications use for communication.
0N/A */
0N/A
0N/A /* flags argument in size hints */
0N/A public static final long USPosition = 1L << 0; /* user specified x, y */
0N/A public static final long USSize = 1L << 1; /* user specified width, height */
0N/A
0N/A public static final long PPosition = 1L << 2; /* program specified position */
0N/A public static final long PSize = 1L << 3; /* program specified size */
0N/A public static final long PMinSize = 1L << 4; /* program specified minimum size */
0N/A public static final long PMaxSize = 1L << 5; /* program specified maximum size */
0N/A public static final long PResizeInc = 1L << 6; /* program specified resize increments */
0N/A public static final long PAspect = 1L << 7; /* program specified min and max aspect ratios */
0N/A public static final long PBaseSize = 1L << 8; /* program specified base for incrementing */
0N/A public static final long PWinGravity = 1L << 9; /* program specified window gravity */
0N/A
0N/A /* obsolete */
0N/A public static final long PAllHints = (PPosition|PSize|PMinSize|PMaxSize|PResizeInc|PAspect) ;
0N/A
0N/A /* definition for flags of XWMHints */
0N/A
0N/A public static final long InputHint = 1L << 0;
0N/A public static final long StateHint = 1L << 1;
0N/A public static final long IconPixmapHint = 1L << 2;
0N/A public static final long IconWindowHint = 1L << 3;
0N/A public static final long IconPositionHint = 1L << 4;
0N/A public static final long IconMaskHint = 1L << 5;
0N/A public static final long WindowGroupHint = 1L << 6;
0N/A public static final long AllHints = (InputHint|StateHint|IconPixmapHint|IconWindowHint|
0N/A IconPositionHint|IconMaskHint|WindowGroupHint);
0N/A public static final long XUrgencyHint = 1L << 8;
0N/A
0N/A /* definitions for initial window state */
0N/A public static final int WithdrawnState = 0 ; /* for windows that are not mapped */
0N/A public static final int NormalState = 1 ; /* most applications want to start this way */
0N/A public static final int IconicState = 3 ; /* application wants to start as an icon */
0N/A
0N/A /*
0N/A * Obsolete states no longer defined by ICCCM
0N/A */
0N/A public static final int DontCareState = 0 ; /* don't know or care */
0N/A public static final int ZoomState = 2 ; /* application wants to start zoomed */
0N/A /* application believes it is seldom used; some wm's may put it on inactive menu */
0N/A public static final int InactiveState = 4 ;
0N/A
0N/A public static final int XNoMemory = -1 ;
0N/A public static final int XLocaleNotSupported = -2 ;
0N/A public static final int XConverterNotFound = -3 ;
0N/A
0N/A /* Return values from XRectInRegion() */
0N/A public static final int RectangleOut = 0 ;
0N/A public static final int RectangleIn = 1 ;
0N/A public static final int RectanglePart = 2 ;
0N/A
0N/A /*
0N/A * Information used by the visual utility routines to find desired visual
0N/A * type from the many visuals a display may support.
0N/A */
0N/A public static final int VisualNoMask = 0x0 ;
0N/A public static final int VisualIDMask = 0x1 ;
0N/A public static final int VisualScreenMask = 0x2 ;
0N/A public static final int VisualDepthMask = 0x4 ;
0N/A public static final int VisualClassMask = 0x8 ;
0N/A public static final int VisualRedMaskMask = 0x10 ;
0N/A public static final int VisualGreenMaskMask = 0x20 ;
0N/A public static final int VisualBlueMaskMask = 0x40 ;
0N/A public static final int VisualColormapSizeMask = 0x80 ;
0N/A public static final int VisualBitsPerRGBMask = 0x100 ;
0N/A public static final int VisualAllMask = 0x1FF ;
0N/A
0N/A /*
0N/A * return codes for XReadBitmapFile and XWriteBitmapFile
0N/A */
0N/A public static final int BitmapSuccess = 0 ;
0N/A public static final int BitmapOpenFailed = 1 ;
0N/A public static final int BitmapFileInvalid = 2 ;
0N/A public static final int BitmapNoMemory = 3 ;
0N/A
0N/A /****************************************************************
0N/A *
0N/A * Context Management
0N/A *
0N/A ****************************************************************
0N/A */
0N/A /* Associative lookup table return codes */
0N/A public static final int XCSUCCESS = 0 ; /* No error. */
0N/A public static final int XCNOMEM = 1 ; /* Out of memory */
0N/A public static final int XCNOENT = 2 ; /* No entry in table */
0N/A
0N/A // typedef int XContext;
0N/A}