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

« back to all changes in this revision

Viewing changes to lib/Xm/DragBSI.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
/* $TOG: DragBSI.h /main/12 1998/03/18 15:10:55 csn $ */
 
40
/* (c) Copyright 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
 
41
 
 
42
#ifndef _XmDragBSI_h
 
43
#define _XmDragBSI_h
 
44
 
 
45
#include <Xm/XmP.h>
 
46
#include <X11/Xmd.h>            /* for CARD32, B32, etc. */
 
47
 
 
48
#ifdef __cplusplus
 
49
extern "C" {
 
50
#endif
 
51
 
 
52
/*
 
53
 * defalut values for XmNnumImportTargets and XmNimportTargets. 
 
54
 */
 
55
#define _XmDefaultNumImportTargets      0;
 
56
#define _XmDefaultImportTargets         NULL;
 
57
 
 
58
 
 
59
/*
 
60
 *  atoms and targets table structures
 
61
 */
 
62
 
 
63
typedef struct {
 
64
  Atom          atom;
 
65
  Time          time;
 
66
} xmAtomsTableEntryRec, *xmAtomsTableEntry;
 
67
 
 
68
typedef struct {
 
69
  Cardinal      numEntries;
 
70
  xmAtomsTableEntry entries;
 
71
} xmAtomsTableRec, *xmAtomsTable;
 
72
 
 
73
typedef struct {
 
74
    Cardinal    numTargets;
 
75
    Atom        *targets;
 
76
} xmTargetsTableEntryRec, *xmTargetsTableEntry;
 
77
 
 
78
typedef struct {
 
79
    Cardinal    numEntries;
 
80
    xmTargetsTableEntry entries;
 
81
} xmTargetsTableRec, *xmTargetsTable;
 
82
 
 
83
/*
 
84
 *  The following are structures for property access.
 
85
 *  They must have 64-bit multiple lengths to support 64-bit architectures.
 
86
 */
 
87
 
 
88
typedef struct {
 
89
    CARD32      atom B32;
 
90
    CARD16      name_length B16;
 
91
    CARD16      pad B16;
 
92
} xmMotifAtomPairRec;
 
93
 
 
94
typedef struct {
 
95
    BYTE        byte_order;
 
96
    BYTE        protocol_version;
 
97
    CARD16      num_atom_pairs B16;
 
98
    CARD32      heap_offset B32;
 
99
    /* xmMotifAtomPairRec        atomPairs[];   */
 
100
} xmMotifAtomPairPropertyRec;
 
101
 
 
102
typedef struct {
 
103
    CARD32      atom B32;
 
104
    CARD32      time B32;
 
105
} xmMotifAtomsTableRec;
 
106
 
 
107
typedef struct {
 
108
    BYTE        byte_order;
 
109
    BYTE        protocol_version;
 
110
    CARD16      num_atoms B16;
 
111
    CARD32      heap_offset B32;
 
112
    /* xmMotifAtomsTableRec atoms[];    */
 
113
} xmMotifAtomsPropertyRec;
 
114
 
 
115
typedef struct {
 
116
    BYTE        byte_order;
 
117
    BYTE        protocol_version;
 
118
    CARD16      num_target_lists B16;
 
119
    CARD32      heap_offset B32;
 
120
} xmMotifTargetsPropertyRec;
 
121
 
 
122
/********    Private Function Declarations for DragBS.c   ********/
 
123
 
 
124
extern void _XmInitTargetsTable( 
 
125
                        Display *display) ;
 
126
extern void _XmClearDisplayTables (Display *display);
 
127
extern Cardinal _XmIndexToTargets( 
 
128
                        Widget shell,
 
129
                        Cardinal t_index,
 
130
                        Atom **targetsRtn) ;
 
131
extern Cardinal _XmTargetsToIndex( 
 
132
                        Widget shell,
 
133
                        Atom *targets,
 
134
                        Cardinal numTargets) ;
 
135
extern Atom _XmAllocMotifAtom( 
 
136
                        Widget shell,
 
137
                        Time time) ;
 
138
extern void _XmFreeMotifAtom( 
 
139
                        Widget shell,
 
140
                        Atom atom) ;
 
141
extern void _XmDestroyMotifWindow( 
 
142
                        Display *dpy) ;
 
143
extern Window _XmGetDragProxyWindow(
 
144
                        Display *display) ;
 
145
 
 
146
/********    End Private Function Declarations    ********/
 
147
 
 
148
#ifdef __cplusplus
 
149
}  /* Close scope of 'extern "C"' declaration which encloses file. */
 
150
#endif
 
151
 
 
152
#endif /* _XmDragBSI_h */