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

« back to all changes in this revision

Viewing changes to lib/Xm/DragUnderI.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) 1990, 1991, 1992, 1993 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
 * HISTORY
 
38
*/ 
 
39
/* $XConsortium: DragUnderI.h /main/11 1995/07/14 10:27:08 drk $ */
 
40
/* (c) Copyright 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
 
41
 
 
42
#ifndef _XmDragUnderI_h
 
43
#define _XmDragUnderI_h
 
44
 
 
45
#include <Xm/XmP.h>
 
46
#include <Xm/Screen.h>          /* for XmScreen */
 
47
 
 
48
#ifdef __cplusplus
 
49
extern "C" {
 
50
#endif
 
51
 
 
52
/* Structure describing a pixmap */
 
53
 
 
54
typedef struct _DragPixmapData {
 
55
    Pixmap              pixmap;
 
56
    int                 x, y;
 
57
    unsigned int        width, height;
 
58
} DragPixmapData;
 
59
 
 
60
typedef struct _XmAnimationSaveData {
 
61
    Display             *display;
 
62
    XmScreen            xmScreen;
 
63
    Window              window;
 
64
    Position            windowX;
 
65
    Position            windowY;
 
66
    unsigned int        windowDepth;
 
67
    XmRegion            clipRegion;
 
68
    XmRegion            dropSiteRegion;
 
69
    Dimension           shadowThickness;
 
70
    Dimension           highlightThickness;
 
71
    Pixel               background;
 
72
    Pixel               foreground;
 
73
    Pixel               highlightColor;
 
74
    Pixmap              highlightPixmap;
 
75
    Pixel               topShadowColor;
 
76
    Pixmap              topShadowPixmap;
 
77
    Pixel               bottomShadowColor;
 
78
    Pixmap              bottomShadowPixmap;
 
79
 
 
80
    Dimension           borderWidth;
 
81
    Pixmap              animationMask;
 
82
    Pixmap              animationPixmap;
 
83
    unsigned int        animationPixmapDepth;
 
84
    unsigned char       animationStyle;
 
85
    Widget              dragOver;
 
86
 
 
87
    GC                  highlightGC;
 
88
    GC                  topShadowGC;
 
89
    GC                  bottomShadowGC;
 
90
    GC                  drawGC;
 
91
    DragPixmapData      *savedPixmaps;
 
92
    Cardinal            numSavedPixmaps;
 
93
    Widget              dragUnder;
 
94
    unsigned char       activeMode;
 
95
} XmAnimationSaveDataRec, *XmAnimationSaveData;
 
96
 
 
97
 
 
98
/********    Private Function Declarations for DragUnder.c    ********/
 
99
 
 
100
extern void _XmDragUnderAnimation( 
 
101
                        Widget w,
 
102
                        XtPointer clientData,
 
103
                        XtPointer callData) ;
 
104
 
 
105
/********    End Private Function Declarations    ********/
 
106
 
 
107
#ifdef __cplusplus
 
108
}  /* Close scope of 'extern "C"' declaration which encloses file. */
 
109
#endif
 
110
 
 
111
#endif /* _XmDragUnderI_h */