2002-08-16 19:57:26 +00:00
|
|
|
#ifndef __ruamoko_draw_h
|
|
|
|
#define __ruamoko_draw_h
|
|
|
|
|
2002-08-17 05:27:34 +00:00
|
|
|
#include "Object.h"
|
2002-08-16 19:57:26 +00:00
|
|
|
|
2010-01-13 06:34:32 +00:00
|
|
|
struct _qpic_t {
|
2002-08-16 19:57:26 +00:00
|
|
|
integer width;
|
|
|
|
integer height;
|
|
|
|
};
|
2011-02-13 12:25:36 +00:00
|
|
|
typedef struct _qpic_t *qpic_t;
|
2002-08-16 19:57:26 +00:00
|
|
|
|
2010-12-01 23:04:18 +00:00
|
|
|
@extern qpic_t Draw_CachePic (string name, integer alpha);
|
2002-08-16 19:57:26 +00:00
|
|
|
|
2010-12-01 23:04:18 +00:00
|
|
|
@extern void Draw_Pic (integer x, integer y, qpic_t pic);
|
|
|
|
@extern void Draw_SubPic (integer x, integer y, qpic_t pic, integer srcx, integer srcy, integer width, integer height);
|
|
|
|
@extern void Draw_CenterPic (integer x, integer y, qpic_t pic);
|
2002-08-16 19:57:26 +00:00
|
|
|
|
2010-12-01 23:04:18 +00:00
|
|
|
@extern void Draw_Character (integer x, integer y, integer chr);
|
|
|
|
@extern void Draw_String (integer x, integer y, string text);
|
|
|
|
@extern void Draw_nString (integer x, integer y, string text, integer n);
|
|
|
|
@extern void Draw_AltString (integer x, integer y, string text);
|
|
|
|
@extern void Draw_Fill (integer x, integer y, integer w, integer h, integer c);
|
|
|
|
@extern void Draw_Crosshair (integer ch, integer x, integer y);
|
|
|
|
@extern void text_box (integer x, integer y, integer width, integer lines);
|
2002-08-16 19:57:26 +00:00
|
|
|
|
|
|
|
@interface QPic : Object
|
|
|
|
{
|
|
|
|
string name;
|
2003-07-30 04:11:45 +00:00
|
|
|
struct _qpic_t size;
|
2002-08-16 19:57:26 +00:00
|
|
|
BOOL centered;
|
|
|
|
}
|
|
|
|
-initName:(string)n;
|
|
|
|
-initName:(string)n Centered:(BOOL)c;
|
|
|
|
-draw:(integer)x :(integer)y;
|
|
|
|
-draw:(integer)x :(integer)y :(integer)srcx :(integer)srcy :(integer)width :(integer)height;
|
|
|
|
-(integer)width;
|
|
|
|
-(integer)height;
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif//__ruamoko_draw_h
|