gfx.h
changeset 193 0a7025304867
parent 0 29654efe3188
child 298 b3e83b94be19
equal deleted inserted replaced
192:614bba52258d 193:0a7025304867
    11 
    11 
    12 struct DrawPixelInfo {
    12 struct DrawPixelInfo {
    13 	byte *dst_ptr;
    13 	byte *dst_ptr;
    14 	int left, top, width, height;
    14 	int left, top, width, height;
    15 	int pitch;
    15 	int pitch;
    16 	uint16 zoom;	
    16 	uint16 zoom;
    17 };
    17 };
    18 
    18 
    19 
    19 
    20 typedef struct SpriteHdr {
    20 typedef struct SpriteHdr {
    21 	byte info;
    21 	byte info;
    45 int DrawStringCentered(int x, int y, uint16 str, byte color);
    45 int DrawStringCentered(int x, int y, uint16 str, byte color);
    46 int DrawString(int x, int y, uint16 str, byte color);
    46 int DrawString(int x, int y, uint16 str, byte color);
    47 void DrawStringCenterUnderline(int x, int y, uint16 str, byte color);
    47 void DrawStringCenterUnderline(int x, int y, uint16 str, byte color);
    48 int DoDrawString(const byte *string, int x, int y, byte color);
    48 int DoDrawString(const byte *string, int x, int y, byte color);
    49 void DrawStringRightAligned(int x, int y, uint16 str, byte color);
    49 void DrawStringRightAligned(int x, int y, uint16 str, byte color);
    50 void GfxFillRect(int left, int top, int right, int bottom, int color);	
    50 void GfxFillRect(int left, int top, int right, int bottom, int color);
    51 void GfxDrawLine(int left, int top, int right, int bottom, int color);	
    51 void GfxDrawLine(int left, int top, int right, int bottom, int color);
    52 void DrawFrameRect(int left, int top, int right, int bottom, int color, int flags);
    52 void DrawFrameRect(int left, int top, int right, int bottom, int color, int flags);
    53 
    53 
    54 int GetStringWidth(const byte *str);
    54 int GetStringWidth(const byte *str);
    55 void LoadStringWidthTable();
    55 void LoadStringWidthTable();
    56 void DrawStringMultiCenter(int x, int y, uint16 str, int maxw);
    56 void DrawStringMultiCenter(int x, int y, uint16 str, int maxw);