Allow creating wxTextMeasure without specifying the font.
Use the default window/DC font by default as this is the most common case. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -18,9 +18,9 @@
|
|||||||
class wxTextMeasure : public wxTextMeasureBase
|
class wxTextMeasure : public wxTextMeasureBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxTextMeasure(const wxDC *dc, const wxFont *font)
|
wxEXPLICIT wxTextMeasure(const wxDC *dc, const wxFont *font = NULL)
|
||||||
: wxTextMeasureBase(dc, font) {}
|
: wxTextMeasureBase(dc, font) {}
|
||||||
wxTextMeasure(const wxWindow *win, const wxFont *font)
|
wxEXPLICIT wxTextMeasure(const wxWindow *win, const wxFont *font = NULL)
|
||||||
: wxTextMeasureBase(win, font) {}
|
: wxTextMeasureBase(win, font) {}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@@ -20,13 +20,13 @@ class WXDLLIMPEXP_FWD_CORE wxWindowDCImpl;
|
|||||||
class wxTextMeasure : public wxTextMeasureBase
|
class wxTextMeasure : public wxTextMeasureBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxTextMeasure(const wxDC *dc, const wxFont *font)
|
wxEXPLICIT wxTextMeasure(const wxDC *dc, const wxFont *font = NULL)
|
||||||
: wxTextMeasureBase(dc, font)
|
: wxTextMeasureBase(dc, font)
|
||||||
{
|
{
|
||||||
Init();
|
Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
wxTextMeasure(const wxWindow *win, const wxFont *font)
|
wxEXPLICIT wxTextMeasure(const wxWindow *win, const wxFont *font = NULL)
|
||||||
: wxTextMeasureBase(win, font)
|
: wxTextMeasureBase(win, font)
|
||||||
{
|
{
|
||||||
Init();
|
Init();
|
||||||
|
@@ -20,12 +20,13 @@
|
|||||||
class wxTextMeasure : public wxTextMeasureBase
|
class wxTextMeasure : public wxTextMeasureBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxTextMeasure(const wxDC *dc, const wxFont *font)
|
wxEXPLICIT wxTextMeasure(const wxDC *dc, const wxFont *font = NULL)
|
||||||
: wxTextMeasureBase(dc, font)
|
: wxTextMeasureBase(dc, font)
|
||||||
{
|
{
|
||||||
Init();
|
Init();
|
||||||
}
|
}
|
||||||
wxTextMeasure(const wxWindow *win, const wxFont *font)
|
|
||||||
|
wxEXPLICIT wxTextMeasure(const wxWindow *win, const wxFont *font = NULL)
|
||||||
: wxTextMeasureBase(win, font)
|
: wxTextMeasureBase(win, font)
|
||||||
{
|
{
|
||||||
Init();
|
Init();
|
||||||
|
Reference in New Issue
Block a user