< prev index next >

src/java.desktop/unix/native/libawt_xawt/awt/awt_InputMethod.c

Print this page




  23  * questions.
  24  */
  25 
  26 #ifdef HEADLESS
  27     #error This file should not be included in headless library
  28 #endif
  29 
  30 #include <stdio.h>
  31 #include <stdlib.h>
  32 #include <X11/Xlib.h>
  33 #include <sys/time.h>
  34 
  35 #include "awt.h"
  36 #include "awt_p.h"
  37 
  38 #include <sun_awt_X11InputMethod.h>
  39 #include <sun_awt_X11_XInputMethod.h>
  40 
  41 #define THROW_OUT_OF_MEMORY_ERROR() \
  42         JNU_ThrowOutOfMemoryError((JNIEnv *)JNU_GetEnv(jvm, JNI_VERSION_1_2), NULL)
  43 #define SETARG(name, value)     XtSetArg(args[argc], name, value); argc++
  44 
  45 struct X11InputMethodIDs {
  46   jfieldID pData;
  47 } x11InputMethodIDs;
  48 
  49 static void PreeditStartCallback(XIC, XPointer, XPointer);
  50 static void PreeditDoneCallback(XIC, XPointer, XPointer);
  51 static void PreeditDrawCallback(XIC, XPointer,
  52                                 XIMPreeditDrawCallbackStruct *);
  53 static void PreeditCaretCallback(XIC, XPointer,
  54                                  XIMPreeditCaretCallbackStruct *);
  55 #if defined(__linux__) || defined(MACOSX)
  56 static void StatusStartCallback(XIC, XPointer, XPointer);
  57 static void StatusDoneCallback(XIC, XPointer, XPointer);
  58 static void StatusDrawCallback(XIC, XPointer,
  59                                XIMStatusDrawCallbackStruct *);
  60 #endif
  61 
  62 #define ROOT_WINDOW_STYLES      (XIMPreeditNothing | XIMStatusNothing)
  63 #define NO_STYLES               (XIMPreeditNone | XIMStatusNone)




  23  * questions.
  24  */
  25 
  26 #ifdef HEADLESS
  27     #error This file should not be included in headless library
  28 #endif
  29 
  30 #include <stdio.h>
  31 #include <stdlib.h>
  32 #include <X11/Xlib.h>
  33 #include <sys/time.h>
  34 
  35 #include "awt.h"
  36 #include "awt_p.h"
  37 
  38 #include <sun_awt_X11InputMethod.h>
  39 #include <sun_awt_X11_XInputMethod.h>
  40 
  41 #define THROW_OUT_OF_MEMORY_ERROR() \
  42         JNU_ThrowOutOfMemoryError((JNIEnv *)JNU_GetEnv(jvm, JNI_VERSION_1_2), NULL)

  43 
  44 struct X11InputMethodIDs {
  45   jfieldID pData;
  46 } x11InputMethodIDs;
  47 
  48 static void PreeditStartCallback(XIC, XPointer, XPointer);
  49 static void PreeditDoneCallback(XIC, XPointer, XPointer);
  50 static void PreeditDrawCallback(XIC, XPointer,
  51                                 XIMPreeditDrawCallbackStruct *);
  52 static void PreeditCaretCallback(XIC, XPointer,
  53                                  XIMPreeditCaretCallbackStruct *);
  54 #if defined(__linux__) || defined(MACOSX)
  55 static void StatusStartCallback(XIC, XPointer, XPointer);
  56 static void StatusDoneCallback(XIC, XPointer, XPointer);
  57 static void StatusDrawCallback(XIC, XPointer,
  58                                XIMStatusDrawCallbackStruct *);
  59 #endif
  60 
  61 #define ROOT_WINDOW_STYLES      (XIMPreeditNothing | XIMStatusNothing)
  62 #define NO_STYLES               (XIMPreeditNone | XIMStatusNone)


< prev index next >