Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XmeDrawArrow(3X) — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     XmeDrawArrow(3X)          UNIX System V          XmeDrawArrow(3X)



     NAME
          XmeDrawArrow - Draws a Motif-style, three-dimensional arrow

     SYNOPSIS
          #include <Xm/DrawP.h>
          void XmeDrawArrow(
          Display *display,
          Drawable drawable,
          GC topgc,
          GC bottomgc,
          GC centergc,
          Position x,
          Position y,
          Dimension width,
          Dimension height,
          Dimension shadowthickness,
          unsigned char direction);

     VERSION
          This page documents Motif 2.1.

     DESCRIPTION
          XmeDrawArrow draws a Motif-style arrowhead surrounded by
          Motif-style shadows. The routine always draws the arrowhead
          as an equilateral triangle.

          This function does not draw the tail of the arrow.
          Furthermore, this function does not allow you to draw a
          broad range of arrow shapes (for example, you cannot draw a
          curved arrow).  You can, however, control the direction that
          the arrowhead faces.

          Four of the arguments to XmeDrawArrow (x, y, width, and
          height) describe a bounding box. The bounding box encloses
          not only the arrowhead but its shadows as well. XmeDrawArrow
          centers the arrowhead within the bounding box.

          display   Specifies the display on which the arrow is to be
                    rendered.

          drawable  Specifies the drawable in which the arrow is to be
                    rendered.  (Typically, this drawable is a widget
                    window.)

          top_gc    Specifies the graphics context of the shadow that
                    is generally above and to the left of the
                    triangular arrowhead.

          bottom_gc Specifies the graphics context of the shadow that
                    is generally below and to the right of the
                    triangular arrowhead.




     Page 1                                          (printed 1/22/99)





     XmeDrawArrow(3X)          UNIX System V          XmeDrawArrow(3X)



          center_gc Specifies the graphics context of the arrow
                    itself.

                    If center_gc is NULL, the diamond will not be
                    filled, but the shadow will still be drawn.

          x         Specifies the leftmost point of the bounding box.

          y         Specifies the top of the bounding box.

          width     Specifies the width of the bounding box.

          height    Specifies the height of the bounding box.

          shadow_thickness
                    Specifies the thickness of the arrow's shadows in
                    pixels.  At Motif Release 2.0, the only supported
                    values of shadow_thicknessare 0 (no shadow), 1, or
                    2.

          direction Specifies the direction of the arrow. The
                    direction must be one of the following values:
                    XmARROWRIGHT, XmARROWLEFT, XmARROWUP, or
                    XmARROWDOWN.

     RELATED
          XmArrowButton(3).




























     Page 2                                          (printed 1/22/99)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026