initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
46
libs/wxWidgets-3.3.1/include/wx/qt/colour.h
Normal file
46
libs/wxWidgets-3.3.1/include/wx/qt/colour.h
Normal file
@@ -0,0 +1,46 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/qt/colour.h
|
||||
// Purpose: wxColour class implementation for wxQt
|
||||
// Author: Kolya Kosenko
|
||||
// Created: 2010-05-12
|
||||
// Copyright: (c) 2010 Kolya Kosenko
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_QT_COLOUR_H_
|
||||
#define _WX_QT_COLOUR_H_
|
||||
|
||||
class QColor;
|
||||
|
||||
class WXDLLIMPEXP_CORE wxWARN_UNUSED wxColour : public wxColourBase
|
||||
{
|
||||
public:
|
||||
DEFINE_STD_WXCOLOUR_CONSTRUCTORS
|
||||
wxColour(const QColor& color);
|
||||
|
||||
virtual bool IsOk() const override { return m_valid; }
|
||||
|
||||
ChannelType Red() const override { return m_red; }
|
||||
ChannelType Green() const override { return m_green; }
|
||||
ChannelType Blue() const override { return m_blue; }
|
||||
ChannelType Alpha() const override { return m_alpha; }
|
||||
|
||||
bool operator==(const wxColour& color) const;
|
||||
bool operator!=(const wxColour& color) const;
|
||||
|
||||
int GetPixel() const;
|
||||
|
||||
QColor GetQColor() const;
|
||||
|
||||
protected:
|
||||
void Init();
|
||||
virtual void InitRGBA(ChannelType r, ChannelType g, ChannelType b, ChannelType a) override;
|
||||
|
||||
private:
|
||||
ChannelType m_red, m_green, m_blue, m_alpha;
|
||||
bool m_valid;
|
||||
|
||||
wxDECLARE_DYNAMIC_CLASS(wxColour);
|
||||
};
|
||||
|
||||
#endif // _WX_QT_COLOUR_H_
|
||||
Reference in New Issue
Block a user