WWTextP.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef _WWTextP_h_INCLUDED_
  2. #define _WWTextP_h_INCLUDED_
  3. /*****************************************************************************/
  4. /* ここから */
  5. /*****************************************************************************/
  6. #include "WWText.h"
  7. #include "WWCharacter.h"
  8. /*****************************************************************************/
  9. /* クラスの定義 */
  10. /*****************************************************************************/
  11. typedef struct _WWText {
  12. /* テキストの描画情報 */
  13. WWScreen screen; /* テキストスクリーン */
  14. int x, y, width, height; /* テキストウインドウの領域 */
  15. int base; /* 使用するキャラクタのベース */
  16. WWPalette palette;
  17. /*
  18. * テキストフォントは
  19. * f = WWDisplay_GetForegroundColor(ww_display);
  20. * b = WWDisplay_GetBackgroundColor(ww_display);
  21. * で描画する必要があるため,描画のたびにビットマップをコピーする必要がある.
  22. * で,カラー化の際に,そのように修正した.
  23. * よって,テキストの初期化時に WWCharacter の配列を作成する必要は
  24. * 無くなったので,WWCharacter の配列はいずれ削除すること.
  25. * (WWText_PutCharacter() 参照)
  26. */
  27. WWCharacter font[128]; /* フォント */
  28. } _WWText;
  29. /*****************************************************************************/
  30. /* ここまで */
  31. /*****************************************************************************/
  32. #endif
  33. /*****************************************************************************/
  34. /* End of File. */
  35. /*****************************************************************************/