added wxDCTextColourChanger ctor that allows using the class in the same way other wxDCFooChangers are used
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -870,6 +870,11 @@ class WXDLLEXPORT wxDCTextColourChanger
|
|||||||
public:
|
public:
|
||||||
wxDCTextColourChanger(wxDC& dc) : m_dc(dc), m_colFgOld() { }
|
wxDCTextColourChanger(wxDC& dc) : m_dc(dc), m_colFgOld() { }
|
||||||
|
|
||||||
|
wxDCTextColourChanger(wxDC& dc, const wxColour& col) : m_dc(dc)
|
||||||
|
{
|
||||||
|
Set(col);
|
||||||
|
}
|
||||||
|
|
||||||
~wxDCTextColourChanger()
|
~wxDCTextColourChanger()
|
||||||
{
|
{
|
||||||
if ( m_colFgOld.Ok() )
|
if ( m_colFgOld.Ok() )
|
||||||
|
Reference in New Issue
Block a user