home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / Draw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  5.0 KB  |  158 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/Draw.h>                                            */
  21. /* Description:    Xfe widgets drawing functions header file.                */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeDraw_h_                                /* start Draw.h            */
  28. #define _XfeDraw_h_
  29.  
  30. #include <Xm/Xm.h>
  31.  
  32. #ifdef __cplusplus                                /* start C++            */
  33. extern "C" {
  34. #endif
  35.  
  36. /*----------------------------------------------------------------------*/
  37. /*                                                                        */
  38. /* Drawing functions                                                    */
  39. /*                                                                        */
  40. /*----------------------------------------------------------------------*/
  41. extern void
  42. XfeDrawRectangle            (Display *        dpy,
  43.                              Drawable        d,
  44.                              GC                gc,
  45.                              Position        x,
  46.                              Position        y,
  47.                              Dimension        width,
  48.                              Dimension        height,
  49.                              Dimension        thickness);
  50. /*----------------------------------------------------------------------*/
  51. extern void
  52. XfeClearRectangle            (Display *        dpy,
  53.                              Drawable        d,
  54.                              Position        x,
  55.                              Position        y,
  56.                              Dimension        width,
  57.                              Dimension        height,
  58.                              Dimension        thickness,
  59.                              Boolean        exposures);
  60. /*----------------------------------------------------------------------*/
  61. extern void
  62. XfeDrawCross                (Display *        dpy,
  63.                              Drawable        d,
  64.                              GC                gc,
  65.                              Position        x,
  66.                              Position        y,
  67.                              Dimension        width,
  68.                              Dimension        height,
  69.                              Dimension        thickness);
  70. /*----------------------------------------------------------------------*/
  71. extern void
  72. XfeDrawArrow                (Display *        dpy,
  73.                              Drawable        d,
  74.                              GC                gc,
  75.                              Position        x,
  76.                              Position        y,
  77.                              Dimension        width,
  78.                              Dimension        height,
  79.                              unsigned char    direction);
  80. /*----------------------------------------------------------------------*/
  81. extern void
  82. XfeDrawMotifArrow            (Display *        dpy,
  83.                              Drawable        d,
  84.                              GC                top_gc,
  85.                              GC                bottom_gc,
  86.                              GC                center_gc,
  87.                              Position        x,
  88.                              Position        y,
  89.                              Dimension        width,
  90.                              Dimension        height,
  91.                              unsigned char    direction,
  92.                              Dimension        shadow_thickness,
  93.                              Boolean        swap);
  94. /*----------------------------------------------------------------------*/
  95. extern void
  96. XfeDrawVerticalLine            (Display *        dpy,
  97.                              Drawable        d,
  98.                              GC                gc,
  99.                              Position        x,
  100.                              Position        y,
  101.                              Dimension        height,
  102.                              Dimension        thickness);
  103. /*----------------------------------------------------------------------*/
  104. extern void
  105. XfeDrawHorizontalLine        (Display *        dpy,
  106.                              Drawable        d,
  107.                              GC                gc,
  108.                              Position        x,
  109.                              Position        y,
  110.                              Dimension        width,
  111.                              Dimension        thickness);
  112. /*----------------------------------------------------------------------*/
  113. extern void
  114. XfeStippleRectangle            (Display *        dpy,
  115.                              Drawable        d,
  116.                              GC                gc,
  117.                              Position        x,
  118.                              Position        y,
  119.                              Dimension        width,
  120.                              Dimension        height,
  121.                              Dimension        step);
  122. /*----------------------------------------------------------------------*/
  123.  
  124. /*----------------------------------------------------------------------*/
  125. /*                                                                        */
  126. /* Drawable functions                                                    */
  127. /*                                                                        */
  128. /*----------------------------------------------------------------------*/
  129. extern Boolean
  130. XfeDrawableGetGeometry        (Display *        dpy,
  131.                              Drawable        d,
  132.                              Position *        x_out,
  133.                              Position *        y_out,
  134.                              Dimension *    width_out,
  135.                              Dimension *    height_out);
  136. /*----------------------------------------------------------------------*/
  137.  
  138. /*----------------------------------------------------------------------*/
  139. /*                                                                        */
  140. /* Shadow functions                                                        */
  141. /*                                                                        */
  142. /*----------------------------------------------------------------------*/
  143. extern void
  144. XfeDrawShadowsAroundWidget    (Widget            parent,
  145.                              Widget            child,
  146.                              GC                top_gc,
  147.                              GC                bottom_gc,
  148.                              Dimension        offset,
  149.                              Dimension        shadow_thickness,
  150.                              unsigned char    shadow_type);
  151. /*----------------------------------------------------------------------*/
  152.  
  153. #ifdef __cplusplus                                /* end C++                */
  154. }
  155. #endif
  156.  
  157. #endif                                            /* end Draw.h            */
  158.