home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / ToolScrollP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  4.0 KB  |  117 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/ToolScrollP.h>                                        */
  21. /* Description:    XfeToolScroll widget private header file.                */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeToolScrollP_h_                        /* start ToolScrollP.h    */
  28. #define _XfeToolScrollP_h_
  29.  
  30. #include <Xfe/ToolScroll.h>
  31. #include <Xfe/OrientedP.h>
  32.  
  33. #ifdef __cplusplus                                /* start C++            */
  34. extern "C" {
  35. #endif
  36.    
  37. /*----------------------------------------------------------------------*/
  38. /*                                                                        */
  39. /* XfeToolScrollClassPart                                                */
  40. /*                                                                        */
  41. /*----------------------------------------------------------------------*/
  42. typedef struct
  43. {
  44.     XtPointer        extension;                    /* Extension            */ 
  45. } XfeToolScrollClassPart;
  46.  
  47. /*----------------------------------------------------------------------*/
  48. /*                                                                        */
  49. /* XfeToolScrollClassRec                                                */
  50. /*                                                                        */
  51. /*----------------------------------------------------------------------*/
  52. typedef struct _XfeToolScrollClassRec
  53. {
  54.     CoreClassPart                core_class;
  55.     CompositeClassPart            composite_class;
  56.     ConstraintClassPart            constraint_class;
  57.     XmManagerClassPart            manager_class;
  58.     XfeManagerClassPart            xfe_manager_class;
  59.     XfeOrientedClassPart        xfe_oriented_class;
  60.     XfeToolScrollClassPart        xfe_tool_scroll_class;
  61. } XfeToolScrollClassRec;
  62.  
  63. externalref XfeToolScrollClassRec xfeToolScrollClassRec;
  64.  
  65. /*----------------------------------------------------------------------*/
  66. /*                                                                        */
  67. /* XfeToolScrollPart                                                    */
  68. /*                                                                        */
  69. /*----------------------------------------------------------------------*/
  70. typedef struct _XfeToolScrollPart
  71. {
  72.     /* Arrow resources */
  73.     Widget                backward_arrow;            /* Backward arrow        */
  74.     Widget                forward_arrow;            /* Forward arrow        */
  75.     unsigned char        arrow_display_policy;    /* Arrow disp policy    */
  76.     unsigned char        arrow_placement;        /* Arrow placement        */
  77.  
  78.     Widget                clip_area;                /* Clip area            */
  79.     Dimension            clip_shadow_thickness;    /* Clip shadow thickness*/
  80.     unsigned char        clip_shadow_type;        /* Clip shadow type        */
  81.  
  82.     /* Tool bar resources */
  83.     Widget                tool_bar;                /* Tool bar                */
  84.     Position            tool_bar_position;        /* Tool bar position    */
  85.  
  86. } XfeToolScrollPart;
  87.  
  88. /*----------------------------------------------------------------------*/
  89. /*                                                                        */
  90. /* XfeToolScrollRec                                                        */
  91. /*                                                                        */
  92. /*----------------------------------------------------------------------*/
  93. typedef struct _XfeToolScrollRec
  94. {
  95.    CorePart                core;
  96.    CompositePart        composite;
  97.    ConstraintPart        constraint;
  98.    XmManagerPart        manager;
  99.    XfeManagerPart        xfe_manager;
  100.    XfeOrientedPart        xfe_oriented;
  101.    XfeToolScrollPart    xfe_tool_scroll;
  102. } XfeToolScrollRec;
  103.  
  104. /*----------------------------------------------------------------------*/
  105. /*                                                                        */
  106. /* XfeToolScrollPart Access Macro                                        */
  107. /*                                                                        */
  108. /*----------------------------------------------------------------------*/
  109. #define _XfeToolScrollPart(w) &(((XfeToolScrollWidget) w) -> xfe_tool_scroll)
  110.  
  111. #ifdef __cplusplus                                /* end C++                */
  112. }
  113. #endif
  114.  
  115. #endif                                            /* end ToolScrollP.h    */
  116.  
  117.