Made device to logical and vv conversion methods
virtual and implement them like any other method in the wxDC classes, not only in the their files but somehow belonging to the wxDCBase class. This is required for plugging in differnt DC backends with different conversions. Ideally (and absolutely possible ) all these methods should be removed and just the one in wxDCBase should stay using values set in the various derived classes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -516,14 +516,14 @@ public:
|
||||
|
||||
// This group of functions does actual conversion of the input, as you'd
|
||||
// expect.
|
||||
wxCoord DeviceToLogicalX(wxCoord x) const;
|
||||
wxCoord DeviceToLogicalY(wxCoord y) const;
|
||||
wxCoord DeviceToLogicalXRel(wxCoord x) const;
|
||||
wxCoord DeviceToLogicalYRel(wxCoord y) const;
|
||||
wxCoord LogicalToDeviceX(wxCoord x) const;
|
||||
wxCoord LogicalToDeviceY(wxCoord y) const;
|
||||
wxCoord LogicalToDeviceXRel(wxCoord x) const;
|
||||
wxCoord LogicalToDeviceYRel(wxCoord y) const;
|
||||
virtual wxCoord DeviceToLogicalX(wxCoord x) const = 0;
|
||||
virtual wxCoord DeviceToLogicalY(wxCoord y) const = 0;
|
||||
virtual wxCoord DeviceToLogicalXRel(wxCoord x) const = 0;
|
||||
virtual wxCoord DeviceToLogicalYRel(wxCoord y) const = 0;
|
||||
virtual wxCoord LogicalToDeviceX(wxCoord x) const = 0;
|
||||
virtual wxCoord LogicalToDeviceY(wxCoord y) const = 0;
|
||||
virtual wxCoord LogicalToDeviceXRel(wxCoord x) const = 0;
|
||||
virtual wxCoord LogicalToDeviceYRel(wxCoord y) const = 0;
|
||||
|
||||
// query DC capabilities
|
||||
// ---------------------
|
||||
|
Reference in New Issue
Block a user