XDisplayP.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #ifndef _XDisplayP_h_INCLUDED_
  2. #define _XDisplayP_h_INCLUDED_
  3. /*****************************************************************************/
  4. /* ここから */
  5. /*****************************************************************************/
  6. #include "XDisplay.h"
  7. #include <signal.h>
  8. #include <X11/Intrinsic.h>
  9. #include <X11/StringDefs.h>
  10. #include <X11/Shell.h>
  11. #include <X11/Xatom.h>
  12. #include <X11/keysym.h>
  13. /*
  14. * X のフォントを利用する.
  15. */
  16. #define USE_X_FONT
  17. /*****************************************************************************/
  18. /* クラスの定義 */
  19. /*****************************************************************************/
  20. typedef struct _XDisplay {
  21. XtAppContext app_context;
  22. Widget toplevel;
  23. Display * display;
  24. Window root_window;
  25. Colormap colormap;
  26. Cardinal depth;
  27. Dimension width, height;
  28. int size;
  29. Window lcd_window;
  30. Pixmap lcd_pixmap;
  31. GC copy_gc;
  32. GC color_gc[16]; /* 白黒表示用のGC */
  33. /* 4096色表示用のGCのデータベース(XFireworks から流用) */
  34. XColorGCDatabase color_gc_database;
  35. #ifdef USE_X_FONT
  36. /* テキストスクリーンへの文字表示用のフォント */
  37. Font font;
  38. GC font_gc;
  39. #endif
  40. /* キーの状態 */
  41. unsigned int key_press;
  42. /* LCD描画のレベル */
  43. int lcd_draw_level;
  44. /* ダンプ出力のフラグ */
  45. int color_map_print;
  46. int palette_print;
  47. int character_print;
  48. int sprite_print;
  49. } _XDisplay;
  50. /*****************************************************************************/
  51. /* ここまで */
  52. /*****************************************************************************/
  53. #endif
  54. /*****************************************************************************/
  55. /* End of File. */
  56. /*****************************************************************************/