Crazy Eddies GUI System
0.6.0
|
Class that contains a collection of Property objects. More...
Public Types | |
typedef ConstBaseIterator < PropertyRegistry > | Iterator |
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. More... | |
void | removeProperty (const String &name) |
Removes a Property from the PropertySet. More... | |
void | clearProperties (void) |
Removes all Property objects from the PropertySet. More... | |
bool | isPropertyPresent (const String &name) const |
Checks to see if a Property with the given name is in the PropertySet. More... | |
const String & | getPropertyHelp (const String &name) const |
Return the help text for the specified Property. More... | |
String | getProperty (const String &name) const |
Gets the current value of the specified Property. More... | |
void | setProperty (const String &name, const String &value) |
Sets the current value of a Property. More... | |
bool | isPropertyDefault (const String &name) const |
Returns whether a Property is at it's default value. More... | |
String | getPropertyDefault (const String &name) const |
Returns the default value of a Property as a String. More... | |
Iterator | getIterator (void) const |
Return a PropertySet::Iterator 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 |
References CEGUI::Property::getName().
Referenced by CEGUI::Font::addFontProperties(), CEGUI::FreeTypeFont::addFreeTypeFontProperties(), CEGUI::PixmapFont::addPixmapFontProperties(), CEGUI::Window::addStandardProperties(), CEGUI::WidgetLookFeel::initialiseWidget(), and CEGUI::WindowRenderer::onAttach().
void CEGUI::PropertySet::clearProperties | ( | void | ) |
Removes all Property objects from the PropertySet.
Gets the current value of the specified Property.
UnknownObjectException | Thrown if no Property named name is in the PropertySet. |
Referenced by CEGUI::FontManager::createFont(), CEGUI::FontManager::destroyFont(), CEGUI::PropertyLinkDefinition::get(), CEGUI::WindowProperties::Font::get(), CEGUI::ComponentArea::getPixelRect(), CEGUI::PropertyDim::getValue_impl(), CEGUI::SectionSpecification::initColourRectForOverride(), CEGUI::FalagardComponentBase::initColoursRect(), CEGUI::ImagerySection::initMasterColourRect(), CEGUI::Window::isPropertyAtDefault(), CEGUI::SectionSpecification::render(), CEGUI::ImageryComponent::render_impl(), and CEGUI::TextComponent::render_impl().
Return the help text for the specified Property.
UnknownObjectException | Thrown if no Property named name is in the PropertySet. |
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.
Referenced by CEGUI::TabControl::performChildWindowLayout().
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. |
Referenced by CEGUI::WidgetLookFeel::cleanUpWidget(), and CEGUI::WindowRenderer::onDetach().
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. |
Referenced by CEGUI::PropertyInitialiser::apply(), CEGUI::WidgetLookFeel::initialiseWidget(), CEGUI::TabControl::performChildWindowLayout(), and CEGUI::PropertyLinkDefinition::set().