Class that contains a collection of Property objects.
More...
Inherits CEGUI::PropertyReceiver.
Inherited by CEGUI::Element, CEGUI::Font, and CEGUI::XMLParser.
Class that contains a collection of Property objects.
void CEGUI::PropertySet::addProperty |
( |
Property * |
property | ) |
|
void CEGUI::PropertySet::clearProperties |
( |
void |
| ) |
|
String CEGUI::PropertySet::getProperty |
( |
const String & |
name | ) |
const |
Gets the current value of the specified Property.
- Parameters
-
name | String containing the name of the Property who's value is to be returned. |
- Returns
- String object containing a textual representation of the requested Property.
- Exceptions
-
String CEGUI::PropertySet::getPropertyDefault |
( |
const String & |
name | ) |
const |
Returns the default value of a Property as a String.
- Parameters
-
name | String containing the name of the Property who's default string is to be returned. |
- Returns
- String object containing a textual representation of the default value for this property.
const String& CEGUI::PropertySet::getPropertyHelp |
( |
const String & |
name | ) |
const |
Return the help text for the specified Property.
- Parameters
-
name | String holding the name of the Property who's help text is to be returned. |
- Returns
- String object containing the help text for the Property name.
- Exceptions
-
Property* CEGUI::PropertySet::getPropertyInstance |
( |
const String & |
name | ) |
const |
Retrieves a property instance (that was previously added)
- Parameters
-
name | String containing the name of the Property to be retrieved. If Property name is not in the set, exception is thrown. |
- Returns
- Pointer to the property instance
bool CEGUI::PropertySet::isPropertyDefault |
( |
const String & |
name | ) |
const |
Returns whether a Property is at it's default value.
- Parameters
-
name | String containing the name of the Property who's default state is to be tested. |
- Returns
- true if the property has it's default value.
- false if the property has been modified from it's default value.
bool CEGUI::PropertySet::isPropertyPresent |
( |
const String & |
name | ) |
const |
void CEGUI::PropertySet::removeProperty |
( |
const String & |
name | ) |
|
void CEGUI::PropertySet::setProperty |
( |
const String & |
name, |
|
|
const String & |
value |
|
) |
| |
Sets the current value of a Property.
- Parameters
-
name | String containing the name of the Property who's value is to be set. |
value | String containing a textual representation of the new value for the Property |
- Returns
- Nothing
- Exceptions
-
template<typename T >
void CEGUI::PropertySet::setProperty |
( |
const String & |
name, |
|
|
typename PropertyHelper< T >::pass_type |
value |
|
) |
| |
|
inline |