X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/48a1108eb87970373e1b1d5debeeaedd8d1916ea..fe2fa280414bbb42ecd32d7c24ab8073e4182969:/src/palmos/font.cpp diff --git a/src/palmos/font.cpp b/src/palmos/font.cpp index 643465f864..305441e788 100644 --- a/src/palmos/font.cpp +++ b/src/palmos/font.cpp @@ -315,6 +315,8 @@ protected: bool m_nativeFontInfoOk; }; +#define M_FONTDATA ((wxFontRefData*)m_refData) + // ============================================================================ // implementation // ============================================================================ @@ -396,6 +398,15 @@ wxFont::~wxFont() // ---------------------------------------------------------------------------- // real implementation // ---------------------------------------------------------------------------- +wxGDIRefData *wxFont::CreateGDIRefData() const +{ + return new wxFontRefData(); +} + +wxGDIRefData *wxFont::CloneGDIRefData(const wxGDIRefData *data) const +{ + return new wxFontRefData(*wx_static_cast(const wxFontRefData *, data)); +} bool wxFont::RealizeResource() { @@ -417,10 +428,6 @@ bool wxFont::IsFree() const return false; } -void wxFont::Unshare() -{ -} - // ---------------------------------------------------------------------------- // change font attribute: we recreate font when doing it // ---------------------------------------------------------------------------- @@ -516,6 +523,24 @@ const wxNativeFontInfo *wxFont::GetNativeFontInfo() const return NULL; } +wxString wxFont::GetNativeFontInfoDesc() const +{ + wxCHECK_MSG( Ok(), wxEmptyString, wxT("invalid font") ); + + // be sure we have an HFONT associated... + wxConstCast(this, wxFont)->RealizeResource(); + return wxFontBase::GetNativeFontInfoDesc(); +} + +wxString wxFont::GetNativeFontInfoUserDesc() const +{ + wxCHECK_MSG( Ok(), wxEmptyString, wxT("invalid font") ); + + // be sure we have an HFONT associated... + wxConstCast(this, wxFont)->RealizeResource(); + return wxFontBase::GetNativeFontInfoUserDesc(); +} + bool wxFont::IsFixedWidth() const { return false;