Add opacity control feature to wxColourData.
Added internal flag (with corresponding accessors) which purpose is to enable/disable modifying the opacity of the colours in colour dialogs.
This commit is contained in:
@@ -26,6 +26,8 @@ public:
|
||||
|
||||
void SetChooseFull(bool flag) { m_chooseFull = flag; }
|
||||
bool GetChooseFull() const { return m_chooseFull; }
|
||||
void SetChooseAlpha(bool flag) { m_chooseAlpha = flag; }
|
||||
bool GetChooseAlpha() const { return m_chooseAlpha; }
|
||||
void SetColour(const wxColour& colour) { m_dataColour = colour; }
|
||||
const wxColour& GetColour() const { return m_dataColour; }
|
||||
wxColour& GetColour() { return m_dataColour; }
|
||||
@@ -45,6 +47,9 @@ public:
|
||||
wxColour m_custColours[NUM_CUSTOM];
|
||||
bool m_chooseFull;
|
||||
|
||||
protected:
|
||||
bool m_chooseAlpha;
|
||||
|
||||
wxDECLARE_DYNAMIC_CLASS(wxColourData);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user