home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / TaskBarP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  3.9 KB  |  115 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/TaskBarP.h>                                        */
  21. /* Description:    XfeTaskBar widget private header file.                    */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeTaskBarP_h_                            /* start TaskBarP.h        */
  28. #define _XfeTaskBarP_h_
  29.  
  30. #include <Xfe/ToolBarP.h>
  31. #include <Xfe/TaskBar.h>
  32.  
  33. #ifdef __cplusplus                                /* start C++            */
  34. extern "C" {
  35. #endif
  36.    
  37. /*----------------------------------------------------------------------*/
  38. /*                                                                        */
  39. /* XfeTaskBarClassPart                                                    */
  40. /*                                                                        */
  41. /*----------------------------------------------------------------------*/
  42. typedef struct
  43. {
  44.    XtPointer        extension;        /* Extension */ 
  45. } XfeTaskBarClassPart;
  46.  
  47. /*----------------------------------------------------------------------*/
  48. /*                                                                        */
  49. /* XfeTaskBarClassRec                                                    */
  50. /*                                                                        */
  51. /*----------------------------------------------------------------------*/
  52. typedef struct _XfeTaskBarClassRec
  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.     XfeTaskBarClassPart        xfe_task_bar_class;
  62. } XfeTaskBarClassRec;
  63.  
  64. externalref XfeTaskBarClassRec xfeTaskBarClassRec;
  65.  
  66. /*----------------------------------------------------------------------*/
  67. /*                                                                        */
  68. /* XfeTaskBarPart                                                        */
  69. /*                                                                        */
  70. /*----------------------------------------------------------------------*/
  71. typedef struct _XfeTaskBarPart
  72. {
  73.     /* Callbacks */
  74.     XtCallbackList        action_callback;            /* Action callbacks    */
  75.     
  76.     /* Resource Data Members */
  77.     Widget                action_button;                /* Dock Button        */
  78.     Cursor                action_cursor;                /* Action cursor    */
  79.     Pixmap                action_pixmap;                /* Action pixmap    */
  80.     Boolean                show_action_button;            /* Show action btn ?*/
  81.  
  82.     /* Private data -- Dont even look past this comment --    */
  83. } XfeTaskBarPart;
  84.  
  85. /*----------------------------------------------------------------------*/
  86. /*                                                                        */
  87. /* XfeTaskBarRec                                                        */
  88. /*                                                                        */
  89. /*----------------------------------------------------------------------*/
  90. typedef struct _XfeTaskBarRec
  91. {
  92.     CorePart            core;
  93.     CompositePart        composite;
  94.     ConstraintPart        constraint;
  95.     XmManagerPart        manager;
  96.     XfeManagerPart        xfe_manager;
  97.     XfeToolBarPart        xfe_tool_bar;
  98.     XfeOrientedPart        xfe_oriented;
  99.     XfeTaskBarPart        xfe_task_bar;
  100. } XfeTaskBarRec;
  101.  
  102. /*----------------------------------------------------------------------*/
  103. /*                                                                        */
  104. /* XfeTaskBarPart Access Macro                                            */
  105. /*                                                                        */
  106. /*----------------------------------------------------------------------*/
  107. #define _XfeTaskBarPart(w) &(((XfeTaskBarWidget) w) -> xfe_task_bar)
  108.  
  109. #ifdef __cplusplus                                /* end C++                */
  110. }
  111. #endif
  112.  
  113. #endif                                            /* end TaskBarP.h        */
  114.  
  115.