Gfx: Cosmetic tweaks

This commit is contained in:
Birunthan Mohanathas 2013-03-28 15:11:55 +02:00
parent 39fe9750fd
commit 71a454f954
3 changed files with 5 additions and 5 deletions

View File

@ -43,16 +43,16 @@ class __declspec(novtable) TextFormat
public:
virtual ~TextFormat();
virtual bool IsInitialized() = 0;
virtual bool IsInitialized() const = 0;
virtual void SetProperties(const WCHAR* fontFamily, int size, bool bold, bool italic, Gdiplus::PrivateFontCollection* fontCollection) = 0;
virtual void SetTrimming(bool trim) = 0;
virtual void SetHorizontalAlignment(HorizontalAlignment alignment);
HorizontalAlignment GetHorizontalAlignment() { return m_HorizontalAlignment; }
HorizontalAlignment GetHorizontalAlignment() const { return m_HorizontalAlignment; }
virtual void SetVerticalAlignment(VerticalAlignment alignment);
VerticalAlignment GetVerticalAlignment() { return m_VerticalAlignment; }
VerticalAlignment GetVerticalAlignment() const { return m_VerticalAlignment; }
protected:
TextFormat();

View File

@ -30,7 +30,7 @@ public:
TextFormatD2D();
virtual ~TextFormatD2D();
virtual bool IsInitialized() { return m_TextFormat != nullptr; }
virtual bool IsInitialized() const override { return m_TextFormat != nullptr; }
virtual void SetProperties(const WCHAR* fontFamily, int size, bool bold, bool italic, Gdiplus::PrivateFontCollection* fontCollection) override;
virtual void SetTrimming(bool trim) override;

View File

@ -30,7 +30,7 @@ public:
TextFormatGDIP();
virtual ~TextFormatGDIP();
virtual bool IsInitialized() { return m_Font != nullptr; }
virtual bool IsInitialized() const override { return m_Font != nullptr; }
virtual void SetProperties(const WCHAR* fontFamily, int size, bool bold, bool italic, Gdiplus::PrivateFontCollection* fontCollection) override;
virtual void SetTrimming(bool trim) override;