Move GetWeightClosestToNumericValue() to wxFontInfo too
This is similar to a recent commit which moved float to int point size conversions to wxFontInfo and is done for the same reasons: wxFont and wxNativeFontInfo can depend on wxFontInfo, but the converse is not true. No real changes.
This commit is contained in:
@@ -428,6 +428,18 @@ public:
|
||||
See ::wxFontFlag for the various flags that can be used.
|
||||
*/
|
||||
wxFontInfo& AllFlags(int flags);
|
||||
|
||||
/**
|
||||
Get the symbolic weight closest to the given raw weight value.
|
||||
|
||||
@param numWeight
|
||||
A valid raw weight value, i.e. a value in the range 1 to 1000,
|
||||
inclusive.
|
||||
@return A valid element of wxFontWeight enum.
|
||||
|
||||
@since 3.1.2
|
||||
*/
|
||||
static wxFontWeight GetWeightClosestToNumericValue(int numWeight);
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -1244,18 +1256,6 @@ public:
|
||||
*/
|
||||
static int GetNumericWeightOf(wxFontWeight weight);
|
||||
|
||||
/**
|
||||
Get the symbolic weight closest to the given raw weight value.
|
||||
|
||||
@param numWeight
|
||||
A valid raw weight value, i.e. a value in the range 1 to 1000,
|
||||
inclusive.
|
||||
@return A valid element of wxFontWeight enum.
|
||||
|
||||
@since 3.1.2
|
||||
*/
|
||||
static wxFontWeight GetWeightClosestToNumericValue(int numWeight);
|
||||
|
||||
//@{
|
||||
/**
|
||||
This function takes the same parameters as the relative
|
||||
|
Reference in New Issue
Block a user