git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42273
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Useful helper: create the brush resource
//
bool RealizeResource(void);
// Useful helper: create the brush resource
//
bool RealizeResource(void);
- WXHANDLE GetResourceHandle(void) ;
+ virtual WXHANDLE GetResourceHandle(void) const;
bool FreeResource(bool bForce = false);
bool IsFree(void) const;
void Unshare(void);
bool FreeResource(bool bForce = false);
bool IsFree(void) const;
void Unshare(void);
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Purpose: wxFont class
// Author: David Webster
// Modified by:
// Purpose: wxFont class
// Author: David Webster
// Modified by:
//
virtual bool IsFree(void) const;
virtual bool RealizeResource(void);
//
virtual bool IsFree(void) const;
virtual bool RealizeResource(void);
- virtual WXHANDLE GetResourceHandle(void);
+ virtual WXHANDLE GetResourceHandle(void) const;
virtual bool FreeResource(bool bForce = false);
WXHFONT GetHFONT(void) const;
virtual bool FreeResource(bool bForce = false);
WXHFONT GetHFONT(void) const;
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
-// Name: include/wx/os2/gdiimage.h
+// Name: wx/os2/gdiimage.h
// Purpose: wxGDIImage class: base class for wxBitmap, wxIcon, wxCursor
// under OS/2
// Author: David Webster (adapted from msw version by Vadim Zeitlin)
// Purpose: wxGDIImage class: base class for wxBitmap, wxIcon, wxCursor
// under OS/2
// Author: David Webster (adapted from msw version by Vadim Zeitlin)
bool IsOk() const
{
if (m_hHandle == 0)
bool IsOk() const
{
if (m_hHandle == 0)
- return FALSE;
- return TRUE;
+ return false;
+ return true;
pData->m_uId = uId;
}
// forward some of base class virtuals to wxGDIImageRefData
pData->m_uId = uId;
}
// forward some of base class virtuals to wxGDIImageRefData
- bool FreeResource(bool bForce = FALSE);
- virtual WXHANDLE GetResourceHandle();
+ bool FreeResource(bool bForce = false);
+ virtual WXHANDLE GetResourceHandle() const;
protected:
// create the data for the derived class here
protected:
// create the data for the derived class here
//
bool RealizeResource(void);
bool FreeResource(bool bForce = false);
//
bool RealizeResource(void);
bool FreeResource(bool bForce = false);
- WXHANDLE GetResourceHandle(void);
+ virtual WXHANDLE GetResourceHandle(void) const;
bool IsFree(void) const;
void Unshare(void);
bool IsFree(void) const;
void Unshare(void);
return false;
} // end of wxBrush::RealizeResource
return false;
} // end of wxBrush::RealizeResource
-WXHANDLE wxBrush::GetResourceHandle()
+WXHANDLE wxBrush::GetResourceHandle() const
{
if (!M_BRUSHDATA)
return 0;
{
if (!M_BRUSHDATA)
return 0;
public:
wxFontRefData()
{
public:
wxFontRefData()
{
- Init(-1, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, FALSE,
+ Init(-1, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false,
wxEmptyString, wxFONTENCODING_DEFAULT);
}
wxEmptyString, wxFONTENCODING_DEFAULT);
}
return false;
} // end of wxFont::FreeResource
return false;
} // end of wxFont::FreeResource
-WXHANDLE wxFont::GetResourceHandle()
+WXHANDLE wxFont::GetResourceHandle() const
{
return GetHFONT();
} // end of wxFont::GetResourceHandle
{
return GetHFONT();
} // end of wxFont::GetResourceHandle
-WXHANDLE wxGDIImage::GetResourceHandle()
+WXHANDLE wxGDIImage::GetResourceHandle() const
return false;
} // end of wxPen::RealizeResource
return false;
} // end of wxPen::RealizeResource
-WXHANDLE wxPen::GetResourceHandle()
+WXHANDLE wxPen::GetResourceHandle() const
{
if (!M_PENDATA)
return 0;
{
if (!M_PENDATA)
return 0;