Changed to create Wonx class and manage all resources with Wonx class. (See Wonx.x WonxP.h) When p is pressed to switch display / non-display of the screen, redraw the LCD panel Improvement. Added -Wall to compile option. We have summarized the processing part of the function which is duplicated processing in disp.c. Version 0.1 beta - from wonx-b01.tar.gz
40 lines
1.9 KiB
C
40 lines
1.9 KiB
C
#ifndef _WWCharacter_h_INCLUDED_
|
|
#define _WWCharacter_h_INCLUDED_
|
|
|
|
/*****************************************************************************/
|
|
/* ここから */
|
|
/*****************************************************************************/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
/*****************************************************************************/
|
|
/* クラスの定義 */
|
|
/*****************************************************************************/
|
|
|
|
typedef struct _WWCharacter * WWCharacter;
|
|
|
|
/*****************************************************************************/
|
|
/* メンバ関数の宣言 */
|
|
/*****************************************************************************/
|
|
|
|
int WWCharacter_GetNumber(WWCharacter c);
|
|
int WWCharacter_SetNumber(WWCharacter c, int n);
|
|
WWCharacter WWCharacter_Create(int number, unsigned char * bitmap);
|
|
WWCharacter WWCharacter_Destroy(WWCharacter character);
|
|
int WWCharacter_SetBitmap(WWCharacter character, unsigned char * bitmap);
|
|
int WWCharacter_GetPixel(WWCharacter character, int x, int y);
|
|
int WWCharacter_SetPixel(WWCharacter character, int x, int y, int pixel);
|
|
int WWCharacter_CopyBitmap(WWCharacter dst, WWCharacter src);
|
|
int WWCharacter_PrintData(WWCharacter character, FILE * f);
|
|
|
|
/*****************************************************************************/
|
|
/* ここまで */
|
|
/*****************************************************************************/
|
|
|
|
#endif
|
|
|
|
/*****************************************************************************/
|
|
/* End of File. */
|
|
/*****************************************************************************/
|