home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume10 / xt-examples / part03 / Label.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-11-04  |  1.8 KB  |  53 lines

  1. /***********************************************************
  2. Copyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
  3.  
  4.                         All Rights Reserved
  5.  
  6. Permission to use, copy, modify, and distribute these examples for any
  7. purpose and without fee is hereby granted, provided that the above
  8. copyright notice appear in all copies and that both that copyright
  9. notice and this permission notice appear in supporting documentation,
  10. and that the name of Digital not be used in advertising or publicity
  11. pertaining to distribution of the software without specific, written
  12. prior permission.
  13.  
  14. DIGITAL AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  15. SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  16. FITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT
  17. OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  18. OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  19. OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  20. OR PERFORMANCE OF THIS SOFTWARE.
  21.  
  22. ******************************************************************/
  23.  
  24. /* Make it safe to include this file more than once. */
  25. #ifndef LABEL_H
  26. #define LABEL_H
  27.  
  28. /* Label is derived from Core, so no need to include the superclass
  29.    public header file.  */
  30.  
  31. /* New resource */
  32.  
  33. #define XtNloseSelection "loseSelection"
  34. #define XtCLoseSelection "LoseSelection"
  35.  
  36. /* New type for justification */
  37. typedef enum { Center, Left, Right } Justify;
  38.  
  39. /* External reference to the class record pointer */
  40. extern WidgetClass labelWidgetClass;
  41.  
  42. /* Type definition for label widgets */
  43. typedef struct _LabelRec *LabelWidget;
  44.  
  45. /* Method declaration */
  46. extern Boolean LabelSelectText();
  47.     /* Widget    w;        */
  48.     /* Atom    selection;  */
  49.     /* Boolean    select;        */
  50.  
  51. /* End of preprocessor directives */
  52. #endif /* LABEL_H */
  53.