home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / ToolBarP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  6.0 KB  |  171 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/ToolBarP.h>                                        */
  21. /* Description:    XfeToolBar widget private header file.                    */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeToolBarP_h_                            /* start ToolBarP.h        */
  28. #define _XfeToolBarP_h_
  29.  
  30. #include <Xfe/ToolBar.h>
  31. #include <Xfe/OrientedP.h>
  32.  
  33. #ifdef __cplusplus                                /* start C++            */
  34. extern "C" {
  35. #endif
  36.     
  37. /*----------------------------------------------------------------------*/
  38. /*                                                                        */
  39. /* XfeToolBarClassPart                                                    */
  40. /*                                                                        */
  41. /*----------------------------------------------------------------------*/
  42. typedef struct
  43. {
  44.     XtPointer        extension;                    /* Extension            */ 
  45. } XfeToolBarClassPart;
  46.  
  47. /*----------------------------------------------------------------------*/
  48. /*                                                                        */
  49. /* XfeToolBarClassRec                                                    */
  50. /*                                                                        */
  51. /*----------------------------------------------------------------------*/
  52. typedef struct _XfeToolBarClassRec
  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.     XfeToolBarClassPart        xfe_tool_bar_class;
  61. } XfeToolBarClassRec;
  62.  
  63. externalref XfeToolBarClassRec xfeToolBarClassRec;
  64.  
  65. /*----------------------------------------------------------------------*/
  66. /*                                                                        */
  67. /* XfeToolBarPart                                                        */
  68. /*                                                                        */
  69. /*----------------------------------------------------------------------*/
  70. typedef struct _XfeToolBarPart
  71. {
  72.     /* Callback resources */
  73.     XtCallbackList    button_3_down_callback;        /* Button 3 down cb        */
  74.     XtCallbackList    button_3_up_callback;        /* Button 3 up cb        */
  75.     XtCallbackList    selection_changed_callback;    /* Selection changed cb    */
  76.     XtCallbackList    value_changed_callback;        /* Value changed cb        */
  77.  
  78.     /* Button resources */
  79.     unsigned char        button_layout;            /* Button layout        */
  80.  
  81.     /* Separator resources */
  82.     int                    separator_thickness;    /* Separator thickness    */
  83.  
  84.     /* Raised resources */
  85.     Dimension            raise_border_thickness;    /* Raise border thickness*/
  86.     Boolean                raised;                    /* Raised ?                */
  87.  
  88.     /* Radio resources */
  89.     Boolean                radio_behavior;            /* Radio behavior ?        */
  90.     Widget                active_button;            /* Active button ?        */
  91.  
  92.     /* Selection resources */
  93.     unsigned char        selection_policy;        /* Sel Radio behavior ?*/
  94.     Widget                selected_button;        /* Selected button ?    */
  95.     Modifiers            selection_modifiers;    /* Selection modifiers    */
  96.  
  97.     Boolean                child_use_pref_width;    /* Child use pref width    */
  98.     Boolean                child_use_pref_height;    /* Child use pref height*/
  99.  
  100.     Boolean                child_force_width;        /* Child force width ?    */
  101.     Boolean                child_force_height;        /* Child force height ?    */
  102.  
  103.     Dimension            max_child_width;        /* Max Width            */
  104.     Dimension            max_child_height;        /* Max Height            */
  105.  
  106.     /* Wrapping resources */
  107.     Boolean                allow_wrap;                /* Allow wrap            */
  108.     Cardinal            max_num_columns;        /* Max num columns        */
  109.     Cardinal            max_num_rows;            /* Max num rows            */
  110.     
  111.     /* Private data -- Dont even look past this comment -- */
  112.     Dimension            total_children_width;    /* Total children width    */
  113.     Dimension            total_children_height;    /* Total children height*/
  114.     Cardinal            num_managed;            /* Num managed widgets    */
  115.     Cardinal            num_components;            /* Num components        */
  116.  
  117. } XfeToolBarPart;
  118.  
  119. /*----------------------------------------------------------------------*/
  120. /*                                                                        */
  121. /* XfeToolBarRec                                                        */
  122. /*                                                                        */
  123. /*----------------------------------------------------------------------*/
  124. typedef struct _XfeToolBarRec
  125. {
  126.     CorePart        core;
  127.     CompositePart    composite;
  128.     ConstraintPart    constraint;
  129.     XmManagerPart    manager;
  130.     XfeManagerPart    xfe_manager;
  131.     XfeOrientedPart    xfe_oriented;
  132.     XfeToolBarPart    xfe_tool_bar;
  133. } XfeToolBarRec;
  134.  
  135. /*----------------------------------------------------------------------*/
  136. /*                                                                        */
  137. /* XfeToolBarConstraintPart                                                */
  138. /*                                                                        */
  139. /*----------------------------------------------------------------------*/
  140. typedef struct _XfeToolBarConstraintPart
  141. {
  142.     int    dummy;
  143. } XfeToolBarConstraintPart;
  144.  
  145. /*----------------------------------------------------------------------*/
  146. /*                                                                        */
  147. /* XfeToolBarConstraintRec                                                */
  148. /*                                                                        */
  149. /*----------------------------------------------------------------------*/
  150. typedef struct _XfeToolBarConstraintRec
  151. {
  152.     XmManagerConstraintPart        manager;
  153.     XfeManagerConstraintPart    xfe_manager;
  154.     XfeOrientedConstraintPart    xfe_oriented;
  155.     XfeToolBarConstraintPart    xfe_tool_bar;
  156. } XfeToolBarConstraintRec;
  157.  
  158. /*----------------------------------------------------------------------*/
  159. /*                                                                        */
  160. /* XfeToolBarPart Access Macro                                            */
  161. /*                                                                        */
  162. /*----------------------------------------------------------------------*/
  163. #define _XfeToolBarPart(w) &(((XfeToolBarWidget) w) -> xfe_tool_bar)
  164.  
  165. #ifdef __cplusplus                                /* end C++                */
  166. }
  167. #endif
  168.  
  169. #endif                                            /* end ToolBarP.h        */
  170.  
  171.