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
|
|
|
|
|
|
|
struct _qpic_t = {
|
|
|
|
integer width;
|
|
|
|
integer height;
|
|
|
|
};
|
|
|
|
typedef _qpic_t [] qpic_t;
|
|
|
|
|
|
|
|
@extern qpic_t (string name, integer alpha) Draw_CachePic;
|
|
|
|
|
|
|
|
@extern void (integer x, integer y, qpic_t pic) Draw_Pic;
|
|
|
|
@extern void (integer x, integer y, qpic_t pic, integer srcx, integer srcy, integer width, integer height) Draw_SubPic;
|
|
|
|
@extern void (integer x, integer y, qpic_t pic) Draw_CenterPic;
|
|
|
|
|
|
|
|
@extern void (integer x, integer y, integer chr) Draw_Character;
|
|
|
|
@extern void (integer x, integer y, string text) Draw_String;
|
|
|
|
@extern void (integer x, integer y, string text, integer n) Draw_nString;
|
|
|
|
@extern void (integer x, integer y, string text) Draw_AltString;
|
|
|
|
@extern void (integer x, integer y, integer w, integer h, integer c) Draw_Fill;
|
|
|
|
@extern void (integer x, integer y, integer width, integer lines) text_box;
|
|
|
|
|
|
|
|
@interface QPic : Object
|
|
|
|
{
|
|
|
|
string name;
|
|
|
|
_qpic_t size;
|
|
|
|
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
|