00001 #ifndef __XF_VECTO__
00002 #define __XF_VECTO__
00003
00004
00005 #include "xf_types.h"
00006 #include "xf_params.h"
00007
00008
00016 #define VECT_LINE 0
00017 #define VECT_RECTANGLE 1
00018 #define VECT_GRADIENT 2
00019 #define VECT_CIRCLE 3
00020
00021
00022 void XF_VectoChgLine(xf_vectObject* ptr, s32 x1, s32 y1, s32 x2, s32 y2, u16 color, u8 alpha);
00023
00024 xf_vectObject* XF_VectoAddLine(u8 bg, s32 x1, s32 y1, s32 x2, s32 y2, u16 color, u8 alpha);
00025
00026 void XF_VectoChgRectangle(xf_vectObject* ptr, s32 x1, s32 y1, s32 x2, s32 y2, u8 bordersize, u16 bordercolor, u16 color, s8 alpha);
00027
00028 xf_vectObject* XF_VectoAddRectangle(u8 bg, s32 x1, s32 y1, s32 x2, s32 y2, u8 bordersize, u16 bordercolor, u16 color, s8 alpha);
00029
00030 void XF_VectoChgGradient(xf_vectObject* ptr, s32 x1, s32 y1, s32 x2, s32 y2, u16 color0, u16 color1, s8 alpha);
00031
00032 xf_vectObject* XF_VectoAddGradient(u8 bg, s32 x1, s32 y1, s32 x2, s32 y2, u16 color0, u16 color1, s8 alpha);
00033
00034 void XF_ResetVecto(u8 bg);
00035
00036
00037
00038 extern inline void XF_VectoSetLimits(xf_vectObject* ptr, s32 x1, s32 y1, s32 x2, s32 y2){
00039 ptr->x1 = x1; ptr->y1 = y1;
00040 ptr->x2 = x2; ptr->y2 = y2;
00041 }
00042
00043 extern inline void XF_VectoSetAlpha(xf_vectObject* ptr, u8 alpha){
00044 ptr->alpha = alpha;
00045 }
00046
00047 extern inline void XF_VectoSetColor(xf_vectObject* ptr, u16 color){
00048 ptr->color = color;
00049 }
00050
00051
00053
00054 #endif
00055
00056