Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:15:22

0001 /* 
0002  * Motif
0003  *
0004  * Copyright (c) 1987-2012, The Open Group. All rights reserved.
0005  *
0006  * These libraries and programs are free software; you can
0007  * redistribute them and/or modify them under the terms of the GNU
0008  * Lesser General Public License as published by the Free Software
0009  * Foundation; either version 2 of the License, or (at your option)
0010  * any later version.
0011  *
0012  * These libraries and programs are distributed in the hope that
0013  * they will be useful, but WITHOUT ANY WARRANTY; without even the
0014  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
0015  * PURPOSE. See the GNU Lesser General Public License for more
0016  * details.
0017  *
0018  * You should have received a copy of the GNU Lesser General Public
0019  * License along with these librararies and programs; if not, write
0020  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
0021  * Floor, Boston, MA 02110-1301 USA
0022 */ 
0023 #ifndef _XmBulletinBoardP_h
0024 #define _XmBulletinBoardP_h
0025 
0026 #include <Xm/BulletinB.h>
0027 #include <Xm/ManagerP.h>
0028 
0029 #ifdef __cplusplus
0030 extern "C" {
0031 #endif
0032 
0033 
0034 /****************************************************************************
0035  * this suffix is added to dialog shells created by Xm convenience routines *
0036  * so that, for example, a call to create a form dialog named f generates a *
0037  * dialog shell named f_popup in addition to a form named f                 *
0038  ****************************************************************************/
0039 
0040 #define XmDIALOG_SUFFIX     "_popup"
0041 #define XmDIALOG_SUFFIX_SIZE    6
0042 
0043 
0044 
0045 typedef struct _XmBulletinBoardConstraintPart
0046 {
0047    char unused;
0048 } XmBulletinBoardConstraintPart, * XmBulletinBoardConstraint;
0049 
0050 
0051 /*  New fields for the BulletinBoard widget class record  */
0052 
0053 typedef struct
0054 {
0055   Boolean       always_install_accelerators;
0056   XmGeoCreateProc       geo_matrix_create;
0057   XmFocusMovedProc  focus_moved_proc;
0058   XtPointer     extension;
0059 } XmBulletinBoardClassPart;
0060 
0061 
0062 /* Full class record declaration */
0063 
0064 typedef struct _XmBulletinBoardClassRec
0065 {
0066   CoreClassPart         core_class;
0067   CompositeClassPart        composite_class;
0068   ConstraintClassPart       constraint_class;
0069   XmManagerClassPart        manager_class;
0070   XmBulletinBoardClassPart  bulletin_board_class;
0071 } XmBulletinBoardClassRec;
0072 
0073 externalref XmBulletinBoardClassRec xmBulletinBoardClassRec;
0074 
0075 
0076 /* New fields for the BulletinBoard widget record */
0077 
0078 typedef struct
0079 {
0080   Dimension margin_width;       /*  margins     */
0081   Dimension margin_height;
0082 
0083   Widget    default_button;     /*  widgets     */
0084   Widget    dynamic_default_button; /*  widgets     */
0085   Widget    cancel_button;
0086   Widget    dynamic_cancel_button;
0087 
0088   XtCallbackList focus_callback;    /*  callback lists  */
0089   XtCallbackList map_callback;
0090   XtCallbackList unmap_callback;
0091 
0092   XtTranslations text_translations;
0093 
0094   XmFontList    button_font_list;   /*  font lists      */
0095   XmFontList    label_font_list;
0096   XmFontList    text_font_list;
0097 
0098   Boolean   allow_overlap;      /*  policies        */
0099   Boolean   default_position;
0100   Boolean   auto_unmanage;
0101   unsigned char resize_policy;
0102   
0103   Dimension old_width;      /*  shadow resources    */
0104   Dimension old_height;
0105   Dimension old_shadow_thickness;
0106   unsigned char shadow_type;
0107 
0108   Boolean   in_set_values;      /*  internal flag   */
0109   Boolean   initial_focus;
0110 
0111   Boolean   no_resize;      /*  dialog resources    */
0112   unsigned char dialog_style;
0113   XmString  dialog_title;
0114   Widget    shell;
0115   Widget    _UNUSED;
0116 
0117   XmGeoMatrix   geo_cache;      /* Cache for geometry management. */
0118 
0119   unsigned char check_set;  /* For XmNfontList & XmNRenderTable */
0120 } XmBulletinBoardPart;
0121 
0122 
0123 /****************************************************************
0124  *
0125  * Full instance record declaration
0126  *
0127  ****************************************************************/
0128 
0129 typedef struct _XmBulletinBoardRec
0130 {
0131   CorePart      core;
0132   CompositePart     composite;
0133   ConstraintPart    constraint;
0134   XmManagerPart     manager;
0135   XmBulletinBoardPart   bulletin_board;
0136 } XmBulletinBoardRec;
0137 
0138 
0139 /* Access macros */
0140 #define BB_CancelButton(w) \
0141     (((XmBulletinBoardWidget) w)->bulletin_board.cancel_button)
0142 #define BB_DynamicCancelButton(w) \
0143     (((XmBulletinBoardWidget) w)->bulletin_board.dynamic_cancel_button)
0144 #define BB_DefaultButton(w) \
0145     (((XmBulletinBoardWidget) w)->bulletin_board.default_button)
0146 #define BB_DynamicDefaultButton(w) \
0147     (((XmBulletinBoardWidget) w)->bulletin_board.dynamic_default_button)
0148 #define BB_MarginHeight(w) \
0149     (((XmBulletinBoardWidget) w)->bulletin_board.margin_height)
0150 #define BB_MarginWidth(w) \
0151     (((XmBulletinBoardWidget) w)->bulletin_board.margin_width)
0152 #define BB_ButtonFontList(w) \
0153     (((XmBulletinBoardWidget) w)->bulletin_board.button_font_list)
0154 #define BB_LabelFontList(w) \
0155     (((XmBulletinBoardWidget) w)->bulletin_board.label_font_list)
0156 #define BB_TextFontList(w) \
0157     (((XmBulletinBoardWidget) w)->bulletin_board.text_font_list)
0158 #define BB_StringDirection(w) (XmDirectionToStringDirection\
0159     (((XmBulletinBoardWidget) w)->manager.string_direction))
0160 #define BB_ResizePolicy(w) \
0161     (((XmBulletinBoardWidget) w)->bulletin_board.resize_policy)
0162 #define BB_InSetValues(w) \
0163     (((XmBulletinBoardWidget) w)->bulletin_board.in_set_values)
0164 #define BB_InitialFocus(w) \
0165     (((XmBulletinBoardWidget) w)->bulletin_board.initial_focus)
0166 
0167 
0168 #ifdef __cplusplus
0169 }  /* Close scope of 'extern "C"' declaration which encloses file. */
0170 #endif
0171 
0172 #endif /* _XmBulletinBoardP_h */
0173 /* DON'T ADD ANYTHING AFTER THIS #endif */