Back to home page

EIC code displayed by LXR

 
 

    


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

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 _XmVendorSEP_h
0024 #define _XmVendorSEP_h
0025 
0026 #include <Xm/ShellEP.h>
0027 #include <Xm/MwmUtil.h>
0028 
0029 #ifdef __cplusplus
0030 extern "C" {
0031 #endif
0032 
0033 
0034 #ifndef XmIsVendorShellExt
0035 #define XmIsVendorShellExt(w)   XtIsSubclass(w, xmVendorShellExtObjectClass)
0036 #endif /* XmIsVendorShellExt */
0037 
0038 typedef struct _XmVendorShellExtRec *XmVendorShellExtObject;
0039 typedef struct _XmVendorShellExtClassRec *XmVendorShellExtObjectClass;
0040 externalref WidgetClass xmVendorShellExtObjectClass;
0041 
0042 
0043 #define XmInheritProtocolHandler    ((XtCallbackProc)_XtInherit)
0044 
0045 typedef struct _XmVendorShellExtClassPart{
0046     XtCallbackProc  delete_window_handler;
0047     XtCallbackProc  offset_handler;
0048     XtPointer       extension;
0049 }XmVendorShellExtClassPart, *XmVendorShellExtClassPartPtr;
0050 
0051 typedef struct _XmVendorShellExtClassRec{
0052     ObjectClassPart     object_class;
0053     XmExtClassPart      ext_class;
0054     XmDesktopClassPart      desktop_class;
0055     XmShellExtClassPart     shell_class;
0056     XmVendorShellExtClassPart   vendor_class;
0057 }XmVendorShellExtClassRec;
0058 
0059 typedef struct {
0060  XmFontList     default_font_list;
0061  unsigned char      focus_policy;
0062  XmFocusData        focus_data;
0063  unsigned char      delete_response;
0064  unsigned char      unit_type;
0065  MwmHints       mwm_hints;
0066  MwmInfo        mwm_info;
0067  String         mwm_menu;
0068  XtCallbackList     focus_moved_callback;
0069  /*
0070   * internal fields
0071   */
0072  Widget         old_managed;
0073  Position       xAtMap, yAtMap, xOffset, yOffset;
0074  unsigned long      lastOffsetSerial;
0075  unsigned long      lastMapRequest;
0076  Boolean        externalReposition;
0077 
0078  /* mapStyle is an unused field. I'm using this field to keep
0079   * track of the *font_list resource values. Refer 
0080   * CheckSetRenderTable in VendorSE.c
0081   */
0082  unsigned char      mapStyle;
0083 
0084  XtCallbackList     realize_callback;
0085  XtGrabKind     grab_kind;
0086  Boolean        audible_warning;
0087  XmFontList             button_font_list;
0088  XmFontList             label_font_list;
0089  XmFontList             text_font_list;
0090  String         input_method_string;
0091  String         preedit_type_string;
0092  unsigned int           light_threshold;
0093  unsigned int           dark_threshold;
0094  unsigned int           foreground_threshold;
0095  unsigned int       im_height;
0096  XtPointer      im_info;
0097  Boolean        im_vs_height_set;
0098 
0099  /* New public resources for Motif 2.0 */
0100  XmDirection            layout_direction;
0101  XmInputPolicy      input_policy;
0102 
0103  Boolean        verify_preedit;
0104 
0105  /* toolTip related stuff */
0106  Widget label;          /* XmLabel for the tips */
0107  int post_delay;        /* delay before posting XmNtoolTipPostDelay */
0108  int post_duration;     /* duration XmNtoolTipPostDuration */
0109  XtIntervalId timer;        /* timer for post delay */
0110  XtIntervalId duration_timer;   /* timer for duration */
0111  Time leave_time;       /* time of the last leave event */
0112  Widget slider;         /* the XmSlideContext used to slide in the tip */
0113  Boolean enable;        /* flag to disable all this stuff */
0114 
0115 } XmVendorShellExtPart, *XmVendorShellExtPartPtr;
0116 
0117 externalref XmVendorShellExtClassRec    xmVendorShellExtClassRec;
0118 
0119 typedef struct _XmVendorShellExtRec{
0120     ObjectPart          object;
0121     XmExtPart           ext;
0122     XmDesktopPart       desktop;
0123     XmShellExtPart      shell;
0124     XmVendorShellExtPart    vendor;
0125 } XmVendorShellExtRec;
0126 
0127 
0128 /******** Xme Functions ********/
0129 
0130 void XmeAddFocusChangeCallback(Widget, XtCallbackProc, XtPointer);
0131 void XmeRemoveFocusChangeCallback(Widget, XtCallbackProc, XtPointer);
0132 
0133 /******** End Xme Functions ********/
0134 
0135 #ifdef __cplusplus
0136 }  /* Close scope of 'extern "C"' declaration which encloses file. */
0137 #endif
0138 
0139 #endif  /* _XmVendorSEP_h */