Crazy Eddie's GUI System
0.8.4
|
Class that contains a collection of Property objects. More...
Inherits CEGUI::PropertyReceiver.
Inherited by CEGUI::Element, CEGUI::Font, and CEGUI::XMLParser.
Public Types | |
typedef ConstMapIterator < PropertyRegistry > | PropertyIterator |
Public Member Functions | |
PropertySet (void) | |
Constructs a new PropertySet object. | |
virtual | ~PropertySet (void) |
Destructor for PropertySet objects. | |
void | addProperty (Property *property) |
Adds a new Property to the PropertySet. | |
void | removeProperty (const String &name) |
Removes a Property from the PropertySet. | |
Property * | getPropertyInstance (const String &name) const |
Retrieves a property instance (that was previously added) | |
void | clearProperties (void) |
Removes all Property objects from the PropertySet. | |
bool | isPropertyPresent (const String &name) const |
Checks to see if a Property with the given name is in the PropertySet. | |
const String & | getPropertyHelp (const String &name) const |
Return the help text for the specified Property. | |
String | getProperty (const String &name) const |
Gets the current value of the specified Property. | |
template<typename T > | |
PropertyHelper< T >::return_type | getProperty (const String &name) const |
void | setProperty (const String &name, const String &value) |
Sets the current value of a Property. | |
template<typename T > | |
void | setProperty (const String &name, typename PropertyHelper< T >::pass_type value) |
bool | isPropertyDefault (const String &name) const |
Returns whether a Property is at it's default value. | |
String | getPropertyDefault (const String &name) const |
Returns the default value of a Property as a String. | |
PropertyIterator | getPropertyIterator (void) const |
Return a PropertySet::PropertyIterator object to iterate over the available Properties. |
Class that contains a collection of Property objects.
void CEGUI::PropertySet::addProperty | ( | Property * | property | ) |
Adds a new Property to the PropertySet.
property | Pointer to the Property object to be added to the PropertySet. |
NullObjectException | Thrown if property is NULL. |
AlreadyExistsException | Thrown if a Property with the same name as property already exists in the PropertySet |
void CEGUI::PropertySet::clearProperties | ( | void | ) |
Removes all Property objects from the PropertySet.
String CEGUI::PropertySet::getProperty | ( | const String & | name | ) | const |
Gets the current value of the specified Property.
UnknownObjectException | Thrown if no Property named name is in the PropertySet. |
PropertyHelper<T>::return_type CEGUI::PropertySet::getProperty | ( | const String & | name | ) | const [inline] |
Gets the current value of the specified Property.
UnknownObjectException | Thrown if no Property named name is in the PropertySet. |
This method tries to do a native type get without string conversion if possible, if that is not possible, it gracefully falls back to string conversion
References CEGUI::Property::get(), and CEGUI::TypedProperty< T >::getNative().
String CEGUI::PropertySet::getPropertyDefault | ( | const String & | name | ) | const |
const String& CEGUI::PropertySet::getPropertyHelp | ( | const String & | name | ) | const |
Return the help text for the specified Property.
UnknownObjectException | Thrown if no Property named name is in the PropertySet. |
Property* CEGUI::PropertySet::getPropertyInstance | ( | const String & | name | ) | const |
bool CEGUI::PropertySet::isPropertyDefault | ( | const String & | name | ) | const |
bool CEGUI::PropertySet::isPropertyPresent | ( | const String & | name | ) | const |
Checks to see if a Property with the given name is in the PropertySet.
void CEGUI::PropertySet::removeProperty | ( | const String & | name | ) |
Removes a Property from the PropertySet.
name | String containing the name of the Property to be removed. If Property name is not in the set, nothing happens. |
void CEGUI::PropertySet::setProperty | ( | const String & | name, |
const String & | value | ||
) |
Sets the current value of a Property.
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 |
UnknownObjectException | Thrown if no Property named name is in the PropertySet. |
InvalidRequestException | Thrown when the Property was unable to interpret the content of value. |
void CEGUI::PropertySet::setProperty | ( | const String & | name, |
typename PropertyHelper< T >::pass_type | value | ||
) | [inline] |
Sets the current value of a Property.
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 |
UnknownObjectException | Thrown if no Property named name is in the PropertySet. |
InvalidRequestException | Thrown when the Property was unable to interpret the content of value. |
This method tries to do a native type set without string conversion if possible, if that is not possible, it gracefully falls back to string conversion
References CEGUI::Property::set(), and CEGUI::TypedProperty< T >::setNative().