Add wx headers and ext
This commit is contained in:
parent
6390dcef6a
commit
66d3c7b811
1531 changed files with 295895 additions and 0 deletions
46
wxheaders/wx/qt/colour.h
Normal file
46
wxheaders/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 wxColour : public wxColourBase
|
||||
{
|
||||
public:
|
||||
DEFINE_STD_WXCOLOUR_CONSTRUCTORS
|
||||
wxColour(const QColor& color);
|
||||
|
||||
virtual bool IsOk() const wxOVERRIDE { return m_valid; }
|
||||
|
||||
ChannelType Red() const wxOVERRIDE { return m_red; }
|
||||
ChannelType Green() const wxOVERRIDE { return m_green; }
|
||||
ChannelType Blue() const wxOVERRIDE { return m_blue; }
|
||||
ChannelType Alpha() const wxOVERRIDE { 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) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
ChannelType m_red, m_green, m_blue, m_alpha;
|
||||
bool m_valid;
|
||||
|
||||
wxDECLARE_DYNAMIC_CLASS(wxColour);
|
||||
};
|
||||
|
||||
#endif // _WX_QT_COLOUR_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue