00001 #ifndef LIBWIISPRITE_LAYER
00002 #define LIBWIISPRITE_LAYER
00003
00004 #include <stdlib.h>
00005 #include <gccore.h>
00006
00008 namespace wsp{
00010 class Layer{
00011 public:
00012
00013 Layer();
00014
00015 virtual ~Layer();
00016
00019 u32 GetHeight() const;
00022 u32 GetWidth() const;
00023
00026 f32 GetX() const;
00029 f32 GetY() const;
00030
00033 bool IsVisible() const;
00036 void SetVisible(bool visible);
00037
00041 void SetPosition(f32 x, f32 y);
00045 void Move(f32 deltaX, f32 deltaY);
00048 void SetX(f32 x);
00051 void SetX(s32 x);
00054 void SetX(u32 x);
00057 void SetY(f32 y);
00060 void SetY(s32 y);
00063 void SetY(u32 y);
00064
00068 virtual void Draw(f32 offsetX = 0, f32 offsetY = 0) const;
00069 protected:
00070 u32 _height,
00071 _width;
00072 private:
00073 f32 _x, _y;
00074 bool _visible;
00075 };
00076 };
00077
00078 #endif