Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
118
cde/programs/dtprintinfo/libUI/MotifUI/IconP.h
Normal file
118
cde/programs/dtprintinfo/libUI/MotifUI/IconP.h
Normal file
@@ -0,0 +1,118 @@
|
||||
/* $XConsortium: IconP.h /main/4 1995/11/06 09:42:03 rswiston $ */
|
||||
/* *
|
||||
* (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 Novell, Inc. *
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* IconP.H - widget private header file
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
#ifndef _IconP_h
|
||||
#define _IconP_h
|
||||
|
||||
#include <Xm/XmP.h>
|
||||
#include <Xm/PrimitiveP.h>
|
||||
|
||||
#include "Icon.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define Max(x, y) (((x) > (y)) ? (x) : (y))
|
||||
|
||||
typedef struct _IconClassPart {
|
||||
int reserved;
|
||||
} IconClassPart;
|
||||
|
||||
typedef struct _IconClassRec {
|
||||
CoreClassPart core_class;
|
||||
XmPrimitiveClassPart primitive_class;
|
||||
IconClassPart icon_class;
|
||||
} IconClassRec;
|
||||
|
||||
extern IconClassRec iconClassRec;
|
||||
|
||||
typedef struct _IconPart {
|
||||
/* Public Resources */
|
||||
XmString label;
|
||||
XmString top_label;
|
||||
XmString bottom_label;
|
||||
Pixmap pixmap;
|
||||
Pixmap mask;
|
||||
Pixmap state_pixmap;
|
||||
Pixmap state_mask;
|
||||
unsigned char state_gravity;
|
||||
Pixel select_color;
|
||||
XmFontList font;
|
||||
unsigned char alignment;
|
||||
unsigned char string_direction;
|
||||
unsigned char icon_placement;
|
||||
unsigned char icon_shadow_type;
|
||||
Boolean active;
|
||||
Boolean select_color_persistent;
|
||||
Boolean shrink_outline;
|
||||
Boolean word_wrap;
|
||||
Boolean selected;
|
||||
Boolean show_selected_pixmap;
|
||||
Boolean resize_width;
|
||||
Boolean resize_height;
|
||||
Dimension icon_shadow_thickness;
|
||||
Dimension icon_margin_thickness; /* margin around widget */
|
||||
XtCallbackList single_click_callback;
|
||||
XtCallbackList double_click_callback;
|
||||
GuiIconFields fields;
|
||||
|
||||
/* Private stuff */
|
||||
GC gc;
|
||||
GC stipple_gc;
|
||||
GC selected_fg_gc;
|
||||
GC selected_bg_gc;
|
||||
GC mask_gc;
|
||||
GC state_mask_gc;
|
||||
GC mask_stipple_gc;
|
||||
Pixel select_label_color;
|
||||
XmString wrapped_label;
|
||||
XmRegion shadow_region;
|
||||
XmRegion highlight_region;
|
||||
Position pixmap_x;
|
||||
Position pixmap_y;
|
||||
Position label_x;
|
||||
Position label_y;
|
||||
Position top_label_x;
|
||||
Position top_label_y;
|
||||
Position bottom_label_x;
|
||||
Position bottom_label_y;
|
||||
Position state_pixmap_x;
|
||||
Position state_pixmap_y;
|
||||
Dimension pixmap_width;
|
||||
Dimension pixmap_height;
|
||||
Dimension top_label_width;
|
||||
Dimension top_label_height;
|
||||
Dimension bottom_label_width;
|
||||
Dimension bottom_label_height;
|
||||
Dimension label_width;
|
||||
Dimension label_height;
|
||||
Dimension state_pixmap_width;
|
||||
Dimension state_pixmap_height;
|
||||
Time old_time;
|
||||
Boolean old_shrink_outline;
|
||||
} IconPart;
|
||||
|
||||
typedef struct _IconRec {
|
||||
CorePart core;
|
||||
XmPrimitivePart primitive;
|
||||
IconPart icon;
|
||||
} IconRec;
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* Close scope of 'extern "C"' declaration which encloses file. */
|
||||
#endif
|
||||
|
||||
#endif /* _IconP_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
Reference in New Issue
Block a user