89 lines
1.7 KiB
C++
89 lines
1.7 KiB
C++
#ifndef _GUITAR_FRETTEDBOUNDINGNOTE_HPP_
|
|
#define _GUITAR_FRETTEDBOUNDINGNOTE_HPP_
|
|
#ifndef _COMMON_RECTANGLE_HPP_
|
|
#include <common/rect.hpp>
|
|
#endif
|
|
#ifndef _GUITAR_FRETTEDNOTE_HPP_
|
|
#include <guitar/FrettedNote.hpp>
|
|
#endif
|
|
|
|
class FrettedBoundingNote : public FrettedNote
|
|
{
|
|
public:
|
|
FrettedBoundingNote();
|
|
virtual ~FrettedBoundingNote();
|
|
const Rect &getBoundingRect(void)const;
|
|
void setBoundingRect(const Rect &boundingRect);
|
|
const Point &getDisplayPoint(void)const;
|
|
void setDisplayPoint(const Point &displayPoint);
|
|
const RGBColor &getBkGndColor(void)const;
|
|
void setBkGndColor(RGBColor &bkGndColor);
|
|
const RGBColor &getTextColor(void)const;
|
|
void setTextColor(const RGBColor &textColor);
|
|
private:
|
|
Rect mBoundingRect;
|
|
Point mDisplayPoint;
|
|
RGBColor mBkGndColor;
|
|
RGBColor mTextColor;
|
|
};
|
|
|
|
inline
|
|
FrettedBoundingNote::FrettedBoundingNote()
|
|
{
|
|
}
|
|
|
|
inline
|
|
FrettedBoundingNote::~FrettedBoundingNote()
|
|
{
|
|
}
|
|
|
|
inline
|
|
const Rect &FrettedBoundingNote::getBoundingRect(void)const
|
|
{
|
|
return mBoundingRect;
|
|
}
|
|
|
|
inline
|
|
void FrettedBoundingNote::setBoundingRect(const Rect &boundingRect)
|
|
{
|
|
mBoundingRect=boundingRect;
|
|
}
|
|
|
|
inline
|
|
const RGBColor &FrettedBoundingNote::getBkGndColor(void)const
|
|
{
|
|
return mBkGndColor;
|
|
}
|
|
|
|
inline
|
|
void FrettedBoundingNote::setBkGndColor(RGBColor &bkGndColor)
|
|
{
|
|
mBkGndColor=bkGndColor;
|
|
}
|
|
|
|
inline
|
|
const RGBColor &FrettedBoundingNote::getTextColor(void)const
|
|
{
|
|
return mTextColor;
|
|
}
|
|
|
|
inline
|
|
void FrettedBoundingNote::setTextColor(const RGBColor &textColor)
|
|
{
|
|
mTextColor=textColor;
|
|
}
|
|
|
|
inline
|
|
const Point &FrettedBoundingNote::getDisplayPoint(void)const
|
|
{
|
|
return mDisplayPoint;
|
|
}
|
|
|
|
inline
|
|
void FrettedBoundingNote::setDisplayPoint(const Point &displayPoint)
|
|
{
|
|
mDisplayPoint=displayPoint;
|
|
}
|
|
#endif
|
|
|