1 /* 2 * Motif 3 * 4 * Copyright (c) 1987-2012, The Open Group. All rights reserved. 5 * 6 * These libraries and programs are free software; you can 7 * redistribute them and/or modify them under the terms of the GNU 8 * Lesser General Public License as published by the Free Software 9 * Foundation; either version 2 of the License, or (at your option) 10 * any later version. 11 * 12 * These libraries and programs are distributed in the hope that 13 * they will be useful, but WITHOUT ANY WARRANTY; without even the 14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 15 * PURPOSE. See the GNU Lesser General Public License for more 16 * details. 17 * 18 * You should have received a copy of the GNU Lesser General Public 19 * License along with these librararies and programs; if not, write 20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth 21 * Floor, Boston, MA 02110-1301 USA 22 * 23 */ 24 25 #ifndef _XmHierarchy_h 26 #define _XmHierarchy_h 27 28 #if defined(VMS) || defined(__VMS) 29 #include <X11/apienvset.h> 30 #endif 31 32 #include <Xm/Ext.h> 33 34 /************************************************************ 35 * INCLUDE FILES 36 *************************************************************/ 37 38 /************************************************************ 39 * TYPEDEFS AND DEFINES 40 *************************************************************/ 41 42 #if defined(__cplusplus) 43 extern "C" { 44 #endif 45 46 typedef struct _XmHierarchyClassRec *XmHierarchyWidgetClass; 47 typedef struct _XmHierarchyRec *XmHierarchyWidget; 48 49 typedef struct _XmHierarchyNodeStateData { 50 Widget widget; 51 XmHierarchyNodeState state; 52 } XmHierarchyNodeStateData; 53 54 /************************************************************ 55 * MACROS 56 *************************************************************/ 57 58 /************************************************************ 59 * GLOBAL FUNCTION DECLARATIONS 60 *************************************************************/ 61 62 /* Function Name: XmHierarchyOpenAllAncestors 63 * Description: This function opens all ancestors of the given node. 64 * Arguments: nw - the node (widget) that will be changed. 65 * Returns: none 66 */ 67 68 void XmHierarchyOpenAllAncestors(Widget); 69 70 WidgetList XmHierarchyGetChildNodes(Widget); 71 72 extern WidgetClass xmHierarchyWidgetClass; 73 74 #if defined(__cplusplus) 75 } 76 #endif 77 78 #endif /* _Hierarchy_h */ 79