making getter const

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2004-07-14 16:33:17 +00:00
parent be346c263f
commit 5ac2e80ca2
10 changed files with 14 additions and 14 deletions

View File

@ -185,7 +185,7 @@ public:
// Unofficial API, don't use
virtual void SetNoAntiAliasing( bool WXUNUSED(no) = TRUE ) { }
virtual bool GetNoAntiAliasing() { return FALSE; }
virtual bool GetNoAntiAliasing() const { return FALSE; }
// the default encoding is used for creating all fonts with default
// encoding parameter

View File

@ -96,7 +96,7 @@ public:
virtual void SetEncoding(wxFontEncoding encoding);
virtual void SetNoAntiAliasing( bool no = true );
virtual bool GetNoAntiAliasing();
virtual bool GetNoAntiAliasing() const ;
// implementation from now on
void Unshare();

View File

@ -96,7 +96,7 @@ public:
virtual void SetEncoding(wxFontEncoding encoding);
virtual void SetNoAntiAliasing( bool no = true );
virtual bool GetNoAntiAliasing();
virtual bool GetNoAntiAliasing() const ;
// implementation from now on
void Unshare();

View File

@ -96,7 +96,7 @@ public:
// Unofficial API, don't use
virtual void SetNoAntiAliasing( bool noAA = TRUE ) ;
virtual bool GetNoAntiAliasing() ;
virtual bool GetNoAntiAliasing() const ;
// Mac-specific, risks to change, don't use in portable code
short MacGetFontNum() const;

View File

@ -94,7 +94,7 @@ public:
// Unofficial API, don't use
virtual void SetNoAntiAliasing( bool noAA = TRUE ) ;
virtual bool GetNoAntiAliasing() ;
virtual bool GetNoAntiAliasing() const ;
// Mac-specific, risks to change, don't use in portable code
short GetMacFontNum() const;

View File

@ -84,7 +84,7 @@ public:
virtual void SetEncoding(wxFontEncoding encoding);
virtual void SetNoAntiAliasing( bool no = TRUE );
virtual bool GetNoAntiAliasing();
virtual bool GetNoAntiAliasing() const ;
// Implementation

View File

@ -97,7 +97,7 @@ public:
void SetEncoding(wxFontEncoding encoding);
void SetNoAntiAliasing( bool no = TRUE ) { m_noAA = no; }
bool GetNoAntiAliasing() { return m_noAA; }
bool GetNoAntiAliasing() const { return m_noAA; }
// and this one also modifies all the other font data fields
void SetNativeFontInfo(const wxNativeFontInfo& info);
@ -774,7 +774,7 @@ wxFontEncoding wxFont::GetEncoding() const
return M_FONTDATA->m_encoding;
}
bool wxFont::GetNoAntiAliasing()
bool wxFont::GetNoAntiAliasing() const
{
wxCHECK_MSG( Ok(), wxFONTENCODING_DEFAULT, wxT("invalid font") );

View File

@ -97,7 +97,7 @@ public:
void SetEncoding(wxFontEncoding encoding);
void SetNoAntiAliasing( bool no = TRUE ) { m_noAA = no; }
bool GetNoAntiAliasing() { return m_noAA; }
bool GetNoAntiAliasing() const { return m_noAA; }
// and this one also modifies all the other font data fields
void SetNativeFontInfo(const wxNativeFontInfo& info);
@ -774,7 +774,7 @@ wxFontEncoding wxFont::GetEncoding() const
return M_FONTDATA->m_encoding;
}
bool wxFont::GetNoAntiAliasing()
bool wxFont::GetNoAntiAliasing() const
{
wxCHECK_MSG( Ok(), wxFONTENCODING_DEFAULT, wxT("invalid font") );

View File

@ -95,7 +95,7 @@ public:
virtual ~wxFontRefData();
void SetNoAntiAliasing( bool no = TRUE ) { m_noAA = no; }
bool GetNoAntiAliasing() { return m_noAA; }
bool GetNoAntiAliasing() const { return m_noAA; }
protected:
// common part of all ctors
@ -477,7 +477,7 @@ wxFontEncoding wxFont::GetEncoding() const
return M_FONTDATA->m_encoding;
}
bool wxFont::GetNoAntiAliasing()
bool wxFont::GetNoAntiAliasing() const
{
wxCHECK_MSG( M_FONTDATA != NULL , NULL, wxT("invalid font") );
return M_FONTDATA->m_noAA;

View File

@ -123,7 +123,7 @@ public:
void SetEncoding(wxFontEncoding encoding);
void SetNoAntiAliasing( bool no = TRUE ) { m_noAA = no; }
bool GetNoAntiAliasing() { return m_noAA; }
bool GetNoAntiAliasing() const { return m_noAA; }
// and this one also modifies all the other font data fields
void SetNativeFontInfo(const wxNativeFontInfo& info);
@ -745,7 +745,7 @@ wxFontEncoding wxFont::GetEncoding() const
return M_FONTDATA->m_encoding;
}
bool wxFont::GetNoAntiAliasing()
bool wxFont::GetNoAntiAliasing() const
{
wxCHECK_MSG( Ok(), wxFONTENCODING_DEFAULT, wxT("invalid font") );