Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
29
cde/lib/DtSvc/DtXpm/Imakefile
Normal file
29
cde/lib/DtSvc/DtXpm/Imakefile
Normal file
@@ -0,0 +1,29 @@
|
||||
XCOMM $XConsortium: Imakefile /main/5 1996/08/20 14:48:47 drk $
|
||||
#define DoNormalLib NormalLibDtSvc
|
||||
#define DoSharedLib SharedLibDtSvc
|
||||
#define DoDebugLib DebugLibDtSvc
|
||||
#define DoProfileLib ProfileLibDtSvc
|
||||
#define LibName DtSvc
|
||||
#define SoRev SODTSVCREV
|
||||
#define IncSubdir Dt
|
||||
#define LibCreate NO
|
||||
|
||||
#include <Threads.tmpl>
|
||||
|
||||
DEFINES =
|
||||
INCLUDES = -I. -I../include
|
||||
|
||||
|
||||
/* WARNING!!!!
|
||||
* Any .o's added to this list need to be added to DTXPM_OBJS5
|
||||
* and SHARED_DTXPM_OBJS5 in the DtSvc Imakefile.
|
||||
*/
|
||||
HEADERS = xpm.h
|
||||
SRCS = xpm.c
|
||||
OBJS = xpm.o
|
||||
|
||||
#include <Library.tmpl>
|
||||
|
||||
SubdirLibraryRule($(OBJS))
|
||||
|
||||
DependTarget()
|
||||
83
cde/lib/DtSvc/DtXpm/xpm.c
Normal file
83
cde/lib/DtSvc/DtXpm/xpm.c
Normal file
@@ -0,0 +1,83 @@
|
||||
/* $XConsortium: xpm.c /main/1 1996/02/19 16:41:55 lehors $ */
|
||||
/*
|
||||
* (c) Copyright 1996 Digital Equipment Corporation.
|
||||
* (c) Copyright 1996 Hewlett-Packard Company.
|
||||
* (c) Copyright 1996 International Business Machines Corp.
|
||||
* (c) Copyright 1996 Sun Microsystems, Inc.
|
||||
* (c) Copyright 1996 Novell, Inc.
|
||||
* (c) Copyright 1996 FUJITSU LIMITED.
|
||||
* (c) Copyright 1996 Hitachi.
|
||||
*/
|
||||
|
||||
/*****************************************************************************\
|
||||
* *
|
||||
* This is only a wrapper around the Xpm functions which now come as part of *
|
||||
* Motif. This is provided for backward compatibility only and therefore only *
|
||||
* supports symbols declared as private in the elist and none of the internal *
|
||||
* ones. *
|
||||
* *
|
||||
\*****************************************************************************/
|
||||
|
||||
#include <Xm/XpmP.h>
|
||||
|
||||
int _DtXpmCreatePixmapFromData(Display *display,
|
||||
Drawable d,
|
||||
char **data,
|
||||
Pixmap *pixmap_return,
|
||||
Pixmap *shapemask_return,
|
||||
XpmAttributes *attributes)
|
||||
{
|
||||
return XmeXpmCreatePixmapFromData(display, d, data,
|
||||
pixmap_return, shapemask_return,
|
||||
attributes);
|
||||
}
|
||||
|
||||
int _DtXpmReadFileToPixmap(Display *display,
|
||||
Drawable d,
|
||||
char *filename,
|
||||
Pixmap *pixmap_return,
|
||||
Pixmap *shapemask_return,
|
||||
XpmAttributes *attributes)
|
||||
{
|
||||
return XmeXpmReadFileToPixmap(display, d, filename,
|
||||
pixmap_return, shapemask_return,
|
||||
attributes);
|
||||
}
|
||||
|
||||
int _DtXpmWriteFileFromPixmap(Display *display,
|
||||
char *filename,
|
||||
Pixmap pixmap,
|
||||
Pixmap shapemask,
|
||||
XpmAttributes *attributes)
|
||||
{
|
||||
return XmeXpmWriteFileFromPixmap(display, filename,
|
||||
pixmap, shapemask,
|
||||
attributes);
|
||||
}
|
||||
|
||||
int _DtXpmReadFileToImage(Display *display,
|
||||
char *filename,
|
||||
XImage **image_return,
|
||||
XImage **shapeimage_return,
|
||||
XpmAttributes *attributes)
|
||||
{
|
||||
return XmeXpmReadFileToImage(display, filename,
|
||||
image_return, shapeimage_return,
|
||||
attributes);
|
||||
}
|
||||
|
||||
int _DtXpmWriteFileFromImage(Display *display,
|
||||
char *filename,
|
||||
XImage *image,
|
||||
XImage *shapeimage,
|
||||
XpmAttributes *attributes)
|
||||
{
|
||||
return XmeXpmWriteFileFromImage(display, filename,
|
||||
image, shapeimage,
|
||||
attributes);
|
||||
}
|
||||
|
||||
void _DtXpmFreeAttributes(XpmAttributes *attributes)
|
||||
{
|
||||
XmeXpmFreeAttributes(attributes);
|
||||
}
|
||||
68
cde/lib/DtSvc/DtXpm/xpm.h
Normal file
68
cde/lib/DtSvc/DtXpm/xpm.h
Normal file
@@ -0,0 +1,68 @@
|
||||
/* $XConsortium: xpm.h /main/4 1996/02/19 16:42:00 lehors $ */
|
||||
/*
|
||||
* (c) Copyright 1996 Digital Equipment Corporation.
|
||||
* (c) Copyright 1996 Hewlett-Packard Company.
|
||||
* (c) Copyright 1996 International Business Machines Corp.
|
||||
* (c) Copyright 1996 Sun Microsystems, Inc.
|
||||
* (c) Copyright 1996 Novell, Inc.
|
||||
* (c) Copyright 1996 FUJITSU LIMITED.
|
||||
* (c) Copyright 1996 Hitachi.
|
||||
*/
|
||||
|
||||
/*****************************************************************************\
|
||||
* *
|
||||
* This is only a wrapper around the Xpm functions which now come as part of *
|
||||
* Motif. This is provided for backward compatibility only and therefore only *
|
||||
* supports symbols declared as private in the elist and none of the internal *
|
||||
* ones. *
|
||||
* *
|
||||
\*****************************************************************************/
|
||||
|
||||
#ifndef xpm_h
|
||||
#define xpm_h
|
||||
|
||||
#include <Xm/XpmP.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern int _DtXpmCreatePixmapFromData(Display *display,
|
||||
Drawable d,
|
||||
char **data,
|
||||
Pixmap *pixmap_return,
|
||||
Pixmap *shapemask_return,
|
||||
XpmAttributes *attributes);
|
||||
|
||||
extern int _DtXpmReadFileToPixmap(Display *display,
|
||||
Drawable d,
|
||||
char *filename,
|
||||
Pixmap *pixmap_return,
|
||||
Pixmap *shapemask_return,
|
||||
XpmAttributes *attributes);
|
||||
|
||||
extern int _DtXpmWriteFileFromPixmap(Display *display,
|
||||
char *filename,
|
||||
Pixmap pixmap,
|
||||
Pixmap shapemask,
|
||||
XpmAttributes *attributes);
|
||||
|
||||
extern int _DtXpmReadFileToImage(Display *display,
|
||||
char *filename,
|
||||
XImage **image_return,
|
||||
XImage **shapeimage_return,
|
||||
XpmAttributes *attributes);
|
||||
|
||||
extern int _DtXpmWriteFileFromImage(Display *display,
|
||||
char *filename,
|
||||
XImage *image,
|
||||
XImage *shapeimage,
|
||||
XpmAttributes *attributes);
|
||||
|
||||
extern void _DtXpmFreeAttributes(XpmAttributes *attributes);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* for C++ V2.0 */
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user