Replaced Ok() occurrences with IsOk() throughout trunk.
Additionally renamed wxOSX' private wxNativePrinterDC::Ok() function to IsOk(). Didn't deprecate the various Ok() functions: given the amount of changes already introduced in 3.0 a trivial one like this seems more suitable for after 3.0. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -225,7 +225,7 @@ class ImagePattern : public wxMacCoreGraphicsPattern
|
||||
public :
|
||||
ImagePattern( const wxBitmap* bmp , const CGAffineTransform& transform )
|
||||
{
|
||||
wxASSERT( bmp && bmp->Ok() );
|
||||
wxASSERT( bmp && bmp->IsOk() );
|
||||
#ifdef __WXMAC__
|
||||
Init( (CGImageRef) bmp->CreateCGImage() , transform );
|
||||
#endif
|
||||
@@ -500,7 +500,7 @@ wxMacCoreGraphicsPenData::wxMacCoreGraphicsPenData( wxGraphicsRenderer* renderer
|
||||
case wxPENSTYLE_STIPPLE:
|
||||
{
|
||||
wxBitmap* bmp = pen.GetStipple();
|
||||
if ( bmp && bmp->Ok() )
|
||||
if ( bmp && bmp->IsOk() )
|
||||
{
|
||||
m_colorSpace.reset( CGColorSpaceCreatePattern( NULL ) );
|
||||
m_pattern.reset( (CGPatternRef) *( new ImagePattern( bmp , CGAffineTransformMakeScale( 1,-1 ) ) ) );
|
||||
@@ -647,7 +647,7 @@ wxMacCoreGraphicsColour::wxMacCoreGraphicsColour( const wxBrush &brush )
|
||||
{
|
||||
// now brush is a bitmap
|
||||
wxBitmap* bmp = brush.GetStipple();
|
||||
if ( bmp && bmp->Ok() )
|
||||
if ( bmp && bmp->IsOk() )
|
||||
{
|
||||
m_isPattern = true;
|
||||
m_patternColorComponents = new CGFloat[1] ;
|
||||
@@ -2842,7 +2842,7 @@ wxGraphicsMatrix wxMacCoreGraphicsRenderer::CreateMatrix( wxDouble a, wxDouble b
|
||||
|
||||
wxGraphicsPen wxMacCoreGraphicsRenderer::CreatePen(const wxPen& pen)
|
||||
{
|
||||
if ( !pen.Ok() || pen.GetStyle() == wxTRANSPARENT )
|
||||
if ( !pen.IsOk() || pen.GetStyle() == wxTRANSPARENT )
|
||||
return wxNullGraphicsPen;
|
||||
else
|
||||
{
|
||||
@@ -2854,7 +2854,7 @@ wxGraphicsPen wxMacCoreGraphicsRenderer::CreatePen(const wxPen& pen)
|
||||
|
||||
wxGraphicsBrush wxMacCoreGraphicsRenderer::CreateBrush(const wxBrush& brush )
|
||||
{
|
||||
if ( !brush.Ok() || brush.GetStyle() == wxTRANSPARENT )
|
||||
if ( !brush.IsOk() || brush.GetStyle() == wxTRANSPARENT )
|
||||
return wxNullGraphicsBrush;
|
||||
else
|
||||
{
|
||||
@@ -2866,7 +2866,7 @@ wxGraphicsBrush wxMacCoreGraphicsRenderer::CreateBrush(const wxBrush& brush )
|
||||
|
||||
wxGraphicsBitmap wxMacCoreGraphicsRenderer::CreateBitmap( const wxBitmap& bmp )
|
||||
{
|
||||
if ( bmp.Ok() )
|
||||
if ( bmp.IsOk() )
|
||||
{
|
||||
wxGraphicsBitmap p;
|
||||
p.SetRefData(new wxMacCoreGraphicsBitmapData( this , bmp.CreateCGImage(), bmp.GetDepth() == 1 ) );
|
||||
@@ -2931,7 +2931,7 @@ wxMacCoreGraphicsRenderer::CreateRadialGradientBrush(wxDouble xo, wxDouble yo,
|
||||
// sets the font
|
||||
wxGraphicsFont wxMacCoreGraphicsRenderer::CreateFont( const wxFont &font , const wxColour &col )
|
||||
{
|
||||
if ( font.Ok() )
|
||||
if ( font.IsOk() )
|
||||
{
|
||||
wxGraphicsFont p;
|
||||
p.SetRefData(new wxMacCoreGraphicsFontData( this , font, col ));
|
||||
|
Reference in New Issue
Block a user