home *** CD-ROM | disk | FTP | other *** search
/ IRIS Development Option 6.2 / IRIS_Development_Option_6.2_814-0478-001.iso / dist / motif_dev.idb / usr / include / Sgm / ScrollBar.h.z / ScrollBar.h
C/C++ Source or Header  |  1996-03-14  |  7KB  |  175 lines

  1. /*******************************************************************************
  2. ///////   Copyright 1992, Silicon Graphics, Inc.  All Rights Reserved.   ///////
  3. //                                                                            //
  4. // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;     //
  5. // the contents of this file may not be disclosed to third parties, copied    //
  6. // or duplicated in any form, in whole or in part, without the prior written  //
  7. // permission of Silicon Graphics, Inc.                                       //
  8. //                                                                            //
  9. // RESTRICTED RIGHTS LEGEND:                                                  //
  10. // Use,duplication or disclosure by the Government is subject to restrictions //
  11. // as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data     //
  12. // and Computer Software clause at DFARS 252.227-7013, and/or in similar or   //
  13. // successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -    //
  14. // rights reserved under the Copyright Laws of the United States.             //
  15. //                                                                            //
  16. *******************************************************************************/
  17. #ifdef REV_INFO
  18. #ifndef lint
  19. static char SCCSID[] = "OSF/Motif: @(#)ScrollBar.h    4.8 92/01/03";
  20. #endif /* lint */
  21. #endif /* REV_INFO */
  22. /******************************************************************************
  23. *******************************************************************************
  24. *
  25. *  (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  26. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.
  27. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY
  28. *  ALL RIGHTS RESERVED
  29. *  
  30. *      THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED
  31. *  AND COPIED ONLY IN ACCORDANCE WITH THE TERMS OF SUCH LICENSE AND
  32. *  WITH THE INCLUSION OF THE ABOVE COPYRIGHT NOTICE.  THIS SOFTWARE OR
  33. *  ANY OTHER COPIES THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE
  34. *  AVAILABLE TO ANY OTHER PERSON.  NO TITLE TO AND OWNERSHIP OF THE
  35. *  SOFTWARE IS HEREBY TRANSFERRED.
  36. *  
  37. *      THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT
  38. *  NOTICE AND SHOULD NOT BE CONSTRUED AS A COMMITMENT BY OPEN SOFTWARE
  39. *  FOUNDATION, INC. OR ITS THIRD PARTY SUPPLIERS  
  40. *  
  41. *      OPEN SOFTWARE FOUNDATION, INC. AND ITS THIRD PARTY SUPPLIERS,
  42. *  ASSUME NO RESPONSIBILITY FOR THE USE OR INABILITY TO USE ANY OF ITS
  43. *  SOFTWARE .   OSF SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  44. *  KIND, AND OSF EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES, INCLUDING
  45. *  BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  46. *  FITNESS FOR A PARTICULAR PURPOSE.
  47. *  
  48. *  Notice:  Notwithstanding any other lease or license that may pertain to,
  49. *  or accompany the delivery of, this computer software, the rights of the
  50. *  Government regarding its use, reproduction and disclosure are as set
  51. *  forth in Section 52.227-19 of the FARS Computer Software-Restricted
  52. *  Rights clause.
  53. *  
  54. *  (c) Copyright 1989, 1990, 1991, 1992 Open Software Foundation, Inc.  Unpublished - all
  55. *  rights reserved under the Copyright laws of the United States.
  56. *  
  57. *  RESTRICTED RIGHTS NOTICE:  Use, duplication, or disclosure by the
  58. *  Government is subject to the restrictions as set forth in subparagraph
  59. *  (c)(1)(ii) of the Rights in Technical Data and Computer Software clause
  60. *  at DFARS 52.227-7013.
  61. *  
  62. *  Open Software Foundation, Inc.
  63. *  11 Cambridge Center
  64. *  Cambridge, MA   02142
  65. *  (617)621-8700
  66. *  
  67. *  RESTRICTED RIGHTS LEGEND:  This computer software is submitted with
  68. *  "restricted rights."  Use, duplication or disclosure is subject to the
  69. *  restrictions as set forth in NASA FAR SUP 18-52.227-79 (April 1985)
  70. *  "Commercial Computer Software- Restricted Rights (April 1985)."  Open
  71. *  Software Foundation, Inc., 11 Cambridge Center, Cambridge, MA  02142.  If
  72. *  the contract contains the Clause at 18-52.227-74 "Rights in Data General"
  73. *  then the "Alternate III" clause applies.
  74. *  
  75. *  (c) Copyright 1989, 1990, 1991, 1992 Open Software Foundation, Inc.
  76. *  ALL RIGHTS RESERVED 
  77. *  
  78. *  
  79. * Open Software Foundation is a trademark of The Open Software Foundation, Inc.
  80. * OSF is a trademark of Open Software Foundation, Inc.
  81. * OSF/Motif is a trademark of Open Software Foundation, Inc.
  82. * Motif is a trademark of Open Software Foundation, Inc.
  83. * DEC is a registered trademark of Digital Equipment Corporation
  84. * DIGITAL is a registered trademark of Digital Equipment Corporation
  85. * X Window System is a trademark of the Massachusetts Institute of Technology
  86. *
  87. *******************************************************************************
  88. ******************************************************************************/
  89. #ifndef _SgScrollBar_h
  90. #define _SgScrollBar_h
  91.  
  92. #include <Xm/Xm.h>
  93.  
  94. #ifdef __cplusplus
  95. extern "C" {
  96. #endif
  97.  
  98. typedef struct
  99. {
  100.    int reason;
  101.    XEvent * event;
  102.    int value;
  103.    int pixel;
  104. } SgScrollBarCallbackStruct;
  105.  
  106.  
  107.  
  108. /*  ScrollBar Widget  */
  109.  
  110. externalref WidgetClass sgScrollBarWidgetClass;
  111.  
  112. typedef struct _SgScrollBarClassRec * SgScrollBarWidgetClass;
  113. typedef struct _SgScrollBarRec      * SgScrollBarWidget;
  114.  
  115. /* ifndef for Fast Subclassing  */
  116.  
  117. #ifndef SgIsScrollBar
  118. #define SgIsScrollBar(w)    XtIsSubclass(w, sgScrollBarWidgetClass)
  119. #endif  /* XmIsScrollBar */
  120. #define ASBCTroughPixmapCallback "TroughPixmapCallback"
  121. #define ASBNtroughPixmapCallback "troughPixmapCallback"
  122. #define ASBCR_NEED_TROUGH_PIXMAP 99
  123.  
  124. typedef struct
  125. {
  126.   int reason;
  127.   XEvent * event;
  128.   int width, height, depth, maximum;
  129.   Pixmap pixmap;
  130. } ASBCallbackStruct;
  131.  
  132.  
  133. /********    Public Function Declarations    ********/
  134. #ifdef _NO_PROTO
  135.  
  136. extern Widget SgCreateScrollBar() ;
  137. extern void SgScrollBarGetValues() ;
  138. extern void SgScrollBarSetValues() ;
  139. extern void SgScrollBarRedisplay ();
  140. #else
  141. extern void SgScrollBarRedisplay (Widget w);
  142. extern Widget SgCreateScrollBar( 
  143.                         Widget parent,
  144.                         char *name,
  145.                         ArgList arglist,
  146.                         Cardinal argcount) ;
  147. extern void SgScrollBarGetValues( 
  148.                         Widget w,
  149.                         int *value,
  150.                         int *slider_size,
  151.                         int *increment,
  152.                         int *page_increment) ;
  153. extern void SgScrollBarSetValues( 
  154.                         Widget w,
  155.                         int value,
  156.                         int slider_size,
  157.                         int increment,
  158.                         int page_increment,
  159. #if NeedWidePrototypes
  160.                         int notify) ;
  161. #else
  162.                         Boolean notify) ;
  163. #endif /* NeedWidePrototypes */
  164.  
  165. #endif /* _NO_PROTO */
  166. /********    End Public Function Declarations    ********/
  167.  
  168.  
  169. #ifdef __cplusplus
  170. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  171. #endif
  172.  
  173. #endif /* _SgScrollBar_h */
  174. /* DON'T ADD ANYTHING AFTER THIS #endif */
  175.