- // Without device translation, for backing pixmap purposes
- long YLOG2DEV_2(long y) const
- {
- long new_y = y - m_logicalOriginY;
- if (new_y > 0)
- return (long)((double)(new_y) * m_scaleY + 0.5) * m_signY;
- else
- return (long)((double)(new_y) * m_scaleY - 0.5) * m_signY;
- }
- long YLOG2DEVREL(long y) const
- {
- if (y > 0)
- return (long)((double)(y) * m_scaleY + 0.5);
- else
- return (long)((double)(y) * m_scaleY - 0.5);
- }
-
- void SetInternalDeviceOrigin( long x, long y );
- void GetInternalDeviceOrigin( long *x, long *y );
-
-public:
- // not sure what for, but what is a mm on a screen you don't know the size of?
- double m_mm_to_pix_x,m_mm_to_pix_y;
-
- // If un-scrolled is non-zero or d.o. changes with scrolling. Set using
- // SetInternalDeviceOrigin().
- long m_internalDeviceOriginX,m_internalDeviceOriginY;
-
- // To be set by external classes such as wxScrolledWindow using
- // SetDeviceOrigin()
- long m_externalDeviceOriginX,m_externalDeviceOriginY;
-
- // recompute scale?
- bool m_needComputeScaleX, m_needComputeScaleY;