XDisplayP.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. /* クラスの定義 */
  15. /*****************************************************************************/
  16. typedef struct _XDisplay {
  17. XtAppContext app_context;
  18. Widget toplevel;
  19. Display * display;
  20. Window root_window;
  21. Colormap colormap;
  22. Cardinal depth;
  23. Dimension width, height;
  24. int size;
  25. Window lcd_window;
  26. Pixmap lcd_pixmap;
  27. GC copy_gc;
  28. GC color_gc[16]; /* 白黒表示用のGC */
  29. /* 4096色表示用のGCのデータベース(XFireworks から流用) */
  30. XColorGCDatabase color_gc_database;
  31. /* テキストスクリーンへの文字表示用のフォント */
  32. Font font;
  33. GC font_gc;
  34. /* キーの状態 */
  35. unsigned int key_press;
  36. /* LCD描画のフラグ */
  37. int lcd_draw;
  38. /* ダンプ出力のフラグ */
  39. int color_map_print;
  40. int palette_print;
  41. int character_print;
  42. int sprite_print;
  43. } _XDisplay;
  44. /*****************************************************************************/
  45. /* ここまで */
  46. /*****************************************************************************/
  47. #endif
  48. /*****************************************************************************/
  49. /* End of File. */
  50. /*****************************************************************************/