jdk/src/solaris/native/sun/awt/randr.h
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 * reserved comment block
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT REMOVE OR ALTER!
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * $XFree86: xc/include/extensions/randr.h,v 1.4 2001/11/24 07:24:58 keithp Exp $
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * Copyright © 2000, Compaq Computer Corporation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * Copyright © 2002, Hewlett Packard, Inc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * Permission to use, copy, modify, distribute, and sell this software and its
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * documentation for any purpose is hereby granted without fee, provided that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * the above copyright notice appear in all copies and that both that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * copyright notice and this permission notice appear in supporting
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * documentation, and that the name of Compaq or HP not be used in advertising
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 * or publicity pertaining to distribution of the software without specific,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * written prior permission.  HP makes no representations about the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * suitability of this software for any purpose.  It is provided "as is"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * without express or implied warranty.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * HP DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL HP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
 * Author:  Jim Gettys, HP Labs, Hewlett-Packard, Inc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
#ifndef _RANDR_H_
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
#define _RANDR_H_
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
typedef unsigned short  Rotation;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
typedef unsigned short  SizeID;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
typedef unsigned short  SubpixelOrder;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
#define RANDR_NAME              "RANDR"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
#define RANDR_MAJOR             1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
#define RANDR_MINOR             1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
#define RRNumberErrors          0
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
#define RRNumberEvents          1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
#define X_RRQueryVersion        0
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
/* we skip 1 to make old clients fail pretty immediately */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
#define X_RROldGetScreenInfo    1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
#define X_RR1_0SetScreenConfig  2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
/* V1.0 apps share the same set screen config request id */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
#define X_RRSetScreenConfig     2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
#define X_RROldScreenChangeSelectInput  3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
/* 3 used to be ScreenChangeSelectInput; deprecated */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
#define X_RRSelectInput         4
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
#define X_RRGetScreenInfo       5
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
/* used in XRRSelectInput */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
#define RRScreenChangeNotifyMask  (1L << 0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
#define RRScreenChangeNotify    0
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
/* used in the rotation field; rotation and reflection in 0.1 proto. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
#define RR_Rotate_0             1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
#define RR_Rotate_90            2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
#define RR_Rotate_180           4
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
#define RR_Rotate_270           8
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
/* new in 1.0 protocol, to allow reflection of screen */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
#define RR_Reflect_X            16
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
#define RR_Reflect_Y            32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
#define RRSetConfigSuccess              0
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
#define RRSetConfigInvalidConfigTime    1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
#define RRSetConfigInvalidTime          2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
#define RRSetConfigFailed               3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
#endif  /* _RANDR_H_ */