Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XmeDrawSeparator(3X) — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     XmeDrawSeparator(3X)      UNIX System V      XmeDrawSeparator(3X)



     NAME
          XmeDrawSeparator - Draws several different types of line-
          based separators

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

     VERSION
          This page documents Motif 2.1.

     DESCRIPTION
          XmeDrawSeparator draws a Motif-style, three-dimensional line
          to separate various components.

          display   Specifies the display.

          drawable  Specifies the drawable on which the separator will
                    be rendered.  Typically, the drawable will be a
                    widget window.

          top_gc    Specifies the graphics context of the top shadow
                    on those separators that have shadows.  (The
                    separators have shadows when the separator_type is
                    XmSHADOWETCHEDIN, XmSHADOWETCHEDOUT,
                    XmSHADOWETCHEDINDASH, or
                    XmSHADOWETCHEDOUTDASH.)  The definition of
                    "top" depends on the values of both the
                    separator_typeand the orientation.  Suppose the
                    separator_type is XmSHADOWETCHEDIN or
                    XmSHADOWETCHEDINDASH.  If the orientation is
                    XmHORIZONTAL, then the top shadow is the shadow
                    above the separator and the bottom shadow is the
                    shadow below the separator. However, if the
                    orientation is XmVERTICAL, then the top shadow is
                    immediately to the left of the separator and the
                    bottom shadow is immediately to the right of the
                    separator.  Now consider the results if the
                    separator_type is XmSHADOWETCHEDOUT or



     Page 1                                          (printed 1/22/99)





     XmeDrawSeparator(3X)      UNIX System V      XmeDrawSeparator(3X)



                    XmSHADOWETCHEDOUTDASH.  If the orientation is
                    XmHORIZONTAL, the top shadow is the shadow below
                    the separator, and the bottom shadow is the shadow
                    above the separator.  However, if the orientation
                    is XmVERTICAL, then the top shadow is immediately
                    to the right of the separator, and the bottom
                    shadow is immediately to the left of the
                    separator.

          bottom_gc Specifies the graphics context of the bottom
                    shadow on those separators that have shadows. (See
                    the description of top_gcfor more information.)

          separator_gc
                    Specifies the graphics context of the separator
                    itself when the separator_type is XmSINGLELINE,
                    XmDOUBLELINE, XmSINGLEDASHEDLINE, or
                    XmDOUBLEDASHEDLINE.

          x         Specifies the x-coordinate of the start of the
                    bounding box, in pixels. The XmeDrawSeparator
                    function will draw the separator centered within
                    the bounding box. However, the separator's exact
                    position depends not only on the bounding box but
                    also on the margin. (See marginfor details.)

          y         Specifies the y-coordinate of the start of the
                    bounding box, in pixels. The separator will be
                    drawn centered within the bounding box. However,
                    the separator's exact position depends not only on
                    the bounding box but also on the margin. (See
                    marginfor details.)

          width     Specifies the width of the bounding box, in
                    pixels.

          height    Specifies the height of the bounding box, in
                    pixels.

          shadow_thickness
                    Specifies the shadow thickness when
                    separator_typeis XmSHADOWETCHEDINDASH,
                    XmSHADOWETCHEDOUTDASH, XmSHADOWETCHEDIN, or
                    XmSHADOWETCHEDOUT.  The value of
                    shadow_thickness has no effect when the
                    separator_type is XmSINGLELINE, XmDOUBLELINE,
                    XmSINGLEDASHEDLINE, XmDOUBLEDASHEDLINE, or
                    XmNOLINE.

          margin    If the orientation is XmHORIZONTAL, margin
                    specifies the gap between the left side of the
                    bounding box and the left endpoint of the



     Page 2                                          (printed 1/22/99)





     XmeDrawSeparator(3X)      UNIX System V      XmeDrawSeparator(3X)



                    separator.  The margin also specifies the gap, in
                    pixels, between the right side of the bounding box
                    and the right endpoint of the separator.  If the
                    orientation is XmVERTICAL, margin specifies the
                    gap between the top side of the bounding box and
                    the top endpoint of the separator.  The margin
                    also specifies the gap, in pixels, between the
                    bottom side of the bounding box and the bottom
                    endpoint of the separator.

          orientation
                    Specifies the orientation of the line, either
                    horizontal (specify XmHORIZONTAL) or vertical
                    (specify XmVERTICAL).

          separator_type
                    Specifies the type of line and shadow to be used
                    as a separator.  The possible values are as
                    follows:

                    XmSINGLELINE
                              Single line

                    XmDOUBLELINE
                              Double line

                    XmSINGLEDASHEDLINE
                              Single-dashed line

                    XmDOUBLEDASHEDLINE
                              Double-dashed line

                    XmNOLINE No line

                    XmSHADOWETCHEDIN
                              A line whose shadows give the effect of
                              a line etched into the window. The
                              thickness of the line is equal to the
                              value of shadow_thickness.

                    XmSHADOWETCHEDOUT
                              A line whose shadows give the effect of
                              an etched line coming out of the window.
                              The thickness of the line is equal to
                              the value of shadow_thickness.

                    XmSHADOWETCHEDINDASH
                              Identical to XmSHADOWETCHEDIN, except
                              that a series of lines creates a dashed
                              line.

                    XmSHADOWETCHEDOUTDASH



     Page 3                                          (printed 1/22/99)





     XmeDrawSeparator(3X)      UNIX System V      XmeDrawSeparator(3X)



                              Identical to XmSHADOWETCHEDOUT, except
                              that a series of lines creates a dashed
                              line.

     RELATED
          XmSeparator(3).

















































     Page 4                                          (printed 1/22/99)



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