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

« back to all changes in this revision

Viewing changes to lib/Xm/SeparatoGP.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: SeparatoGP.h /main/11 1995/07/13 17:59:16 drk $ */
 
40
/*
 
41
*  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
 
42
#ifndef _XmSeparatorGadgetP_h
 
43
#define _XmSeparatorGadgetP_h
 
44
 
 
45
#include <Xm/SeparatoG.h>
 
46
#include <Xm/GadgetP.h>
 
47
#include <Xm/ExtObjectP.h>
 
48
 
 
49
#ifdef __cplusplus
 
50
extern "C" {
 
51
#endif
 
52
 
 
53
/*****************************************************************/
 
54
/* The Separator Gadget Cache Object's class and instance records*/
 
55
/*****************************************************************/
 
56
 
 
57
typedef struct _XmSeparatorGCacheObjClassPart
 
58
{
 
59
    int foo;
 
60
} XmSeparatorGCacheObjClassPart;
 
61
 
 
62
 
 
63
/* separator cache class record */
 
64
typedef struct _XmSeparatorGCacheObjClassRec
 
65
{
 
66
    ObjectClassPart                     object_class;
 
67
    XmExtClassPart                      ext_class;
 
68
    XmSeparatorGCacheObjClassPart       separator_class_cache;
 
69
} XmSeparatorGCacheObjClassRec;
 
70
 
 
71
externalref XmSeparatorGCacheObjClassRec xmSeparatorGCacheObjClassRec;
 
72
 
 
73
 
 
74
/*  The Separator Gadget Cache instance record  */
 
75
 
 
76
typedef struct _XmSeparatorGCacheObjPart
 
77
{
 
78
   Dimension      margin;
 
79
   unsigned char  orientation;
 
80
   unsigned char  separator_type;
 
81
   GC             separator_GC;
 
82
   
 
83
   GC               background_GC;
 
84
   GC               top_shadow_GC;
 
85
   GC               bottom_shadow_GC;
 
86
   
 
87
   Pixel            foreground;
 
88
   Pixel            background;
 
89
   
 
90
   Pixel            top_shadow_color;
 
91
   Pixmap           top_shadow_pixmap;
 
92
   
 
93
   Pixel            bottom_shadow_color;
 
94
   Pixmap           bottom_shadow_pixmap;
 
95
} XmSeparatorGCacheObjPart;
 
96
 
 
97
typedef struct _XmSeparatorGCacheObjRec
 
98
{
 
99
  ObjectPart                object;
 
100
  XmExtPart                 ext;
 
101
  XmSeparatorGCacheObjPart  separator_cache;
 
102
} XmSeparatorGCacheObjRec;
 
103
 
 
104
 
 
105
/*****************************************************/
 
106
/*  The Separator Widget Class and instance records  */
 
107
/*****************************************************/
 
108
 
 
109
typedef struct _XmSeparatorGadgetClassPart
 
110
{
 
111
   XtPointer               extension;
 
112
} XmSeparatorGadgetClassPart;
 
113
 
 
114
 
 
115
/*  Full class record declaration for Separator class  */
 
116
 
 
117
typedef struct _XmSeparatorGadgetClassRec
 
118
{
 
119
   RectObjClassPart            rect_class;
 
120
   XmGadgetClassPart           gadget_class;
 
121
   XmSeparatorGadgetClassPart  separator_class;
 
122
} XmSeparatorGadgetClassRec;
 
123
 
 
124
externalref XmSeparatorGadgetClassRec xmSeparatorGadgetClassRec;
 
125
 
 
126
typedef struct _XmSeparatorGadgetPart
 
127
{
 
128
  XmSeparatorGCacheObjPart  *cache;
 
129
  Boolean fill_bg_box;
 
130
} XmSeparatorGadgetPart;
 
131
 
 
132
/*  Full instance record declaration  */
 
133
 
 
134
typedef struct _XmSeparatorGadgetRec
 
135
{
 
136
   ObjectPart             object;
 
137
   RectObjPart            rectangle;
 
138
   XmGadgetPart           gadget;
 
139
   XmSeparatorGadgetPart  separator;
 
140
} XmSeparatorGadgetRec;
 
141
 
 
142
 
 
143
/* MACROS for accessing instance fields*/
 
144
#define SEPG_Margin(w)          \
 
145
        (((XmSeparatorGadget)(w))->separator.cache->margin)
 
146
#define SEPG_Orientation(w)     \
 
147
        (((XmSeparatorGadget)(w))->separator.cache->orientation)
 
148
#define SEPG_SeparatorType(w)   \
 
149
        (((XmSeparatorGadget)(w))->separator.cache->separator_type)
 
150
#define SEPG_SeparatorGC(w)     \
 
151
        (((XmSeparatorGadget)(w))->separator.cache->separator_GC)
 
152
#define SEPG_BackgroundGC(w)    \
 
153
        (((XmSeparatorGadget)(w))->separator.cache->background_GC)
 
154
#define SEPG_TopShadowGC(w)     \
 
155
        (((XmSeparatorGadget)(w))->separator.cache->top_shadow_GC)
 
156
#define SEPG_BottomShadowGC(w)  \
 
157
        (((XmSeparatorGadget)(w))->separator.cache->bottom_shadow_GC)
 
158
#define SEPG_Foreground(w)      \
 
159
        (((XmSeparatorGadget)(w))->separator.cache->foreground)
 
160
#define SEPG_Background(w)      \
 
161
        (((XmSeparatorGadget)(w))->separator.cache->background)
 
162
#define SEPG_TopShadowColor(w)  \
 
163
        (((XmSeparatorGadget)(w))->separator.cache->top_shadow_color)
 
164
#define SEPG_TopShadowPixmap(w) \
 
165
        (((XmSeparatorGadget)(w))->separator.cache->top_shadow_pixmap)
 
166
#define SEPG_BottomShadowColor(w)       \
 
167
        (((XmSeparatorGadget)(w))->separator.cache->bottom_shadow_color)
 
168
#define SEPG_BottomShadowPixmap(w)      \
 
169
        (((XmSeparatorGadget)(w))->separator.cache->bottom_shadow_pixmap)
 
170
 
 
171
/* Convenience Macros */
 
172
#define SEPG_Cache(w)           \
 
173
        (((XmSeparatorGadget)(w))->separator.cache)
 
174
#define SEPG_ClassCachePart(w) \
 
175
        (((XmSeparatorGadgetClass)xmSeparatorGadgetClass)->gadget_class.cache_part)
 
176
 
 
177
 
 
178
#ifdef __cplusplus
 
179
}  /* Close scope of 'extern "C"' declaration which encloses file. */
 
180
#endif
 
181
 
 
182
#endif /* _XmSeparatorGadgetP_h */
 
183
/* DON'T ADD STUFF AFTER THIS #endif */