/////////////////////////////////////////////////////////////////////////////
-// Name: brush.cpp
+// Name: src/os2/brush.cpp
// Purpose: wxBrush
// Author: David Webster
// Modified by:
#ifndef WX_PRECOMP
#include <stdio.h>
-#include "wx/setup.h"
#include "wx/list.h"
#include "wx/utils.h"
#include "wx/app.h"
vError = ::WinGetLastError(vHabmain);
sError = wxPMErrorToStr(vError);
wxLogError(_T("Unable to set current color table to RGB mode. Error: %s\n"), sError.c_str());
- return FALSE;
+ return false;
}
if (M_BRUSHDATA->m_nStyle==wxTRANSPARENT)
}
return bOk;
}
- return FALSE;
+ return false;
} // end of wxBrush::RealizeResource
WXHANDLE wxBrush::GetResourceHandle()
M_BRUSHDATA->m_hBrush = 0;
return true;
}
- else return FALSE;
+ else return false;
} // end of wxBrush::FreeResource
bool wxBrush::IsFree() const
}
} // end of wxBrush::Unshare
-void wxBrush::SetColour(
- const wxColour& rColour
-)
+void wxBrush::SetColour( const wxColour& rColour )
{
Unshare();
M_BRUSHDATA->m_vColour = rColour;
RealizeResource();
}
-void wxBrush::SetColour(
- unsigned char cRed
-, unsigned char cGreen
-, unsigned char cBlue
-)
+void wxBrush::SetColour(unsigned char cRed, unsigned char cGreen, unsigned char cBlue)
{
Unshare();
- M_BRUSHDATA->m_vColour.Set( cRed
- ,cGreen
- ,cBlue
- );
+ M_BRUSHDATA->m_vColour.Set( cRed, cGreen, cBlue );
RealizeResource();
} // end of wxBrush::SetColour
-void wxBrush::SetStyle(
- int nStyle
-)
+void wxBrush::SetStyle(int nStyle)
{
Unshare();
M_BRUSHDATA->m_nStyle = nStyle;