XDisplay.h 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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_include/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_GetLCDDraw(XDisplay x_display);
  26. int XDisplay_GetColorMapPrint(XDisplay d);
  27. int XDisplay_GetPalettePrint(XDisplay d);
  28. int XDisplay_GetCharacterPrint(XDisplay d);
  29. int XDisplay_GetSpritePrint(XDisplay d);
  30. int XDisplay_SetColorMapPrint(XDisplay d, int f);
  31. int XDisplay_SetPalettePrint(XDisplay d, int f);
  32. int XDisplay_SetCharacterPrint(XDisplay d, int f);
  33. int XDisplay_SetSpritePrint(XDisplay d, int f);
  34. /*===========================================================================*/
  35. /* オブジェクトの生成と消去 */
  36. /*===========================================================================*/
  37. /*---------------------------------------------------------------------------*/
  38. /* オブジェクトの生成 */
  39. /*---------------------------------------------------------------------------*/
  40. XDisplay XDisplay_Create(int width, int height);
  41. /*---------------------------------------------------------------------------*/
  42. /* オブジェクトの消去 */
  43. /*---------------------------------------------------------------------------*/
  44. XDisplay XDisplay_Destroy(XDisplay x_display);
  45. /*---------------------------------------------------------------------------*/
  46. /* Xサーバとの同期 */
  47. /*---------------------------------------------------------------------------*/
  48. int XDisplay_Sync(XDisplay x_display);
  49. /*---------------------------------------------------------------------------*/
  50. /* 描画 */
  51. /*---------------------------------------------------------------------------*/
  52. int XDisplay_DrawLCDWindow(XDisplay x_display, WWDisplay ww_display,
  53. WWLCDPanel ww_lcd_panel);
  54. /*---------------------------------------------------------------------------*/
  55. /* GC の作成 */
  56. /*---------------------------------------------------------------------------*/
  57. GC XDisplay_CreateGC(XDisplay x_display);
  58. /*---------------------------------------------------------------------------*/
  59. /* GC の解放 */
  60. /*---------------------------------------------------------------------------*/
  61. int XDisplay_DestroyGC(XDisplay x_display, GC gc);
  62. /*****************************************************************************/
  63. /* ここまで */
  64. /*****************************************************************************/
  65. #endif
  66. /*****************************************************************************/
  67. /* End of File. */
  68. /*****************************************************************************/