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:
parent
be346c263f
commit
5ac2e80ca2
@ -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
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -84,7 +84,7 @@ public:
|
||||
virtual void SetEncoding(wxFontEncoding encoding);
|
||||
|
||||
virtual void SetNoAntiAliasing( bool no = TRUE );
|
||||
virtual bool GetNoAntiAliasing();
|
||||
virtual bool GetNoAntiAliasing() const ;
|
||||
|
||||
// Implementation
|
||||
|
||||
|
@ -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") );
|
||||
|
||||
|
@ -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") );
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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") );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user