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

« back to all changes in this revision

Viewing changes to lib/Xm/ArrowBGP.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: ArrowBGP.h /main/13 1995/07/14 10:09:51 drk $ */
 
40
/*
 
41
*  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
 
42
#ifndef _XmArrowGadgetP_h
 
43
#define _XmArrowGadgetP_h
 
44
 
 
45
#include <Xm/ArrowBG.h>
 
46
#include <Xm/GadgetP.h>
 
47
 
 
48
#ifdef __cplusplus
 
49
extern "C" {
 
50
#endif
 
51
 
 
52
/*  Arrow class structure  */
 
53
 
 
54
typedef struct _XmArrowButtonGadgetClassPart
 
55
{
 
56
   XtPointer extension;
 
57
} XmArrowButtonGadgetClassPart;
 
58
 
 
59
 
 
60
/*  Full class record declaration for Arrow class  */
 
61
 
 
62
typedef struct _XmArrowButtonGadgetClassRec
 
63
{
 
64
  RectObjClassPart             rect_class;
 
65
  XmGadgetClassPart            gadget_class;
 
66
  XmArrowButtonGadgetClassPart arrow_button_class;
 
67
} XmArrowButtonGadgetClassRec;
 
68
 
 
69
externalref XmArrowButtonGadgetClassRec xmArrowButtonGadgetClassRec;
 
70
 
 
71
/*  The Arrow instance record  */
 
72
 
 
73
typedef struct _XmArrowButtonGadgetPart
 
74
{
 
75
  XtCallbackList activate_callback;
 
76
  XtCallbackList arm_callback;
 
77
  XtCallbackList disarm_callback;
 
78
  unsigned char  direction;     /* The direction the arrow is pointing. */
 
79
 
 
80
  Boolean        selected;
 
81
 
 
82
  short          top_count;
 
83
  short          cent_count;
 
84
  short          bot_count;
 
85
  XRectangle    *top;
 
86
  XRectangle    *cent;
 
87
  XRectangle    *bot;
 
88
 
 
89
  Position       old_x;
 
90
  Position       old_y;
 
91
 
 
92
  GC             arrow_GC;
 
93
  XtIntervalId   timer; 
 
94
  unsigned char  multiClick;    /* KEEP/DISCARD resource */
 
95
  int            click_count;
 
96
  GC             insensitive_GC;
 
97
 
 
98
   
 
99
  GC             background_GC;
 
100
  GC             top_shadow_GC;
 
101
  GC             bottom_shadow_GC;
 
102
  GC             highlight_GC;
 
103
   
 
104
  Pixel          foreground;
 
105
  Pixel          background;
 
106
   
 
107
  Pixel          top_shadow_color;
 
108
  Pixmap         top_shadow_pixmap;
 
109
   
 
110
  Pixel          bottom_shadow_color;
 
111
  Pixmap         bottom_shadow_pixmap;
 
112
   
 
113
  Pixel          highlight_color;
 
114
  Pixmap         highlight_pixmap;
 
115
 
 
116
  Boolean        fill_bg_box;
 
117
  Dimension detail_shadow_thickness ;
 
118
} XmArrowButtonGadgetPart;
 
119
 
 
120
 
 
121
/*  Full instance record declaration  */
 
122
 
 
123
typedef struct _XmArrowButtonGadgetRec
 
124
{
 
125
   ObjectPart              object;
 
126
   RectObjPart             rectangle;
 
127
   XmGadgetPart            gadget;
 
128
   XmArrowButtonGadgetPart arrowbutton;
 
129
} XmArrowButtonGadgetRec;
 
130
 
 
131
 
 
132
 
 
133
#define ArrowBG_BackgroundGC(w)         (((XmArrowButtonGadget)(w)) -> \
 
134
                                           arrowbutton. background_GC)
 
135
#define ArrowBG_TopShadowGC(w)          (((XmArrowButtonGadget)(w)) -> \
 
136
                                           arrowbutton. top_shadow_GC)
 
137
#define ArrowBG_BottomShadowGC(w)       (((XmArrowButtonGadget)(w)) -> \
 
138
                                           arrowbutton. bottom_shadow_GC)
 
139
#define ArrowBG_HighlightGC(w)          (((XmArrowButtonGadget)(w)) -> \
 
140
                                           arrowbutton. highlight_GC)
 
141
#define ArrowBG_Foreground(w)           (((XmArrowButtonGadget)(w)) -> \
 
142
                                           arrowbutton. foreground)
 
143
#define ArrowBG_Background(w)           (((XmArrowButtonGadget)(w)) -> \
 
144
                                           arrowbutton. background)
 
145
#define ArrowBG_TopShadowColor(w)       (((XmArrowButtonGadget)(w)) -> \
 
146
                                           arrowbutton. top_shadow_color)
 
147
#define ArrowBG_TopShadowPixmap(w)      (((XmArrowButtonGadget)(w)) -> \
 
148
                                           arrowbutton. top_shadow_pixmap)
 
149
#define ArrowBG_BottomShadowColor(w)    (((XmArrowButtonGadget)(w)) -> \
 
150
                                           arrowbutton. bottom_shadow_color)
 
151
#define ArrowBG_BottomShadowPixmap(w)   (((XmArrowButtonGadget)(w)) -> \
 
152
                                           arrowbutton. bottom_shadow_pixmap)
 
153
#define ArrowBG_HighlightColor(w)       (((XmArrowButtonGadget)(w)) -> \
 
154
                                           arrowbutton. highlight_color)
 
155
#define ArrowBG_HighlightPixmap(w)      (((XmArrowButtonGadget)(w)) -> \
 
156
                                           arrowbutton. highlight_pixmap)
 
157
 
 
158
/********    Private Function Declarations    ********/
 
159
 
 
160
 
 
161
/********    End Private Function Declarations    ********/
 
162
 
 
163
 
 
164
#ifdef __cplusplus
 
165
}  /* Close scope of 'extern "C"' declaration which encloses file. */
 
166
#endif
 
167
 
 
168
#endif /* _XmArrowGadgetP_h */
 
169
/* DON'T ADD ANYTHING AFTER THIS #endif */