From cf8f51dfdd324cf86b1b048df6cad12e27da3066 Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Sun, 19 Apr 2009 19:51:59 +0000 Subject: [PATCH] Backport of r60246. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_9_0_BRANCH@60247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/graphics.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/interface/wx/graphics.h b/interface/wx/graphics.h index e5b1f4d58c..6bea40c644 100644 --- a/interface/wx/graphics.h +++ b/interface/wx/graphics.h @@ -700,6 +700,12 @@ public: */ virtual wxGraphicsContext* CreateContextFromNativeWindow(void* window) = 0; + /** + Creates a wxGraphicsContext that can be used for measuring texts only. + No drawing commands are allowed. + */ + virtual wxGraphicsContext * CreateMeasuringContext() = 0; + /** Creates a native graphics font from a wxFont and a text colour. */