~ubuntu-branches/ubuntu/quantal/openmotif/quantal

« back to all changes in this revision

Viewing changes to clients/mwm/WmICCC.h

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Bauer
  • Date: 2010-06-23 12:12:31 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100623121231-u89gxdp51sg9wjj2
Tags: 2.3.0-1
* New Maintainer (Closes: #379258) 
* Acknowledge NMU changes
* New upstream release (Closes: #494375)
* Get rid of security patches as they are already part of new upstream
  release (00-xpmvuln.openmotif.patch, 342092-CVE-2005-3964.patch)
* Bump Standards to 3.8.4
* Added {misc:Depends} to make the package lintian cleaner
* Fix weak-library-dev-dependency by adding ${binary:Version}) for the
  -dev Package of openmotif
* Let package depend on autotools-dev to use newer autotools-helper-files
* Work around an autoconf-bug (Gentoo-Bug #1475)
* Added Client-side anti-aliased fonts support via XFT
* Added UTF-8 and UTF8_STRING atom support
* Ability to show text and pixmaps in Label, LabelGadget and all
  derived widgets
* Support of PNG/JPEG image formats in the same way as XPM is supported
* Increase FILE_OFFSET_BITS to 64 to show files >2GB in file-selector
  Idea taken from Magne Oestlyngen (Closes: #288537)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
2
 * @OPENGROUP_COPYRIGHT@
 
3
 * COPYRIGHT NOTICE
 
4
 * Copyright (c) 1989, 1990, 1991, 1992, 1993, 1994 Open Software Foundation, Inc. 
 
5
 * Copyright (c) 1996, 1997, 1998, 1999, 2000 The Open Group
 
6
 * ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
 
7
 * the full copyright text.
 
8
 * 
 
9
 * This software is subject to an open license. It may only be
 
10
 * used on, with or for operating systems which are themselves open
 
11
 * source systems. You must contact The Open Group for a license
 
12
 * allowing distribution and sublicensing of this software on, with,
 
13
 * or for operating systems which are not Open Source programs.
 
14
 * 
 
15
 * See http://www.opengroup.org/openmotif/license for full
 
16
 * details of the license agreement. Any use, reproduction, or
 
17
 * distribution of the program constitutes recipient's acceptance of
 
18
 * this agreement.
 
19
 * 
 
20
 * EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS
 
21
 * PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 
22
 * KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY
 
23
 * WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
 
24
 * OR FITNESS FOR A PARTICULAR PURPOSE
 
25
 * 
 
26
 * EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
 
27
 * NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT,
 
28
 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 
29
 * DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED
 
30
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 
31
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
 
32
 * ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE
 
33
 * EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE
 
34
 * POSSIBILITY OF SUCH DAMAGES.
 
35
*/ 
 
36
/* 
 
37
 * Motif Release 1.2.4
 
38
*/ 
 
39
/*   $XConsortium: WmICCC.h /main/3 1995/11/01 11:40:07 rswiston $ */
 
40
/*
 
41
 * (c) Copyright 1987, 1988, 1989, 1990 HEWLETT-PACKARD COMPANY */
 
42
 
 
43
/*
 
44
 * Included Files:
 
45
 */
 
46
 
 
47
#include <X11/Xatom.h>
 
48
#include <X11/Xmd.h>
 
49
 
 
50
 
 
51
/*
 
52
 * Value definitions and macros:
 
53
 */
 
54
 
 
55
 
 
56
 
 
57
/*************************************<->*************************************
 
58
 *
 
59
 *  ICCC property data structures ...
 
60
 *
 
61
 *
 
62
 *  Description:
 
63
 *  -----------
 
64
 *  These data structures are mwm versions of the window manager data
 
65
 *  stuctures that are specified in the ICCCM and the Xlib specification
 
66
 *  for client/window manager communication.  In general these data
 
67
 *  structures correspond to client window property values.
 
68
 *
 
69
 *************************************<->***********************************/
 
70
 
 
71
 
 
72
/* mwm version of the xPropSizeHints structure: */
 
73
 
 
74
typedef struct _PropSizeHints
 
75
{
 
76
    unsigned long       flags;
 
77
    long                x;                      /* R2 conventions */
 
78
    long                y;                      /* R2 conventions */
 
79
    long                width;                  /* R2 conventions */
 
80
    long                height;                 /* R2 conventions */
 
81
    long                minWidth;
 
82
    long                minHeight;
 
83
    long                maxWidth;
 
84
    long                maxHeight;
 
85
    long                widthInc;
 
86
    long                heightInc;
 
87
    long                minAspectX;
 
88
    long                minAspectY;
 
89
    long                maxAspectX;
 
90
    long                maxAspectY;
 
91
    long                baseWidth;              /* current conventions */
 
92
    long                baseHeight;             /* current conventions */
 
93
    long                winGravity;             /* current conventions */
 
94
 
 
95
} PropSizeHints;
 
96
 
 
97
#define PROP_SIZE_HINTS_ELEMENTS        18
 
98
 
 
99
 
 
100
/* mwm version of the XSizeHints structure: */
 
101
 
 
102
typedef struct _SizeHints
 
103
{
 
104
    int         icccVersion;
 
105
    long        flags;
 
106
    int         x;                              /* R2 conventions */
 
107
    int         y;                              /* R2 conventions */
 
108
    int         width;                          /* R2 conventions */
 
109
    int         height;                         /* R2 conventions */
 
110
    int         min_width;
 
111
    int         min_height;
 
112
    int         max_width;
 
113
    int         max_height;
 
114
    int         width_inc;
 
115
    int         height_inc;
 
116
    AspectRatio min_aspect;
 
117
    AspectRatio max_aspect;
 
118
    int         base_width;                     /* current conventions */
 
119
    int         base_height;                    /* current conventions */
 
120
    int         win_gravity;                    /* current conventions */
 
121
 
 
122
} SizeHints;
 
123
 
 
124
/* mwm version of the xPropWMState structure: */
 
125
 
 
126
typedef struct _PropWMState
 
127
{
 
128
    unsigned long       state;
 
129
    unsigned long       icon;
 
130
} PropWMState;
 
131
 
 
132
#define PROP_WM_STATE_ELEMENTS          2
 
133
 
 
134
 
 
135
/* ICCC versions (icccVersion): */
 
136
#define ICCC_R2         0
 
137
#define ICCC_CURRENT    1
 
138
#define ICCC_UNKNOWN    ICCC_CURRENT
 
139
 
 
140
 
 
141
/* SizeHints flags field values: */
 
142
#define US_POSITION             (1L << 0)
 
143
#define US_SIZE                 (1L << 1)
 
144
#define P_POSITION              (1L << 2)
 
145
#define P_SIZE                  (1L << 3)
 
146
#define P_MIN_SIZE              (1L << 4)
 
147
#define P_MAX_SIZE              (1L << 5)
 
148
#define P_RESIZE_INC            (1L << 6)
 
149
#define P_ASPECT                (1L << 7)
 
150
#define P_BASE_SIZE             (1L << 8)
 
151
#define P_WIN_GRAVITY           (1L << 9)
 
152
 
 
153
/* PropWMState state field value: */
 
154
#define WithdrawnSTATE          0