adding explicit copy and assignment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e8db0e1e5c
commit
5219c4905e
@ -26,6 +26,15 @@ wxColour::wxColour(const RGBColor& col)
|
||||
InitRGBColor(col);
|
||||
}
|
||||
|
||||
wxColour::wxColour( const wxColour& col )
|
||||
{
|
||||
m_red = col.m_red;
|
||||
m_green = col.m_green;
|
||||
m_blue = col.m_blue;
|
||||
m_alpha = col.m_alpha;
|
||||
m_cgColour = col.m_cgColour;
|
||||
}
|
||||
|
||||
wxColour::wxColour(CGColorRef col)
|
||||
{
|
||||
InitCGColorRef(col);
|
||||
@ -54,6 +63,16 @@ wxColour& wxColour::operator=(CGColorRef col)
|
||||
return *this;
|
||||
}
|
||||
|
||||
wxColour& wxColour::operator=(const wxColour& col)
|
||||
{
|
||||
m_red = col.m_red;
|
||||
m_green = col.m_green;
|
||||
m_blue = col.m_blue;
|
||||
m_alpha = col.m_alpha;
|
||||
m_cgColour = col.m_cgColour;
|
||||
return *this;
|
||||
}
|
||||
|
||||
void wxColour::InitRGBA (ChannelType r, ChannelType g, ChannelType b, ChannelType a)
|
||||
{
|
||||
m_red = r;
|
||||
|
Loading…
Reference in New Issue
Block a user