virtual void WindowToScreen( int *x, int *y );
+ virtual double GetMagnificationFactor() const;
+
virtual bool IsActive();
virtual void SetModified(bool modified);
virtual void ScreenToWindow( int *x, int *y ) = 0;
virtual void WindowToScreen( int *x, int *y ) = 0;
+
+ virtual double GetMagnificationFactor() const { return 1.0; }
virtual bool IsActive() = 0;
virtual void UnsubclassWin();
virtual wxPoint GetClientAreaOrigin() const;
+
+ virtual double GetMagnificationFactor() const;
// implement base class pure virtuals
virtual int GetCharHeight() const;
virtual int GetCharWidth() const;
+
+ virtual double GetMagnificationFactor() const;
public:
virtual void SetScrollbar( int orient, int pos, int thumbVisible,
return wxSize( wxMax( client.x, best.x ), wxMax( client.y, best.y ) );
}
+ // returns the magnification of the backing store of this window
+ // eg 2.0 for a window on a retina screen
+ virtual double GetMagnificationFactor() const
+ { return 1.0; }
+
// return the size of the left/right and top/bottom borders in x and y
// components of the result respectively
virtual wxSize GetWindowBorderSize() const;
*y = p.y;
}
+double wxNonOwnedWindowCocoaImpl::GetMagnificationFactor() const
+{
+ return [m_macWindow backingScaleFactor];
+}
+
bool wxNonOwnedWindowCocoaImpl::IsActive()
{
return [m_macWindow isKeyWindow];
*height = h ;
}
+double wxNonOwnedWindow::GetMagnificationFactor() const
+{
+ return m_nowpeer->GetMagnificationFactor();
+}
+
void wxNonOwnedWindow::WindowWasPainted()
{
s_lastFlush = clock();
*y = hh;
}
+double wxWindowMac::GetMagnificationFactor() const
+{
+ wxNonOwnedWindow* tlw = MacGetTopLevelWindow() ;
+ wxCHECK_MSG( tlw , 1.0, wxT("TopLevel Window missing") ) ;
+ return tlw->GetMagnificationFactor();
+}
+
bool wxWindowMac::SetCursor(const wxCursor& cursor)
{
if (m_cursor.IsSameAs(cursor))