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

« back to all changes in this revision

Viewing changes to lib/Xm/ImageCachI.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
/*
 
38
 * HISTORY
 
39
 */
 
40
/* $XConsortium: ImageCachI.h /main/7 1996/01/29 13:19:43 daniel $ */
 
41
#ifndef _XmImageCacheI_h
 
42
#define _XmImageCacheI_h
 
43
 
 
44
#include <Xm/XmP.h>
 
45
 
 
46
/* this name is used by XmeGetPixmapData to cache a pixmap in the
 
47
   pixmap cache with no associated name. _XmCachePixmap knows about it
 
48
   and will not add this one in the pixmap_data cache because it is a
 
49
   _name_ based pixmap cache used during conversion */
 
50
#define DIRECT_PIXMAP_CACHED ""
 
51
 
 
52
#ifdef __cplusplus
 
53
extern "C" {
 
54
#endif
 
55
 
 
56
/********    Private Function Declarations for ImageCache.c    ********/
 
57
 
 
58
extern Boolean _XmInstallImage( 
 
59
                        XImage *image,
 
60
                        char *image_name,
 
61
                        int hot_x,
 
62
                        int hot_y) ;
 
63
extern Boolean _XmGetImage( 
 
64
                        Screen *screen,
 
65
                        char *image_name,
 
66
                        XImage **image) ;
 
67
extern Boolean _XmCachePixmap( 
 
68
                              Pixmap pixmap,
 
69
                              Screen *screen,
 
70
                              char *image_name,
 
71
                              Pixel foreground,
 
72
                              Pixel background,
 
73
                              int depth,
 
74
                              Dimension width,
 
75
                              Dimension height) ;
 
76
extern Pixmap _XmGetColoredPixmap(Screen *screen,
 
77
                                  char *image_name,
 
78
                                  XmAccessColorData acc_color,
 
79
                                  int depth,
 
80
#if NeedWidePrototypes
 
81
                                  int only_if_exists) ;
 
82
#else
 
83
                                  Boolean only_if_exists) ;
 
84
#endif /* NeedWidePrototypes */
 
85
 
 
86
extern Boolean _XmGetPixmapData(
 
87
                   Screen *screen,
 
88
                   Pixmap pixmap,
 
89
                   char **image_name,
 
90
                   int *depth,
 
91
                   Pixel *foreground,
 
92
                   Pixel *background,
 
93
                   int *hot_x,
 
94
                   int *hot_y,
 
95
                   unsigned int *width,
 
96
                   unsigned int *height) ;
 
97
extern Boolean _XmInImageCache(
 
98
                               String image_name);
 
99
 
 
100
extern Pixmap _XmGetScaledPixmap(
 
101
    Screen *screen,
 
102
    Widget widget,
 
103
    char *image_name,
 
104
    XmAccessColorData acc_color,
 
105
    int depth,
 
106
#if NeedWidePrototypes
 
107
    int only_if_exists,
 
108
#else
 
109
    Boolean only_if_exists,
 
110
#endif /* NeedWidePrototypes */
 
111
    double scaling_ratio);
 
112
 
 
113
extern void _XmPutScaledImage (    
 
114
    Display*             display ,
 
115
    Drawable             d ,
 
116
    GC                   gc ,
 
117
    XImage*              src_image ,
 
118
    int                  src_x ,
 
119
    int                  src_y ,
 
120
    int                  dest_x ,
 
121
    int                  dest_y ,
 
122
    unsigned int         src_width ,
 
123
    unsigned int         src_height, 
 
124
    unsigned int         dest_width ,
 
125
    unsigned int         dest_height);
 
126
 
 
127
extern void _XmCleanPixmapCache(Screen * screen, Widget shell);
 
128
 
 
129
/* for Xm.h */
 
130
extern Pixmap XmGetScaledPixmap(
 
131
    Widget widget,
 
132
    char *image_name,
 
133
    Pixel foreground,
 
134
    Pixel background,
 
135
    int depth,
 
136
    double scaling_ratio);
 
137
 
 
138
/********    End Private Function Declarations    ********/
 
139
 
 
140
#ifdef __cplusplus
 
141
}  /* Close scope of 'extern "C"' declaration which encloses file. */
 
142
#endif
 
143
 
 
144
#endif /* _XmImageCacheI_h */
 
145
/* DON'T ADD ANYTHING AFTER THIS #endif */