WWCharacter.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #ifndef _WWCharacter_h_INCLUDED_
  2. #define _WWCharacter_h_INCLUDED_
  3. /*****************************************************************************/
  4. /* ここから */
  5. /*****************************************************************************/
  6. /*****************************************************************************/
  7. /* クラスの定義 */
  8. /*****************************************************************************/
  9. typedef struct _WWCharacter * WWCharacter;
  10. /*****************************************************************************/
  11. /* ヘッダファイルのインクルード */
  12. /*****************************************************************************/
  13. #include <stdio.h>
  14. #include <stdlib.h>
  15. #include "WWDisplay.h"
  16. #include "wonx/libwwc.h"
  17. /*****************************************************************************/
  18. /* メンバ関数の宣言 */
  19. /*****************************************************************************/
  20. /*===========================================================================*/
  21. /* ナンバーの操作 */
  22. /*===========================================================================*/
  23. int WWCharacter_GetNumber(WWCharacter c);
  24. int WWCharacter_SetNumber(WWCharacter c, int n);
  25. /*===========================================================================*/
  26. /* ビットマップの操作 */
  27. /*===========================================================================*/
  28. /*---------------------------------------------------------------------------*/
  29. /* char 型として操作するための関数 */
  30. /*---------------------------------------------------------------------------*/
  31. unsigned char WWCharacter_GetBitmapAsChar(WWCharacter c, int n);
  32. unsigned char WWCharacter_SetBitmapAsChar(WWCharacter c, int n,
  33. unsigned char bitmap);
  34. /*---------------------------------------------------------------------------*/
  35. /* short int 型として操作するための関数 */
  36. /*---------------------------------------------------------------------------*/
  37. unsigned short int WWCharacter_GetBitmapAsShortInt(WWCharacter c, int n);
  38. unsigned short int WWCharacter_SetBitmapAsShortInt(WWCharacter c, int n,
  39. unsigned short int bitmap);
  40. /*---------------------------------------------------------------------------*/
  41. /* long int 型として操作するための関数 */
  42. /*---------------------------------------------------------------------------*/
  43. unsigned long int WWCharacter_GetBitmapAsLongInt(WWCharacter c, int n);
  44. unsigned long int WWCharacter_SetBitmapAsLongInt(WWCharacter c, int n,
  45. unsigned long int bitmap);
  46. /*===========================================================================*/
  47. /* オブジェクトの生成と削除 */
  48. /*===========================================================================*/
  49. WWCharacter WWCharacter_Create(int number);
  50. WWCharacter WWCharacter_Destroy(WWCharacter character);
  51. /*===========================================================================*/
  52. /* ピクセルの操作 */
  53. /*===========================================================================*/
  54. int WWCharacter_GetPixel(WWCharacter character, int x, int y,
  55. WWDisplay display);
  56. int WWCharacter_ClearAllPixels(WWCharacter character);
  57. int WWCharacter_CopyAllPixels(WWCharacter dst, WWCharacter src);
  58. /*===========================================================================*/
  59. /* 内部データ出力 */
  60. /*===========================================================================*/
  61. int WWCharacter_PrintData(WWCharacter character, WWDisplay display, FILE * f);
  62. /*****************************************************************************/
  63. /* ここまで */
  64. /*****************************************************************************/
  65. #endif
  66. /*****************************************************************************/
  67. /* End of File. */
  68. /*****************************************************************************/