55 lines
968 B
C++
55 lines
968 B
C++
#ifndef _POP_DRAGSPRITE_HPP_
|
|
#define _POP_DRAGSPRITE_HPP_
|
|
#ifndef _COMMON_PUREBITMAP_HPP_
|
|
#include <common/purebmp.hpp>
|
|
#endif
|
|
#ifndef _SPRITE_PURESPRITE_HPP_
|
|
#include <pop/sprite.hpp>
|
|
#endif
|
|
|
|
class DragSprite : public PureBitmap, public PureSprite
|
|
{
|
|
public:
|
|
DragSprite(void);
|
|
virtual ~DragSprite();
|
|
void setBitmap(HBITMAP hBitmap);
|
|
protected:
|
|
virtual operator PureBitmap&(void);
|
|
private:
|
|
DragSprite(const DragSprite &someDragSprite);
|
|
DragSprite &operator=(const DragSprite &someDragSprite);
|
|
};
|
|
|
|
inline
|
|
DragSprite::DragSprite(void)
|
|
{
|
|
}
|
|
|
|
inline
|
|
DragSprite::DragSprite(const DragSprite &/*someDragSprite*/)
|
|
{ // private implementation
|
|
}
|
|
|
|
inline
|
|
DragSprite::~DragSprite()
|
|
{
|
|
}
|
|
|
|
inline
|
|
DragSprite::operator PureBitmap&(void)
|
|
{
|
|
return *this;
|
|
}
|
|
|
|
inline
|
|
DragSprite &DragSprite::operator=(const DragSprite &/*someDragSprite*/)
|
|
{ // private implementation
|
|
return *this;
|
|
}
|
|
|
|
inline
|
|
void DragSprite::setBitmap(HBITMAP hBitmap)
|
|
{
|
|
(PureBitmap&)*this=hBitmap;
|
|
}
|
|
#endif |