home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / FontChooserP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  4.0 KB  |  111 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/FontChooserP.h>                                    */
  21. /* Description:    XfeFontChooser widget private header file.                */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeFontChooserP_h_                        /* start FontChooserP.h    */
  28. #define _XfeFontChooserP_h_
  29.  
  30. #include <Xfe/FontChooser.h>
  31. #include <Xfe/CascadeP.h>
  32.  
  33. #ifdef __cplusplus                                /* start C++            */
  34. extern "C" {
  35. #endif
  36.    
  37. /*----------------------------------------------------------------------*/
  38. /*                                                                        */
  39. /* XfeCascadeClassPart                                                    */
  40. /*                                                                        */
  41. /*----------------------------------------------------------------------*/
  42. typedef struct
  43. {
  44.     XtPointer        extension;                    /* Extension            */
  45. } XfeFontChooserClassPart;
  46.  
  47. /*----------------------------------------------------------------------*/
  48. /*                                                                        */
  49. /* XfeFontChooserClassRec                                                */
  50. /*                                                                        */
  51. /*----------------------------------------------------------------------*/
  52. typedef struct _XfeFontChooserClassRec
  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.     XfeCascadeClassPart            xfe_cascade_class;
  60.     XfeFontChooserClassPart        xfe_font_chooser;
  61. } XfeFontChooserClassRec;
  62.  
  63. externalref XfeFontChooserClassRec xfeFontChooserClassRec;
  64.  
  65. /*----------------------------------------------------------------------*/
  66. /*                                                                        */
  67. /* XfeFontChooserPart                                                    */
  68. /*                                                                        */
  69. /*----------------------------------------------------------------------*/
  70. typedef struct _XfeFontChooserPart
  71. {
  72.     /* Callback resources */
  73.     XtCallbackList    selection_changed_callback;    /* Selection cb            */
  74.     
  75.     /* Font item resources */
  76.     Cardinal            num_font_items;            /* Num font items        */
  77.     XmString *            font_item_labels;        /* Font item labels        */
  78.     XmFontList *        font_item_fonts;        /* Font item fonts        */
  79.  
  80.     /* Private Data Members */
  81. } XfeFontChooserPart;
  82.  
  83. /*----------------------------------------------------------------------*/
  84. /*                                                                        */
  85. /* XfeFontChooserRec                                                    */
  86. /*                                                                        */
  87. /*----------------------------------------------------------------------*/
  88. typedef struct _XfeFontChooserRec
  89. {
  90.     CorePart                core;                /* Core Part            */
  91.     XmPrimitivePart            primitive;            /* XmPrimitive Part        */
  92.     XfePrimitivePart        xfe_primitive;        /* XfePrimitive Part    */
  93.     XfeLabelPart            xfe_label;            /* XfeLabel Part        */
  94.     XfeButtonPart            xfe_button;            /* XfeButton Part        */
  95.     XfeCascadePart            xfe_cascade;        /* XfeCascade Part        */
  96.     XfeFontChooserPart        xfe_font_chooser;    /* XfeFontChooser Part    */
  97. } XfeFontChooserRec;
  98.  
  99. /*----------------------------------------------------------------------*/
  100. /*                                                                        */
  101. /* XfeFontChooserPart Access Macro                                        */
  102. /*                                                                        */
  103. /*----------------------------------------------------------------------*/
  104. #define _XfeFontChooserPart(w) &(((XfeFontChooserWidget) w)->xfe_font_chooser)
  105.  
  106. #ifdef __cplusplus                                /* end C++                */
  107. }
  108. #endif
  109.  
  110. #endif                                            /* end FontChooserP.h    */
  111.