Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
64
cde/examples/dtdnd/icon.h
Normal file
64
cde/examples/dtdnd/icon.h
Normal file
@@ -0,0 +1,64 @@
|
||||
/* $XConsortium: icon.h /main/3 1995/10/27 10:39:18 rswiston $ */
|
||||
/*****************************************************************************
|
||||
*****************************************************************************
|
||||
**
|
||||
** File: icon.h
|
||||
**
|
||||
** Description: Header for icon handling portion of CDE Drag & Drop Demo.
|
||||
**
|
||||
** (c) Copyright 1993, 1994 Hewlett-Packard Company
|
||||
** (c) Copyright 1993, 1994 International Business Machines Corp.
|
||||
** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||
** (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of
|
||||
** Novell, Inc.
|
||||
**
|
||||
****************************************************************************
|
||||
************************************<+>*************************************/
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <stdio.h>
|
||||
|
||||
/*
|
||||
* Icon Information Structure
|
||||
*/
|
||||
|
||||
typedef struct _IconInfo {
|
||||
XRectangle icon;
|
||||
char *name;
|
||||
void *data;
|
||||
int dataCount;
|
||||
Pixmap bitmap;
|
||||
Pixmap mask;
|
||||
Widget dragIcon;
|
||||
int type;
|
||||
struct _IconInfo *next;
|
||||
struct _IconInfo *prev;
|
||||
} IconInfo;
|
||||
|
||||
/*
|
||||
* Icon Typedefs
|
||||
*/
|
||||
|
||||
typedef enum {
|
||||
IconBitmap,
|
||||
IconMask
|
||||
} IconBitmapPart;
|
||||
|
||||
typedef enum {
|
||||
IconByFile,
|
||||
IconByData,
|
||||
IconByType
|
||||
} IconTyping;
|
||||
|
||||
/*
|
||||
* Public Icon Handling Function Declarations
|
||||
*/
|
||||
|
||||
void IconCreateDouble(Widget, IconInfo*, int, int, IconInfo*,
|
||||
short, short);
|
||||
void IconDelete(Widget, IconInfo*);
|
||||
void IconDraw(Widget, IconInfo*);
|
||||
void IconInitialize(Widget, IconInfo*, short, short, void*, int,
|
||||
char*, IconTyping);
|
||||
IconInfo *IconNew();
|
||||
|
||||
Reference in New Issue
Block a user