XDisplayP.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #ifndef _XDisplayP_h_INCLUDED_
  2. #define _XDisplayP_h_INCLUDED_
  3. /*****************************************************************************/
  4. /* ここから */
  5. /*****************************************************************************/
  6. #include "XDisplay.h"
  7. #include <signal.h>
  8. #include <X11/Xlib.h>
  9. #include <X11/Intrinsic.h>
  10. #include <X11/StringDefs.h>
  11. #include <X11/Shell.h>
  12. #include <X11/Xatom.h>
  13. #include <X11/keysym.h>
  14. /*****************************************************************************/
  15. /* クラスの定義 */
  16. /*****************************************************************************/
  17. typedef struct _XDisplay {
  18. XtAppContext app_context;
  19. Widget toplevel;
  20. Display * display;
  21. Window root_window;
  22. Colormap colormap;
  23. Cardinal depth;
  24. Dimension width, height;
  25. int size;
  26. Window lcd_window;
  27. Pixmap lcd_pixmap;
  28. GC copy_gc;
  29. GC color_gc[16];
  30. /* テキストスクリーンへの文字表示用のフォント */
  31. Font font;
  32. GC font_gc;
  33. /* キーの状態 */
  34. unsigned int key_press;
  35. /* LCD描画のフラグ */
  36. int lcd_draw;
  37. } _XDisplay;
  38. /*****************************************************************************/
  39. /* ここまで */
  40. /*****************************************************************************/
  41. #endif
  42. /*****************************************************************************/
  43. /* End of File. */
  44. /*****************************************************************************/