The toolkit MCDE is built with, from now on part of MCDE and installed with it: the same Motif on every system, whatever the system has (the host's Motif 2.3.8 without pkgsrc's patches made dtsystemsettings crash in XmStringExtent). The archive as it is (sha512 in IMPORT); pkgsrc's patches and the build follow as commits of their own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
106 lines
2.9 KiB
C
106 lines
2.9 KiB
C
/*
|
|
* Motif
|
|
*
|
|
* Copyright (c) 1987-2012, The Open Group. All rights reserved.
|
|
*
|
|
* These libraries and programs are free software; you can
|
|
* redistribute them and/or modify them under the terms of the GNU
|
|
* Lesser General Public License as published by the Free Software
|
|
* Foundation; either version 2 of the License, or (at your option)
|
|
* any later version.
|
|
*
|
|
* These libraries and programs are distributed in the hope that
|
|
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
* PURPOSE. See the GNU Lesser General Public License for more
|
|
* details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with these librararies and programs; if not, write
|
|
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
* Floor, Boston, MA 02110-1301 USA
|
|
*
|
|
*/
|
|
|
|
#ifndef _XmIconBox_h
|
|
#define _XmIconBox_h
|
|
|
|
#if defined(VMS) || defined(__VMS)
|
|
#include <X11/apienvset.h>
|
|
#endif
|
|
|
|
#include <Xm/Ext.h>
|
|
|
|
/************************************************************
|
|
* INCLUDE FILES
|
|
*************************************************************/
|
|
|
|
/************************************************************
|
|
* TYPEDEFS AND DEFINES
|
|
*************************************************************/
|
|
|
|
#if defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define XmIconBoxAnyCell (-5)
|
|
|
|
typedef struct _XmIconBoxClassRec *XmIconBoxWidgetClass;
|
|
typedef struct _XmIconBoxRec *XmIconBoxWidget;
|
|
|
|
typedef struct _XmIconBoxDropData {
|
|
Position cell_x, cell_y; /* drop location in cell coordinates. */
|
|
} XmIconBoxDropData;
|
|
|
|
/************************************************************
|
|
* MACROS
|
|
*************************************************************/
|
|
|
|
/************************************************************
|
|
* GLOBAL DECLARATIONS
|
|
*************************************************************/
|
|
|
|
/* Function Name: XmIconBoxIsCellEmpty
|
|
* Description: Returns true if this cell is unused.
|
|
* Arguments: w - the icon box.
|
|
* x, y - cell to check.
|
|
* ignore - ignore this widget when checking.
|
|
* Returns: Returns true if this cell is unused.
|
|
*/
|
|
|
|
Boolean XmIconBoxIsCellEmpty(
|
|
#ifndef _NO_PROTO
|
|
Widget, Position, Position, Widget
|
|
#endif
|
|
);
|
|
|
|
/* Function Name: XmCreateIconBox
|
|
* Description: Creation Routine for UIL and ADA.
|
|
* Arguments: parent - the parent widget.
|
|
* name - the name of the widget.
|
|
* args, num_args - the number and list of args.
|
|
* Returns: The Widget created.
|
|
*/
|
|
|
|
Widget XmCreateIconBox(
|
|
#ifndef _NO_PROTO
|
|
Widget, String, ArgList, Cardinal
|
|
#endif
|
|
);
|
|
|
|
/************************************************************
|
|
* EXTERNAL DECLARATIONS
|
|
*************************************************************/
|
|
|
|
extern WidgetClass xmIconBoxWidgetClass;
|
|
|
|
#if defined(__cplusplus)
|
|
}
|
|
#endif
|
|
|
|
#if defined(VMS) || defined(__VMS)
|
|
#include <X11/apienvrst.h>
|
|
#endif
|
|
|
|
#endif /* _XmIconBox_h */
|