Back to index

im-sdk  12.3.91
SunIMPriv.h
Go to the documentation of this file.
00001 /* 
00002  * Copyright 1998 by Sun Microsystems, Inc.,
00003  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
00004  * All rights reserved.
00005  *
00006  * This software is the confidential and proprietary information
00007  * of Sun Microsystems, Inc. ("Confidential Information").  You
00008  * shall not disclose such Confidential Information and shall use
00009  * it only in accordance with the terms of the license agreement
00010  * you entered into with Sun.
00011  */
00012 
00013 #ifndef SUNIMPRIV_H
00014 #define SUNIMPRIV_H
00015 
00016 #ifndef BUFSIZE
00017 #undef BUFSIZE
00018 #define BUFSIZE 256
00019 #endif /* BUFSIZE */
00020 #define SLOTMINSIZE 64
00021 #define Private static
00022 
00023 typedef struct {
00024     IMText *text;
00025 } status_cache_t ;
00026 
00027 /*
00028  * several buffer size definitions
00029  */
00030 #define DEFAULTPreEditTextBufferSize 512
00031 #define DEFAULTPreEditAttrBufferSize 512
00032 #define DEFAULTStatusCacheSize 512
00033 #define DEFAULTXLookupStringBufferSize 512
00034 #define LOCALENAMELEN 64
00035 #define DEFAULTFeedbackSize 5
00036 
00037 /*
00038  * for the active_regions (just for double check)
00039  */
00040 #define PREEDIT_IS_ACTIVE   0x00000001
00041 #define STATUS_IS_ACTIVE    0x00000002
00042 #define LOOKUP_IS_ACTIVE    0x00000004
00043 #define AUX_IS_ACTIVE              0x00000008
00044 
00045 /*
00046  * for the current_active_regions
00047  */
00048 #define PREEDIT PREEDIT_IS_ACTIVE
00049 #define STATUS  STATUS_IS_ACTIVE   
00050 #define LOOKUP  LOOKUP_IS_ACTIVE
00051 #define AUX     AUX_IS_ACTIVE
00052 
00053 #define IS_REGION_ACTIVE(s, x)   (s->current_active_region & (x))
00054 #define ACTIVATE_REGION(s, x)    (s->current_active_region |= (x))
00055 #define INACTIVATE_REGION(s, x) (s->current_active_region &= ~(x))
00056 
00057 #endif  /* SUNIMPRIV_H */