home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / BmButton.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  6.3 KB  |  170 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/BmButton.h>                                        */
  21. /* Description:    XfeBmButton widget public header file.                    */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeBmButton_h_                            /* start BmButton.h        */
  28. #define _XfeBmButton_h_
  29.  
  30. #include <Xfe/Xfe.h>
  31.  
  32. #ifdef __cplusplus                                /* start C++            */
  33. extern "C" {
  34. #endif
  35.  
  36. /*----------------------------------------------------------------------*/
  37. /*                                                                        */
  38. /* XmRAccentType                                                        */
  39. /*                                                                        */
  40. /*----------------------------------------------------------------------*/
  41. enum
  42. {
  43.     XmACCENT_NONE,
  44.     XmACCENT_BOTTOM,
  45.     XmACCENT_TOP,
  46.     XmACCENT_ALL
  47. };
  48. /*----------------------------------------------------------------------*/
  49.  
  50. /*----------------------------------------------------------------------*/
  51. /*                                                                        */
  52. /* Accent filing mode                                                    */
  53. /*                                                                        */
  54. /*----------------------------------------------------------------------*/
  55. typedef enum
  56. {
  57.     XmACCENT_FILE_ANYWHERE,
  58.     XmACCENT_FILE_SELF
  59. } XfeAccentFileMode;
  60. /*----------------------------------------------------------------------*/
  61.  
  62. /*----------------------------------------------------------------------*/
  63. /*                                                                        */
  64. /* XfeBmButton class names                                                */
  65. /*                                                                        */
  66. /*----------------------------------------------------------------------*/
  67. externalref WidgetClass xfeBmButtonWidgetClass;
  68.     
  69. typedef struct _XfeBmButtonClassRec *        XfeBmButtonWidgetClass;
  70. typedef struct _XfeBmButtonRec *            XfeBmButtonWidget;
  71.  
  72. /*----------------------------------------------------------------------*/
  73. /*                                                                        */
  74. /* XfeBmButton subclass test macro                                        */
  75. /*                                                                        */
  76. /*----------------------------------------------------------------------*/
  77. #define XfeIsBmButton(w)    XtIsSubclass(w,xfeBmButtonWidgetClass)
  78.  
  79. /*----------------------------------------------------------------------*/
  80. /*                                                                        */
  81. /* XfeBmButton public functions                                            */
  82. /*                                                                        */
  83. /*----------------------------------------------------------------------*/
  84. extern Widget
  85. XfeCreateBmButton            (Widget            parent,
  86.                              char *            name,
  87.                              Arg *            args,
  88.                              Cardinal        count);
  89. /*----------------------------------------------------------------------*/
  90.  
  91.  
  92. /*----------------------------------------------------------------------*/
  93. /*                                                                        */
  94. /* Accent enabled/disabled functions                                    */
  95. /*                                                                        */
  96. /*----------------------------------------------------------------------*/
  97. extern void
  98. XfeBmAccentDisable            (void);
  99. /*----------------------------------------------------------------------*/
  100. extern void
  101. XfeBmAccentEnable            (void);
  102. /*----------------------------------------------------------------------*/
  103. extern Boolean
  104. XfeBmAccentIsEnabled        (void);
  105. /*----------------------------------------------------------------------*/
  106.  
  107.  
  108. /*----------------------------------------------------------------------*/
  109. /*                                                                        */
  110. /* Global BmButton/BmCascade accent offset values set/get functions        */
  111. /*                                                                        */
  112. /*----------------------------------------------------------------------*/
  113. extern void
  114. XfeBmAccentSetOffsetLeft        (Dimension        offset_left);
  115. /*----------------------------------------------------------------------*/
  116. extern void
  117. XfeBmAccentSetOffsetRight        (Dimension        offset_right);
  118. /*----------------------------------------------------------------------*/
  119. extern void
  120. XfeBmAccentSetShadowThickness    (Dimension        shadow_thickness);
  121. /*----------------------------------------------------------------------*/
  122. extern void
  123. XfeBmAccentSetThickness            (Dimension        thickness);
  124. /*----------------------------------------------------------------------*/
  125. extern Dimension
  126. XfeBmAccentGetOffsetLeft        (void);
  127. /*----------------------------------------------------------------------*/
  128. extern Dimension
  129. XfeBmAccentGetOffsetRight        (void);
  130. /*----------------------------------------------------------------------*/
  131. extern Dimension
  132. XfeBmAccentGetShadowThickness    (void);
  133. /*----------------------------------------------------------------------*/
  134. extern Dimension
  135. XfeBmAccentGetThickness            (void);
  136. /*----------------------------------------------------------------------*/
  137.  
  138.  
  139. /*----------------------------------------------------------------------*/
  140. /*                                                                        */
  141. /* Global BmButton/BmCascade accent filing mode.                        */
  142. /*                                                                        */
  143. /*----------------------------------------------------------------------*/
  144. extern void
  145. XfeBmAccentSetFileMode            (XfeAccentFileMode    file_mode);
  146. /*----------------------------------------------------------------------*/
  147. extern XfeAccentFileMode
  148. XfeBmAccentGetFileMode            (void);
  149. /*----------------------------------------------------------------------*/
  150.  
  151.  
  152. /*----------------------------------------------------------------------*/
  153. /*                                                                        */
  154. /* Global BmButton/BmCascade pixmap offset values set/get functions        */
  155. /*                                                                        */
  156. /*----------------------------------------------------------------------*/
  157. extern void
  158. XfeBmPixmapSetOffset            (Dimension        offset_lefft);
  159. /*----------------------------------------------------------------------*/
  160. extern Dimension
  161. XfeBmPixmapGetOffset            (void);
  162. /*----------------------------------------------------------------------*/
  163.  
  164.  
  165. #ifdef __cplusplus                                /* end C++                */
  166. }
  167. #endif
  168.  
  169. #endif                                            /* end BmPushB.h        */
  170.