Added full scaling to wxRTC

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2012-05-26 14:17:46 +00:00
parent 7ed9cd2891
commit 4ba36292f4
4 changed files with 214 additions and 49 deletions

View File

@@ -1726,6 +1726,46 @@ public:
*/
double GetDimensionScale() const { return GetBuffer().GetDimensionScale(); }
/**
Sets an overall scale factor for displaying and editing the content.
*/
void SetScale(double scale, bool refresh = false);
/**
Returns an overall scale factor for displaying and editing the content.
*/
double GetScale() const { return m_scale; }
/**
Returns an unscaled point.
*/
wxPoint GetUnscaledPoint(const wxPoint& pt) const;
/**
Returns a scaled point.
*/
wxPoint GetScaledPoint(const wxPoint& pt) const;
/**
Returns an unscaled size.
*/
wxSize GetUnscaledSize(const wxSize& sz) const;
/**
Returns a scaled size.
*/
wxSize GetScaledSize(const wxSize& sz) const;
/**
Returns an unscaled rectangle.
*/
wxRect GetUnscaledRect(const wxRect& rect) const;
/**
Returns a scaled rectangle.
*/
wxRect GetScaledRect(const wxRect& rect) const;
// Command handlers
/**
@@ -2250,6 +2290,9 @@ protected:
/// The object that currently has the editing focus
wxRichTextParagraphLayoutBox* m_focusObject;
/// An overall scale factor
double m_scale;
};
#if wxUSE_DRAG_AND_DROP