Implement platform-specific coordinate conversion functions
Generic wxDC::DeviceToLogicalRel{X|Y}() and wxDC::LogicalToDeviceRel{X|Y}() functions don't take into account scaling applied with wxDC::SetTransformMatrix(). We need to implement in wxDCImpl and its platform-specific derivates new conversion functions that take all applied transformations into account. See #18923.
This commit is contained in:
@@ -325,6 +325,8 @@ public:
|
||||
// coordinates conversions and transforms
|
||||
virtual wxPoint DeviceToLogical(wxCoord x, wxCoord y) const;
|
||||
virtual wxPoint LogicalToDevice(wxCoord x, wxCoord y) const;
|
||||
virtual wxSize DeviceToLogicalRel(int x, int y) const;
|
||||
virtual wxSize LogicalToDeviceRel(int x, int y) const;
|
||||
|
||||
// bounding box
|
||||
|
||||
|
Reference in New Issue
Block a user