]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/private/textmeasure.h
c3ab30da708844c8637b9fda5d6b2a19d9c8f513
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/private/textmeasure.h
3 // Purpose: Generic wxTextMeasure declaration.
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 1997-2012 wxWidgets team
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_GENERIC_PRIVATE_TEXTMEASURE_H_
12 #define _WX_GENERIC_PRIVATE_TEXTMEASURE_H_
14 // ----------------------------------------------------------------------------
15 // wxTextMeasure for the platforms without native support.
16 // ----------------------------------------------------------------------------
18 class wxTextMeasure
: public wxTextMeasureBase
21 wxEXPLICIT
wxTextMeasure(const wxDC
*dc
, const wxFont
*font
= NULL
)
22 : wxTextMeasureBase(dc
, font
) {}
23 wxEXPLICIT
wxTextMeasure(const wxWindow
*win
, const wxFont
*font
= NULL
)
24 : wxTextMeasureBase(win
, font
) {}
27 virtual void DoGetTextExtent(const wxString
& string
,
30 wxCoord
*descent
= NULL
,
31 wxCoord
*externalLeading
= NULL
);
33 virtual bool DoGetPartialTextExtents(const wxString
& text
,
37 wxDECLARE_NO_COPY_CLASS(wxTextMeasure
);
40 #endif // _WX_GENERIC_PRIVATE_TEXTMEASURE_H_