XDisplay.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. #ifndef _XDisplay_h_INCLUDED_
  2. #define _XDisplay_h_INCLUDED_
  3. /*****************************************************************************/
  4. /* ここから */
  5. /*****************************************************************************/
  6. /*****************************************************************************/
  7. /* クラスの定義 */
  8. /*****************************************************************************/
  9. typedef struct _XDisplay * XDisplay;
  10. /*****************************************************************************/
  11. /* ヘッダファイルのインクルード */
  12. /*****************************************************************************/
  13. #include <X11/Xlib.h>
  14. #include "wonx/key.h"
  15. #include "WWDisplay.h"
  16. #include "WWLCDPanel.h"
  17. #include "XColorGC.h"
  18. /*****************************************************************************/
  19. /* メンバ関数の宣言 */
  20. /*****************************************************************************/
  21. Display * XDisplay_GetDisplay(XDisplay x_display);
  22. Colormap XDisplay_GetColormap(XDisplay x_display);
  23. XColorGCDatabase XDisplay_GetColorGCDatabase(XDisplay x_display);
  24. unsigned int XDisplay_GetKeyPress(XDisplay x_display);
  25. int XDisplay_GetLCDDrawLevel(XDisplay d);
  26. int XDisplay_SetLCDDrawLevel(XDisplay d, int level);
  27. int XDisplay_LCDDrawLevelDown(XDisplay d);
  28. int XDisplay_LCDDrawLevelUp( XDisplay d);
  29. int XDisplay_GetColorMapPrint(XDisplay d);
  30. int XDisplay_GetPalettePrint(XDisplay d);
  31. int XDisplay_GetCharacterPrint(XDisplay d);
  32. int XDisplay_GetSpritePrint(XDisplay d);
  33. int XDisplay_SetColorMapPrint(XDisplay d, int f);
  34. int XDisplay_SetPalettePrint(XDisplay d, int f);
  35. int XDisplay_SetCharacterPrint(XDisplay d, int f);
  36. int XDisplay_SetSpritePrint(XDisplay d, int f);
  37. /*===========================================================================*/
  38. /* オブジェクトの生成と消去 */
  39. /*===========================================================================*/
  40. /*---------------------------------------------------------------------------*/
  41. /* オブジェクトの生成 */
  42. /*---------------------------------------------------------------------------*/
  43. XDisplay XDisplay_Create(int width, int height);
  44. /*---------------------------------------------------------------------------*/
  45. /* オブジェクトの消去 */
  46. /*---------------------------------------------------------------------------*/
  47. XDisplay XDisplay_Destroy(XDisplay x_display);
  48. /*---------------------------------------------------------------------------*/
  49. /* Xサーバとの同期 */
  50. /*---------------------------------------------------------------------------*/
  51. int XDisplay_Sync(XDisplay x_display);
  52. int XDisplay_Flush(XDisplay x_display);
  53. /*---------------------------------------------------------------------------*/
  54. /* 描画 */
  55. /*---------------------------------------------------------------------------*/
  56. int XDisplay_DrawLCDWindow(XDisplay x_display, WWDisplay ww_display,
  57. WWLCDPanel ww_lcd_panel);
  58. /*---------------------------------------------------------------------------*/
  59. /* GC の作成 */
  60. /*---------------------------------------------------------------------------*/
  61. GC XDisplay_CreateGC(XDisplay x_display);
  62. /*---------------------------------------------------------------------------*/
  63. /* GC の解放 */
  64. /*---------------------------------------------------------------------------*/
  65. int XDisplay_DestroyGC(XDisplay x_display, GC gc);
  66. /*****************************************************************************/
  67. /* ここまで */
  68. /*****************************************************************************/
  69. #endif
  70. /*****************************************************************************/
  71. /* End of File. */
  72. /*****************************************************************************/