XDisplayP.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. /* ダンプ出力のフラグ */
  38. int color_map_print;
  39. int palette_print;
  40. int character_print;
  41. int sprite_print;
  42. } _XDisplay;
  43. /*****************************************************************************/
  44. /* ここまで */
  45. /*****************************************************************************/
  46. #endif
  47. /*****************************************************************************/
  48. /* End of File. */
  49. /*****************************************************************************/