virtual bool IsFlipped() const { return m_isFlipped; }
#endif
+ virtual double GetContentScaleFactor() const;
+
// cocoa thunk connected calls
virtual unsigned int draggingEntered(void* sender, WXWidget slf, void* _cmd);
virtual void WindowToScreen( int *x, int *y );
- virtual double GetMagnificationFactor() const;
-
virtual bool IsActive();
virtual void SetModified(bool modified);
virtual void GetPosition( int &x, int &y ) const = 0;
virtual void GetSize( int &width, int &height ) const = 0;
virtual void SetControlSize( wxWindowVariant variant ) = 0;
- virtual float GetContentScaleFactor() const
+ virtual double GetContentScaleFactor() const
{
return 1.0;
}
virtual void WindowToScreen( int *x, int *y ) = 0;
- virtual double GetMagnificationFactor() const { return 1.0; }
-
virtual bool IsActive() = 0;
wxNonOwnedWindow* GetWXPeer() { return m_wxPeer; }
virtual void GetPosition( int &x, int &y ) const;
virtual void GetSize( int &width, int &height ) const;
virtual void SetControlSize( wxWindowVariant variant );
- virtual float GetContentScaleFactor() const ;
+ virtual double GetContentScaleFactor() const ;
virtual void SetNeedsDisplay( const wxRect* where = NULL );
virtual bool GetNeedsDisplay() const;
virtual wxPoint GetClientAreaOrigin() const;
- virtual double GetMagnificationFactor() const;
-
// implement base class pure virtuals
virtual bool SetTransparent(wxByte alpha);
virtual int GetCharHeight() const;
virtual int GetCharWidth() const;
- virtual double GetMagnificationFactor() const;
-
public:
virtual void SetScrollbar( int orient, int pos, int thumbVisible,
int range, bool refresh = true );
bool IsNativeWindowWrapper() const { return m_isNativeWindowWrapper; }
- float GetContentScaleFactor() const ;
+ double GetContentScaleFactor() const ;
// internal response to size events
virtual void MacOnInternalSize() {}
return wxSize( wxMax( client.x, best.x ), wxMax( client.y, best.y ) );
}
- // returns the magnification of the backing store of this window
+ // returns the magnification of the content of this window
// eg 2.0 for a window on a retina screen
- virtual double GetMagnificationFactor() const
+ virtual double GetContentScaleFactor() const
{ return 1.0; }
// return the size of the left/right and top/bottom borders in x and y