home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / FancyBoxP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  4.6 KB  |  138 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/FancyBoxP.h>                                        */
  21. /* Description:    XfeFancyBox widget private header file.                    */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeFancyBoxP_h_                        /* start FancyBoxP.h    */
  28. #define _XfeFancyBoxP_h_
  29.  
  30. #include <Xfe/FancyBox.h>
  31. #include <Xfe/ComboBoxP.h>
  32.  
  33. #ifdef __cplusplus                                /* start C++            */
  34. extern "C" {
  35. #endif
  36.     
  37. /*----------------------------------------------------------------------*/
  38. /*                                                                        */
  39. /* XfeFancyBoxClassPart                                                    */
  40. /*                                                                        */
  41. /*----------------------------------------------------------------------*/
  42. typedef struct
  43. {
  44.     XtPointer            extension;                    /* extension        */ 
  45. } XfeFancyBoxClassPart;
  46.  
  47. /*----------------------------------------------------------------------*/
  48. /*                                                                        */
  49. /* XfeFancyBoxClassRec                                                    */
  50. /*                                                                        */
  51. /*----------------------------------------------------------------------*/
  52. typedef struct _XfeFancyBoxClassRec
  53. {
  54.     CoreClassPart                core_class;
  55.     CompositeClassPart            composite_class;
  56.     ConstraintClassPart            constraint_class;
  57.     XmManagerClassPart            manager_class;
  58.     XfeManagerClassPart            xfe_manager_class;
  59.     XfeComboBoxClassPart        xfe_combo_box_class;
  60.     XfeFancyBoxClassPart        xfe_fancy_box_class;
  61. } XfeFancyBoxClassRec;
  62.  
  63. externalref XfeFancyBoxClassRec xfeFancyBoxClassRec;
  64.  
  65. /*----------------------------------------------------------------------*/
  66. /*                                                                        */
  67. /* XfeFancyBoxPart                                                        */
  68. /*                                                                        */
  69. /*----------------------------------------------------------------------*/
  70. typedef struct _XfeFancyBoxPart
  71. {
  72.     /* Icon resources */
  73.     Widget                icon;                    /* Icon                    */
  74.  
  75. #if 0
  76.     /* List resources */
  77.     Widget                list;                    /* List                    */
  78.     XmStringTable        items;                    /* Items                */
  79.     int                    item_count;                /* Item count            */
  80.     XmFontList            list_font_list;            /* List font list        */
  81.     Dimension            list_margin_height;        /* List margin height    */
  82.     Dimension            list_margin_width;        /* List margin width    */
  83.     Dimension            list_spacing;            /* List spacing            */
  84.     int                    top_item_position;        /* Top item position    */
  85.     int                    visible_item_count;        /* Visible item count    */
  86.  
  87.     /* Arrow resources */
  88.     Widget                arrow;                    /* Arrow                */
  89.  
  90.     /* Shell resources */
  91.     Boolean                share_shell;            /* Share shell            */
  92.     Widget                shell;                    /* Shell                */
  93.     Boolean                popped_up;                /* Popped up ?            */
  94.  
  95.     /* Selected resources */
  96.     XmString            selected_item;            /* Selected                */
  97.     int                    selected_position;        /* Selected position    */
  98.  
  99.     /* Traversal resources */
  100.     Dimension            highlight_thickness;    /* Highlight thickness    */
  101.     Boolean                traversal_on;            /* Traversal on ?        */
  102.  
  103.     /* Private data -- Dont even look past this comment -- */
  104.     Boolean                highlighted;            /* Highlighted ?        */
  105. #endif
  106.  
  107. } XfeFancyBoxPart;
  108.  
  109. /*----------------------------------------------------------------------*/
  110. /*                                                                        */
  111. /* XfeFancyBoxRec                                                        */
  112. /*                                                                        */
  113. /*----------------------------------------------------------------------*/
  114. typedef struct _XfeFancyBoxRec
  115. {
  116.     CorePart            core;
  117.     CompositePart        composite;
  118.     ConstraintPart        constraint;
  119.     XmManagerPart        manager;
  120.     XfeManagerPart        xfe_manager;
  121.     XfeComboBoxPart        xfe_combo_box;
  122.     XfeFancyBoxPart        xfe_fancy_box;
  123. } XfeFancyBoxRec;
  124.  
  125. /*----------------------------------------------------------------------*/
  126. /*                                                                        */
  127. /* XfeFancyBoxPart Access Macro                                            */
  128. /*                                                                        */
  129. /*----------------------------------------------------------------------*/
  130. #define _XfeFancyBoxPart(w) &(((XfeFancyBoxWidget) w) -> xfe_fancy_box)
  131.  
  132. #ifdef __cplusplus                                /* end C++                */
  133. }
  134. #endif
  135.  
  136. #endif                                            /* end FancyBoxP.h        */
  137.  
  138.