home *** CD-ROM | disk | FTP | other *** search
/ IRIS Development Option 6.2 / IRIS_Development_Option_6.2_814-0478-001.iso / dist / motif_dev.idb / usr / include / Sgm / ArcP.h.z / ArcP.h
C/C++ Source or Header  |  1996-03-14  |  4KB  |  109 lines

  1. /*******************************************************************************
  2. ///////   Copyright 1992, Silicon Graphics, Inc.  All Rights Reserved.   ///////
  3. //                                                                            //
  4. // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;     //
  5. // the contents of this file may not be disclosed to third parties, copied    //
  6. // or duplicated in any form, in whole or in part, without the prior written  //
  7. // permission of Silicon Graphics, Inc.                                       //
  8. //                                                                            //
  9. // RESTRICTED RIGHTS LEGEND:                                                  //
  10. // Use,duplication or disclosure by the Government is subject to restrictions //
  11. // as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data     //
  12. // and Computer Software clause at DFARS 252.227-7013, and/or in similar or   //
  13. // successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -    //
  14. // rights reserved under the Copyright Laws of the United States.             //
  15. //                                                                            //
  16. *******************************************************************************/
  17. #ifndef ARCP_H
  18. #define ARCP_H
  19.     
  20. #include <Xm/Xm.h>
  21. #include <Sgm/Arc.h>
  22.     
  23. typedef struct arclist {
  24.     WidgetList  arcs;
  25.     int         n_arcs;
  26.     int         n_slots;
  27. } ArcList;
  28.  
  29. #ifdef NEVER
  30. I get this when compiling Graph.o:
  31. "./ArcP.h", line 28: warning(1204): declaration is not visible outside of
  32.           function
  33.   typedef void (*DispatchProc) (  struct _SgArcRec *arc, XEvent     *event,
  34.  Mask        event_mask);
  35.                                          ^
  36. #endif /* NEVER */
  37. typedef void (*DispatchProc) (  struct _SgArcRec *arc, XEvent     *event,   Mask        event_mask);
  38.  
  39. typedef struct _SgArcClassPart{
  40.     DispatchProc         input_dispatch;
  41. #ifdef __sgi /* Allow future extensions without breaking shared library compatibility */
  42.     caddr_t _SG_vendorExtension;
  43. #endif /* __sgi */
  44. } SgArcClassPart;
  45.  
  46.  
  47. typedef struct _SgArcClassRec {
  48.     CoreClassPart    core_class;
  49.     SgArcClassPart    arc_class;
  50. } SgArcClassRec;
  51.  
  52. externalref SgArcClassRec sgArcClassRec;
  53.  
  54. typedef struct _SgArcPart {
  55.     int          width, dashes, dash_offset;
  56.     unsigned char direction, style, cap_style;
  57.     Atom          attribute;
  58.  
  59.     Widget       to;
  60.     Widget       from;
  61.  
  62.     short   to_side, from_side;
  63.     short    to_pos, from_pos;
  64.  
  65.     Pixel     foreground;
  66.     Boolean      highlight;
  67.  
  68.     Boolean      visible;
  69.  
  70.     XmFontList     font;  
  71.     _XmString    label;
  72.     Dimension    labelwidth, labelheight;
  73.     Boolean      map_name;
  74.  
  75.     ArcList      *siblings;
  76.     GC           gc;
  77.     GC           cleargc;
  78.     XtCallbackList arm_callback;
  79.     XtCallbackList activate_callback;
  80.     XtCallbackList disarm_callback;
  81.  
  82.     XtPointer      user_data;
  83.     Boolean        armed;
  84.     int            rank;
  85. #ifdef __sgi /* Allow future extensions without breaking shared library compatibility */
  86.     caddr_t _SG_vendorExtension;
  87. #endif /* __sgi */
  88. } SgArcPart;
  89.  
  90. typedef struct _SgArcRec {
  91.     CorePart    core;
  92.     SgArcPart    arc;
  93. } SgArcRec;
  94.  
  95.  
  96. /* externs, mainly used in Graph.c.  Definitely not public. */
  97. void _SgArcGetPoints      (Widget arc,
  98.                    int f_x, int f_y, int f_width, int f_height,
  99.                    int t_x, int t_y, int t_width, int t_height,
  100.                    int *X1, int *Y1, int *X2, int *Y2);
  101. Region _SgArcAddRegionToRegion(Region region1, Region region2);
  102. int _SgArc_sibling_rank   (Widget arc);
  103. void _SgArcEraseArc       (Widget arc);
  104. void _SgArcUnhighlightArc (Widget w);
  105. void _SgArcHighlightArc   (Widget w);
  106. Region SgArcGetRegion     (Widget w);
  107.  
  108. #endif /* ARCP_H */
  109.