Destroy();
m_selected = bitmap;
- if (m_selected.Ok())
+ if (m_selected.IsOk())
{
if (m_selected.GetPixmap())
{
else
{
m_ok = false;
- m_window = (GdkWindow *) NULL;
+ m_window = NULL;
}
}
void wxMemoryDCImpl::SetPen( const wxPen& penOrig )
{
wxPen pen( penOrig );
- if ( m_selected.Ok() &&
+ if ( m_selected.IsOk() &&
m_selected.GetBitmap() &&
(pen != *wxTRANSPARENT_PEN) )
{
void wxMemoryDCImpl::SetBrush( const wxBrush& brushOrig )
{
wxBrush brush( brushOrig );
- if ( m_selected.Ok() &&
+ if ( m_selected.IsOk() &&
m_selected.GetBitmap() &&
(brush != *wxTRANSPARENT_BRUSH) )
{
{
wxBrush brush(brushOrig);
- if ( m_selected.Ok() &&
+ if ( m_selected.IsOk() &&
m_selected.GetBitmap() &&
(brush != *wxTRANSPARENT_BRUSH) )
{
void wxMemoryDCImpl::SetTextForeground( const wxColour& col )
{
- if ( m_selected.Ok() && m_selected.GetBitmap() )
+ if ( m_selected.IsOk() && m_selected.GetBitmap() )
{
wxWindowDCImpl::SetTextForeground( col == *wxWHITE ? *wxBLACK : *wxWHITE);
}
void wxMemoryDCImpl::SetTextBackground( const wxColour &col )
{
- if (m_selected.Ok() && m_selected.GetBitmap())
+ if (m_selected.IsOk() && m_selected.GetBitmap())
{
wxWindowDCImpl::SetTextBackground( col == *wxWHITE ? *wxBLACK : *wxWHITE );
}
void wxMemoryDCImpl::DoGetSize( int *width, int *height ) const
{
- if (m_selected.Ok())
+ if (m_selected.IsOk())
{
if (width) (*width) = m_selected.GetWidth();
if (height) (*height) = m_selected.GetHeight();