This commit is contained in:
Birunthan Mohanathas 2013-03-25 18:05:57 +02:00
parent 0994fad7e9
commit 27440ed515
2 changed files with 7 additions and 4 deletions

View File

@ -25,10 +25,9 @@
namespace Gfx {
class Canvas
class __declspec(novtable) Canvas
{
public:
Canvas();
virtual ~Canvas();
int GetW() const { return m_W; }
@ -72,6 +71,8 @@ public:
virtual void FillRectangle(Gdiplus::Rect& rect, const Gdiplus::SolidBrush& brush) = 0;
protected:
Canvas();
int m_W;
int m_H;

View File

@ -37,10 +37,9 @@ enum class VerticalAlignment : BYTE
Bottom
};
class TextFormat
class __declspec(novtable) TextFormat
{
public:
TextFormat();
virtual ~TextFormat();
virtual bool IsInitialized() = 0;
@ -54,6 +53,9 @@ public:
virtual void SetVerticalAlignment(VerticalAlignment alignment);
VerticalAlignment GetVerticalAlignment() { return m_VerticalAlignment; }
protected:
TextFormat();
private:
TextFormat(const TextFormat& other) {}