mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Gfx: Cosmetic tweaks
This commit is contained in:
parent
39fe9750fd
commit
71a454f954
@ -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();
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user