Better name for wxXmlResource::GetDirection() argument.
'dir' is not very descriptive (of course it's a direction!), it's better to include 'default' in the name to indicate this is the default value to use in absence of a specific one. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -540,7 +540,7 @@ public:
|
|||||||
wxWindow *windowToUse = NULL);
|
wxWindow *windowToUse = NULL);
|
||||||
|
|
||||||
// Gets a direction, complains if the value is invalid.
|
// Gets a direction, complains if the value is invalid.
|
||||||
wxDirection GetDirection(const wxString& param, wxDirection dir = wxLEFT);
|
wxDirection GetDirection(const wxString& param, wxDirection dirDefault = wxLEFT);
|
||||||
|
|
||||||
// Gets a bitmap.
|
// Gets a bitmap.
|
||||||
wxBitmap GetBitmap(const wxString& param = wxT("bitmap"),
|
wxBitmap GetBitmap(const wxString& param = wxT("bitmap"),
|
||||||
|
@@ -578,14 +578,14 @@ protected:
|
|||||||
/**
|
/**
|
||||||
Gets a direction.
|
Gets a direction.
|
||||||
|
|
||||||
If the given @a param is not present or has empty value, @a dir is
|
If the given @a param is not present or has empty value, @a dirDefault is
|
||||||
returned by default. Otherwise the value of the parameter is parsed and
|
returned by default. Otherwise the value of the parameter is parsed and
|
||||||
a warning is generated if it's not one of @c wxLEFT, @c wxTOP, @c
|
a warning is generated if it's not one of @c wxLEFT, @c wxTOP, @c
|
||||||
wxRIGHT or @c wxBOTTOM.
|
wxRIGHT or @c wxBOTTOM.
|
||||||
|
|
||||||
@since 2.9.3
|
@since 2.9.3
|
||||||
*/
|
*/
|
||||||
wxDirection GetDirection(const wxString& param, wxDirection dir = wxLEFT);
|
wxDirection GetDirection(const wxString& param, wxDirection dirDefault = wxLEFT);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Gets a font.
|
Gets a font.
|
||||||
|
Reference in New Issue
Block a user