From 1e1cc1ce95dde0c66df452cf438a05c5d6cac153 Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Wed, 19 Nov 2003 19:29:20 +0000 Subject: [PATCH] Implemented missing pure virt functions (stub functions for now). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/mac/display.h | 10 ++++++++-- src/mac/carbon/display.cpp | 21 ++++++++++++++++++++- src/mac/display.cpp | 21 ++++++++++++++++++++- 3 files changed, 48 insertions(+), 4 deletions(-) diff --git a/include/wx/mac/display.h b/include/wx/mac/display.h index b06a7d7173..060c9c7ef4 100644 --- a/include/wx/mac/display.h +++ b/include/wx/mac/display.h @@ -24,17 +24,23 @@ class WXDLLEXPORT wxDisplay : public wxDisplayBase public: wxDisplay ( size_t index = 0 ); + ~wxDisplay(); + virtual wxRect GetGeometry() const; virtual int GetDepth() const; virtual wxString GetName() const; + virtual wxArrayVideoModes + GetModes(const wxVideoMode& mode = wxDefaultVideoMode) const; - ~wxDisplay(); + virtual wxVideoMode GetCurrentMode() const; + + virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode); private: wxDisplayMacPriv* m_priv; - DECLARE_NO_COPY_CLASS(wxDisplay); + DECLARE_NO_COPY_CLASS(wxDisplay) }; #endif // _WX_MAC_DISPLAY_H_ diff --git a/src/mac/carbon/display.cpp b/src/mac/carbon/display.cpp index 3502ac55f5..d3b03d203c 100644 --- a/src/mac/carbon/display.cpp +++ b/src/mac/carbon/display.cpp @@ -120,7 +120,26 @@ int wxDisplay::GetDepth() const wxString wxDisplay::GetName() const { // Macs don't name their displays... - return wxT(""); + return wxEmptyString; +} + + wxArrayVideoModes + wxDisplay::GetModes(const wxVideoMode& mode) const +{ + // Not implemented + return wxArrayVideoModes(); +} + +wxVideoMode wxDisplay::GetCurrentMode() const +{ + // Not implemented + return wxVideoMode(); +} + +bool wxDisplay::ChangeMode(const wxVideoMode& mode) +{ + // Not implemented + return false; } wxDisplay::~wxDisplay() diff --git a/src/mac/display.cpp b/src/mac/display.cpp index 3502ac55f5..d3b03d203c 100644 --- a/src/mac/display.cpp +++ b/src/mac/display.cpp @@ -120,7 +120,26 @@ int wxDisplay::GetDepth() const wxString wxDisplay::GetName() const { // Macs don't name their displays... - return wxT(""); + return wxEmptyString; +} + + wxArrayVideoModes + wxDisplay::GetModes(const wxVideoMode& mode) const +{ + // Not implemented + return wxArrayVideoModes(); +} + +wxVideoMode wxDisplay::GetCurrentMode() const +{ + // Not implemented + return wxVideoMode(); +} + +bool wxDisplay::ChangeMode(const wxVideoMode& mode) +{ + // Not implemented + return false; } wxDisplay::~wxDisplay() -- 2.45.2