Add a wxHtmlTag helper parsing both absolute values and percents.
This allows to avoid some code duplication in different handlers. Closes #14868. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -104,6 +104,8 @@ public:
|
||||
// Convenience functions:
|
||||
bool GetParamAsColour(const wxString& par, wxColour *clr) const;
|
||||
bool GetParamAsInt(const wxString& par, int *clr) const;
|
||||
bool GetParamAsIntOrPercent(const wxString& param,
|
||||
int* value, bool& isPercent) const;
|
||||
|
||||
// Scans param like scanf() functions family does.
|
||||
// Example : ScanParam("COLOR", "\"#%X\"", &clr);
|
||||
|
Reference in New Issue
Block a user