X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2fc9f0e3b981ceba0024e5b4a51e259d0100908..f115bfec38b810f06ccc47544a4e2e2e410f73b1:/interface/wx/config.h diff --git a/interface/wx/config.h b/interface/wx/config.h index 34b2c4263c..9fcd26670d 100644 --- a/interface/wx/config.h +++ b/interface/wx/config.h @@ -596,8 +596,7 @@ public: /** Reads a float value, returning @true if the value was found. - With the second overload, if the value was not found, @a defaultVal is - used instead. + If the value was not found, @a f is not changed. Notice that the value is read as a double but must be in a valid range for floats for the function to return @true. @@ -608,13 +607,25 @@ public: Not supported by wxPerl. @endWxPerlOnly */ - //@{ bool Read(const wxString& key, float* f) const; + /** + Reads a float value, returning @true if the value was found. + + If the value was not found, @a defaultVal is used instead. + + Notice that the value is read as a double but must be in a valid range + for floats for the function to return @true. + + @since 2.9.1 + + @beginWxPerlOnly + Not supported by wxPerl. + @endWxPerlOnly + */ bool Read(const wxString& key, float* f, float defaultVal) const; - //@} /** - Reads a float value, returning @true if the value was found. If the + Reads a boolean value, returning @true if the value was found. If the value was not found, @a b is not changed. @since 2.9.1 @@ -625,7 +636,7 @@ public: */ bool Read(const wxString& key, bool* b) const; /** - Reads a bool value, returning @true if the value was found. If the + Reads a boolean value, returning @true if the value was found. If the value was not found, @a defaultVal is used instead. @beginWxPerlOnly @@ -957,7 +968,7 @@ public: Returns the name of the key which was passed to the ctor. The "name" is just anything which follows the last slash of the string given to the ctor. */ - const wxString& Name() const { return m_strName; } + const wxString& Name() const; /** This method must be called if the original path inside the wxConfig object