Back to index

im-sdk  12.3.91
XIMProto.hh
Go to the documentation of this file.
00001 /*
00002 Copyright 1985, 1986, 1987, 1991, 1998  The Open Group
00003 
00004 Portions Copyright 2000 Sun Microsystems, Inc. All Rights Reserved.
00005 
00006 Permission is hereby granted, free of charge, to any person obtaining a
00007 copy of this software and associated documentation files (the
00008 "Software"), to deal in the Software without restriction, including
00009 without limitation the rights to use, copy, modify, merge, publish,
00010 distribute, sublicense, and/or sell copies of the Software, and to
00011 permit persons to whom the Software is furnished to do so, subject to
00012 the following conditions: The above copyright notice and this
00013 permission notice shall be included in all copies or substantial
00014 portions of the Software.
00015 
00016 
00017 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00018 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00019 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00020 IN NO EVENT SHALL THE OPEN GROUP OR SUN MICROSYSTEMS, INC. BE LIABLE
00021 FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
00022 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
00023 THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE EVEN IF
00024 ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES.
00025 
00026 
00027 Except as contained in this notice, the names of The Open Group and/or
00028 Sun Microsystems, Inc. shall not be used in advertising or otherwise to
00029 promote the sale, use or other dealings in this Software without prior
00030 written authorization from The Open Group and/or Sun Microsystems,
00031 Inc., as applicable.
00032 
00033 
00034 X Window System is a trademark of The Open Group
00035 
00036 OSF/1, OSF/Motif and Motif are registered trademarks, and OSF, the OSF
00037 logo, LBX, X Window System, and Xinerama are trademarks of the Open
00038 Group. All other trademarks and registered trademarks mentioned herein
00039 are the property of their respective owners. No right, title or
00040 interest in or to any trademark, service mark, logo or trade name of
00041 Sun Microsystems, Inc. or its licensors is granted.
00042 
00043 */
00044 #ifndef _ximp_proto_hh
00045 #define _ximp_proto_hh
00046 
00047 #include <X11/Xlib.h>
00048 
00049 struct Ximp_AreaRec {
00050   long x;
00051   long y;
00052   long width;
00053   long height;
00054 };
00055 
00056 struct Ximp_PointRec {
00057   long x;
00058   long y;
00059 };
00060 
00061 struct Ximp_SizeRec {
00062   long width;
00063   long height;
00064 };
00065 
00066 struct Ximp_PreeditPropRec4 {
00067   Ximp_AreaRec       area;
00068   Ximp_SizeRec       area_needed;
00069   Ximp_PointRec      spot_location;
00070   Colormap    colormap;
00071   Atom        std_colormap;
00072   unsigned long      foreground;
00073   unsigned long      background;
00074   Pixmap      bg_pixmap;
00075   long        line_spacing;
00076   Cursor      cursor;
00077 };
00078 
00079 struct Ximp_PreeditPropRec3 {
00080   Ximp_AreaRec    area;
00081   unsigned long   foreground;
00082   unsigned long   background;
00083   Colormap        colormap;
00084   Pixmap          bg_pixmap;
00085   long            line_spacing;
00086   Cursor          cursor;
00087   Ximp_SizeRec    area_needed;
00088   Ximp_PointRec   spot_location;
00089 };
00090 
00091 struct Ximp_StatusPropRec4 {
00092   Ximp_AreaRec       area;
00093   Ximp_SizeRec       area_needed;
00094   Colormap    colormap;
00095   Atom        std_colormap;
00096   unsigned long foreground;
00097   unsigned long background;
00098   Pixmap      bg_pixmap;
00099   long        line_spacing;
00100   Cursor      cursor;
00101   Window      window;
00102 };
00103 
00104 struct Ximp_StatusPropRec3 {
00105   Ximp_AreaRec    area;
00106   unsigned long   foreground;
00107   unsigned long   background;
00108   Colormap        colormap;
00109   Pixmap          bg_pixmap;
00110   long            line_spacing;
00111   Cursor          cursor;
00112   Ximp_SizeRec    area_needed;
00113   Window          window;
00114 };
00115 
00116 /* for Commit, PreEditDraw, StatusDraw */
00117 struct Ximp_CommitPropRec {
00118   unsigned long   icid;
00119   char            size;
00120   char            ctext[15];
00121 };
00122 
00123 #endif