home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2306 / StrInRect.h < prev    next >
C/C++ Source or Header  |  1990-12-28  |  2KB  |  57 lines

  1. /*
  2.  * Author: Jason Baietto, jason@ssd.csd.harris.com
  3.  * xdiary Copyright 1990 Harris Corporation
  4.  *
  5.  * Permission to use, copy, modify, and distribute, this software and its
  6.  * documentation for any purpose is hereby granted without fee, provided that
  7.  * the above copyright notice appear in all copies and that both that
  8.  * copyright notice and this permission notice appear in supporting
  9.  * documentation, and that the name of the copyright holder be used in
  10.  * advertising or publicity pertaining to distribution of the software with
  11.  * specific, written prior permission, and that no fee is charged for further
  12.  * distribution of this software, or any modifications thereof.  The copyright
  13.  * holder makes no representations about the suitability of this software for
  14.  * any purpose.  It is provided "as is" without express or implied warranty.
  15.  *
  16.  * THE COPYRIGHT HOLDER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  17.  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, AND IN NO
  18.  * EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  19.  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM ITS USE,
  20.  * LOSS OF DATA, PROFITS, QPA OR GPA, WHETHER IN AN ACTION OF CONTRACT,
  21.  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
  22.  * THE USE OR PERFORMANCE OF THIS SOFTWARE.
  23.  */
  24.  
  25. #ifndef _DrawStringInRect_h
  26. #define _DrawStringInRect_h
  27.  
  28. #include "Gravity.h"
  29.  
  30. /*
  31.    Author: Jason Baietto
  32.    Date:   9/22/90
  33.  
  34.    The DrawStringInRect routine draws text in a specified XtRectangle at the
  35.    location specified by the XtGravity parameter.  
  36.  
  37.    The DrawStringsInRects routine does the same thing, but for multiple
  38.    strings.  It is passed a pointer to an array of strings, an array of string
  39.    lengths, and an array of rectangles, thus making it possible for each
  40.    string to specify a different rectangle.
  41.  
  42.    Care must be taken to ensure that the XFontStruct passed in matches the
  43.    font that is specified in the GC that is passed in, otherwise the extent
  44.    measurements will be incorrect and the string will be drawn incorrectly.
  45.  
  46.    Absolutely no error checking is done.  The application is responsible for
  47.    providing a rectangle large enough for the specified string.
  48.  
  49.    You must include this file in your widget or application to use the
  50.    DrawStringInRect routines.
  51. */
  52.  
  53. extern void DrawStringInRect();
  54. extern void DrawStringsInRects();
  55.  
  56. #endif /* _DrawStringInRect_h */
  57.