Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
110
cde/lib/DtWidget/View.h
Normal file
110
cde/lib/DtWidget/View.h
Normal file
@@ -0,0 +1,110 @@
|
||||
/* $XConsortium: View.h /main/3 1995/10/26 09:35:11 rswiston $ */
|
||||
/**---------------------------------------------------------------------
|
||||
***
|
||||
*** file: View.h
|
||||
***
|
||||
*** project: MotifPlus Widgets
|
||||
***
|
||||
*** description: Public include file for DtView class.
|
||||
***
|
||||
***
|
||||
*** (c) Copyright 1990 by Hewlett-Packard Company.
|
||||
***
|
||||
***
|
||||
***-------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _DtView_h
|
||||
#define _DtView_h
|
||||
|
||||
#include <Xm/Xm.h>
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Temporary location for resource definition. Need to */
|
||||
/* move into the string defs file. */
|
||||
|
||||
#define XmNsubpanelUnpostOnSelect "subpanelUnpostOnSelect"
|
||||
#define XmCSubpanelUnpostOnSelect "SubpanelUnpostOnSelect"
|
||||
#define XmNsubpanelTorn "subpanelTorn"
|
||||
#define XmCSubpanelTorn "SubpanelTorn"
|
||||
|
||||
/* These macros are also defined in DtStrDefs.h */
|
||||
/* Control->View.h */
|
||||
/* Control.c->Control.h->Icon.h->DtStrDefs.h */
|
||||
|
||||
#ifndef XmNleftInset
|
||||
#define XmNleftInset "leftInset"
|
||||
#endif /* XmNleftInset */
|
||||
|
||||
#ifndef XmNrightInset
|
||||
#define XmNrightInset "rightInset"
|
||||
#endif /* XmNrightInset */
|
||||
|
||||
#ifndef XmNtopInset
|
||||
#define XmNtopInset "topInset"
|
||||
#endif /* XmNtopInset */
|
||||
|
||||
#ifndef XmNbottomInset
|
||||
#define XmNbottomInset "bottomInset"
|
||||
#endif /* XmNbottomInset */
|
||||
|
||||
#ifndef XmNwidthIncrement
|
||||
#define XmNwidthIncrement "widthIncrement"
|
||||
#endif /* XmNwidthIncrement */
|
||||
|
||||
#ifndef XmNheightIncrement
|
||||
#define XmNheightIncrement "heightIncrement"
|
||||
#endif /* XmNheightIncrement */
|
||||
|
||||
#ifndef XmNboxType
|
||||
#define XmNboxType "boxType"
|
||||
#endif /* XmNboxType */
|
||||
|
||||
#ifndef XmCBoxType
|
||||
#define XmCBoxType "BoxType"
|
||||
#endif /* XmCBoxType */
|
||||
|
||||
#ifndef XmRBoxType
|
||||
#define XmRBoxType "BoxType"
|
||||
#endif /* XmRBoxType */
|
||||
|
||||
#define XmBOX_NONE 0
|
||||
#define XmBOX_PRIMARY 1
|
||||
#define XmBOX_SECONDARY 2
|
||||
#define XmBOX_SUBPANEL 3
|
||||
#define XmBOX_SWITCH 4
|
||||
|
||||
#ifndef DtIsView
|
||||
#define DtIsView(w) XtIsSubclass(w, dtViewWidgetClass)
|
||||
#endif /* XmIsView */
|
||||
|
||||
|
||||
extern Widget _DtCreateView();
|
||||
|
||||
extern WidgetClass dtViewWidgetClass;
|
||||
|
||||
typedef struct _DtViewClassRec * DtViewWidgetClass;
|
||||
typedef struct _DtViewRec * DtViewWidget;
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int reason;
|
||||
XEvent * event;
|
||||
int category_index;
|
||||
XmString category;
|
||||
int item_index;
|
||||
XmString item;
|
||||
} DtViewCallbackStruct;
|
||||
|
||||
#define XmCR_SELECT XmCR_SINGLE_SELECT
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
} /* Close scope of 'extern "C"' declaration which encloses file. */
|
||||
#endif
|
||||
|
||||
#endif /* _DtView_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
Reference in New Issue
Block a user