home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / ArrowP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  3.8 KB  |  108 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. /*-----------------------------------------*/
  19. /*                                                                        */
  20. /* Name:        <Xfe/ArrowP.h>                                            */
  21. /* Description:    XfeArrow widget private header file.                    */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeArrowP_h_                            /* start ArrowP.h        */
  28. #define _XfeArrowP_h_
  29.  
  30. #include <Xfe/Arrow.h>
  31. #include <Xfe/ButtonP.h>
  32.  
  33. #ifdef __cplusplus                                /* start C++            */
  34. extern "C" {
  35. #endif
  36.    
  37. /*----------------------------------------------------------------------*/
  38. /*                                                                        */
  39. /* XfeArrowClassPart                                                    */
  40. /*                                                                        */
  41. /*----------------------------------------------------------------------*/
  42. typedef struct
  43. {
  44.     XtPointer        extension;                    /* Extension            */
  45. } XfeArrowClassPart;
  46.  
  47. /*----------------------------------------------------------------------*/
  48. /*                                                                        */
  49. /* XfeArrowClassRec                                                        */
  50. /*                                                                        */
  51. /*----------------------------------------------------------------------*/
  52. typedef struct _XfeArrowClassRec
  53. {
  54.     CoreClassPart                core_class;
  55.     XmPrimitiveClassPart        primitive_class;
  56.     XfePrimitiveClassPart        xfe_primitive_class;
  57.     XfeLabelClassPart            xfe_label_class;
  58.     XfeButtonClassPart            xfe_button_class;
  59.     XfeArrowClassPart            xfe_arrow_class;
  60. } XfeArrowClassRec;
  61.  
  62. externalref XfeArrowClassRec xfeArrowClassRec;
  63.  
  64. /*----------------------------------------------------------------------*/
  65. /*                                                                        */
  66. /* XfeArrowPart                                                            */
  67. /*                                                                        */
  68. /*----------------------------------------------------------------------*/
  69. typedef struct _XfeArrowPart
  70. {
  71.     /* Arrow resources */
  72.     unsigned char        arrow_direction;        /* arrow_direction        */
  73.     Dimension            arrow_width;            /* arrow_width            */
  74.     Dimension            arrow_height;            /* arrow_height            */
  75.  
  76.     /* Private data -- Dont even look past this comment -- */
  77.     GC                    arrow_insens_GC;        /* Arrow insens GC        */
  78.  
  79. } XfeArrowPart;
  80.  
  81. /*----------------------------------------------------------------------*/
  82. /*                                                                        */
  83. /* XfeArrowRec                                                            */
  84. /*                                                                        */
  85. /*----------------------------------------------------------------------*/
  86. typedef struct _XfeArrowRec
  87. {
  88.     CorePart                core;                /* Core Part            */
  89.     XmPrimitivePart            primitive;            /* XmPrimitive Part        */
  90.     XfePrimitivePart        xfe_primitive;        /* XfePrimitive Part    */
  91.     XfeLabelPart            xfe_label;            /* XfeLabel Part        */
  92.     XfeButtonPart            xfe_button;            /* XfeButton Part        */
  93.     XfeArrowPart            xfe_arrow;            /* XfeArrow Part        */
  94. } XfeArrowRec;
  95.  
  96. /*----------------------------------------------------------------------*/
  97. /*                                                                        */
  98. /* XfeArrowPart Access Macro                                            */
  99. /*                                                                        */
  100. /*----------------------------------------------------------------------*/
  101. #define _XfeArrowPart(w) &(((XfeArrowWidget) w)->xfe_arrow)
  102.  
  103. #ifdef __cplusplus                                /* end C++                */
  104. }
  105. #endif
  106.  
  107. #endif                                            /* end ArrowP.h            */
  108.