/**
 * Motif
 *
 * Copyright (c) 2025-2026 Tim Hentenaar
 * 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.1 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  _XmDesktopP_h
#define _XmDesktopP_h

#include <Xm/ExtObjectP.h>

#ifdef __cplusplus
extern "C" {
#endif

#ifndef XmIsDesktopObject
#define XmIsDesktopObject(w) XtIsSubclass(w, xmDesktopClass)
#endif /* XmIsDesktopObject */

typedef struct _XmDesktopRec *XmDesktopObject;
typedef struct _XmDesktopClassRec *XmDesktopObjectClass;
externalref WidgetClass xmDesktopClass;

typedef struct _XmDesktopClassPart{
	WidgetClass  child_class;
	XtWidgetProc insert_child; /* physically add child to parent */
	XtWidgetProc delete_child; /* physically remove child        */
	XtPointer    extension;
}XmDesktopClassPart, *XmDesktopClassPartPtr;

typedef struct _XmDesktopClassRec {
	ObjectClassPart    object_class;
	XmExtClassPart     ext_class;
	XmDesktopClassPart desktop_class;
} XmDesktopClassRec;

externalref XmDesktopClassRec xmDesktopClassRec;

typedef struct {
	Widget     parent;
	WidgetList children;
	Cardinal   num_children;
	Cardinal   num_slots;
} XmDesktopPart, *XmDesktopPartPtr;

typedef struct _XmDesktopRec {
	ObjectPart    object;
	XmExtPart     ext;
	XmDesktopPart desktop;
} XmDesktopRec;

#ifdef __cplusplus
}
#endif
#endif  /* _XmDesktopP_h */
