home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / ChildrenUtil.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  4.7 KB  |  127 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. /*-----------------------------------------*/
  19. /*                                                                        */
  20. /* Name:        <Xfe/ChildrenUtil.h>                                    */
  21. /* Description:    Children misc utilities header.                            */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27.  
  28. #ifndef _XfeChildrenUtil_h_                        /* start ChildrenUtil.h    */
  29. #define _XfeChildrenUtil_h_
  30.  
  31. #include <X11/Intrinsic.h>                        /* Xt public defs        */
  32.  
  33. #ifdef __cplusplus                                /* start C++            */
  34. extern "C" {
  35. #endif
  36.  
  37. /*----------------------------------------------------------------------*/
  38. /*                                                                        */
  39. /* Children access                                                        */
  40. /*                                                                        */
  41. /*----------------------------------------------------------------------*/
  42. extern Cardinal        XfeNumChildren            (Widget w);
  43. extern WidgetList    XfeChildren                (Widget w);
  44. extern Widget        XfeChildrenIndex        (Widget w,Cardinal i);
  45. extern Cardinal        XfeChildrenCountAlive    (Widget w);
  46. /*----------------------------------------------------------------------*/
  47.  
  48. /*----------------------------------------------------------------------*/
  49. /*                                                                        */
  50. /* Popup children access                                                */
  51. /*                                                                        */
  52. /*----------------------------------------------------------------------*/
  53. extern Cardinal        XfeNumPopups            (Widget w);
  54. extern WidgetList    XfePopupList            (Widget w);
  55. extern Widget        XfePopupListIndex        (Widget w,Cardinal i);
  56. extern Cardinal        XfePopupListCountAlive    (Widget w);
  57. /*----------------------------------------------------------------------*/
  58.  
  59. /*----------------------------------------------------------------------*/
  60. /*                                                                        */
  61. /* Children access                                                        */
  62. /*                                                                        */
  63. /*----------------------------------------------------------------------*/
  64. extern void
  65. XfeChildrenGet                (Widget            w,
  66.                              WidgetList *    children,
  67.                              Cardinal *        num_children);
  68. /*----------------------------------------------------------------------*/
  69. extern Cardinal
  70. XfeChildrenGetNumManaged    (Widget            w);
  71. /*----------------------------------------------------------------------*/
  72. extern Widget
  73. XfeChildrenGetLast            (Widget            w);
  74. /*----------------------------------------------------------------------*/
  75. extern int
  76. XfeChildGetIndex            (Widget            w);
  77. /*----------------------------------------------------------------------*/
  78.  
  79. /*----------------------------------------------------------------------*/
  80. /*                                                                        */
  81. /* Destroy                                                                */
  82. /*                                                                        */
  83. /*----------------------------------------------------------------------*/
  84. extern void
  85. XfeChildrenDestroy            (Widget            w);
  86. /*----------------------------------------------------------------------*/
  87.  
  88. /*----------------------------------------------------------------------*/
  89. /*                                                                        */
  90. /* Callbacks / Event handlers                                            */
  91. /*                                                                        */
  92. /*----------------------------------------------------------------------*/
  93. extern void
  94. XfeChildrenAddCallback        (Widget            w,
  95.                              String            callback_name,
  96.                              XtCallbackProc    callback,
  97.                              XtPointer        data);
  98. /*----------------------------------------------------------------------*/
  99. extern void
  100. XfeChildrenAddEventHandler    (Widget            w,
  101.                              EventMask        event_mask,
  102.                              Boolean        nonmaskable,
  103.                              XtEventHandler    proc,
  104.                              XtPointer        data);
  105. /*----------------------------------------------------------------------*/
  106. extern void
  107. XfeChildrenRemoveCallback    (Widget            w,
  108.                              String            callback_name,
  109.                              XtCallbackProc    callback,
  110.                              XtPointer        data);
  111. /*----------------------------------------------------------------------*/
  112. extern void
  113. XfeChildrenRemoveEventHandler(Widget            w,
  114.                               EventMask            event_mask,
  115.                               Boolean            nonmaskable,
  116.                               XtEventHandler    proc,
  117.                               XtPointer            data);
  118. /*----------------------------------------------------------------------*/
  119.  
  120.  
  121.  
  122. #ifdef __cplusplus                                /* end C++                */
  123. }
  124. #endif
  125.  
  126. #endif                                            /* end ChildrenUtil.h    */
  127.