Adding IsSolid to wxColour

Under macOS colors can be patterns, then accessors for RGB values are useless, IsSolid returns true if the color can be expressed in RGB values at all.
This commit is contained in:
Stefan Csomor
2018-10-30 20:53:35 +01:00
parent 3ab2bfd62a
commit 9a05410470
5 changed files with 28 additions and 1 deletions

View File

@@ -118,6 +118,9 @@ public:
virtual ChannelType Blue() const = 0;
virtual ChannelType Alpha() const
{ return wxALPHA_OPAQUE ; }
virtual bool IsSolid() const
{ return true; }
// implemented in colourcmn.cpp
virtual wxString GetAsString(long flags = wxC2S_NAME | wxC2S_CSS_SYNTAX) const;