Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CEGUI::MenuBaseProperties::HorzPadding Class Reference

Property to access the horz padding value of the menu. More...

#include <CEGUIMenuBaseProperties.h>

Inheritance diagram for CEGUI::MenuBaseProperties::HorzPadding:

Inheritance graph
[legend]
Collaboration diagram for CEGUI::MenuBaseProperties::HorzPadding:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HorzPadding ()
String get (const PropertyReceiver *receiver) const
 Return the current value of the Property as a String.
void set (PropertyReceiver *receiver, const String &value)
 Sets the value of the property.
const StringgetHelp (void) const
 Return a String that describes the purpose and usage of this Property.
const StringgetName (void) const
 Return a the name of this Property.
virtual bool isDefault (const PropertyReceiver *receiver) const
 Returns whether the property is at it's default value.
virtual String getDefault (const PropertyReceiver *receiver) const
 Returns the default value of the Property as a String.
void writeXMLToStream (const PropertyReceiver *receiver, OutStream &out_stream) const
 Writes out an XML representation of this class to the given stream.

Protected Attributes

String d_name
 String that stores the Property name.
String d_help
 String that stores the Property help text.
String d_default
 String that stores the Property default value string.
bool d_writeXML
 Specifies whether writeXMLToStream should do anything for this property.

Detailed Description

Property to access the horz padding value of the menu.

Usage:
Where:

Definition at line 72 of file CEGUIMenuBaseProperties.h.


Constructor & Destructor Documentation

CEGUI::MenuBaseProperties::HorzPadding::HorzPadding  )  [inline]
 

Definition at line 75 of file CEGUIMenuBaseProperties.h.


Member Function Documentation

String CEGUI::MenuBaseProperties::HorzPadding::get const PropertyReceiver receiver  )  const [virtual]
 

Return the current value of the Property as a String.

Parameters:
receiver Pointer to the target object.
Returns:
String object containing a textual representation of the current value of the Property

Implements CEGUI::Property.

Definition at line 46 of file CEGUIMenuBaseProperties.cpp.

References CEGUI::PropertyHelper::floatToString().

String CEGUI::Property::getDefault const PropertyReceiver receiver  )  const [virtual, inherited]
 

Returns the default value of the Property as a String.

Parameters:
receiver Pointer to the target object.
Returns:
String object containing a textual representation of the default value for this property.

Reimplemented in CEGUI::WindowProperties::AbsoluteMaxSize, CEGUI::TabControlProperties::TabHeight, CEGUI::TabControlProperties::AbsoluteTabHeight, CEGUI::TabControlProperties::TabTextPadding, and CEGUI::TabControlProperties::RelativeTabTextPadding.

Definition at line 43 of file CEGUIProperty.cpp.

References CEGUI::Property::d_default.

const String& CEGUI::Property::getHelp void   )  const [inline, inherited]
 

Return a String that describes the purpose and usage of this Property.

Returns:
String that contains the help text

Definition at line 100 of file CEGUIProperty.h.

const String& CEGUI::Property::getName void   )  const [inline, inherited]
 

Return a the name of this Property.

Returns:
String containing the name of the Property

Definition at line 110 of file CEGUIProperty.h.

Referenced by CEGUI::PropertySet::addProperty(), CEGUI::Falagard_xmlHandler::elementStart(), and CEGUI::MultiColumnListProperties::RowCount::set().

bool CEGUI::Property::isDefault const PropertyReceiver receiver  )  const [virtual, inherited]
 

Returns whether the property is at it's default value.

Parameters:
receiver Pointer to the target object.
Returns:
  • true if the property has it's default value.
  • false if the property has been modified from it's default value.

Reimplemented in CEGUI::WindowProperties::AbsoluteMaxSize, CEGUI::WindowProperties::Font, CEGUI::WindowProperties::MouseCursorImage, CEGUI::WindowProperties::Disabled, CEGUI::WindowProperties::Visible, CEGUI::TabControlProperties::TabHeight, CEGUI::TabControlProperties::AbsoluteTabHeight, CEGUI::TabControlProperties::TabTextPadding, and CEGUI::TabControlProperties::RelativeTabTextPadding.

Definition at line 35 of file CEGUIProperty.cpp.

References CEGUI::Property::d_default, and CEGUI::Property::get().

void CEGUI::MenuBaseProperties::HorzPadding::set PropertyReceiver receiver,
const String value
[virtual]
 

Sets the value of the property.

Parameters:
receiver Pointer to the target object.
value A String object that contains a textual representation of the new value to assign to the Property.
Returns:
Nothing.
Exceptions:
InvalidRequestException Thrown when the Property was unable to interpret the content of value.

Implements CEGUI::Property.

Definition at line 51 of file CEGUIMenuBaseProperties.cpp.

References CEGUI::PropertyHelper::stringToFloat().

void CEGUI::Property::writeXMLToStream const PropertyReceiver receiver,
OutStream out_stream
const [inherited]
 

Writes out an XML representation of this class to the given stream.

Note:
This would normally have been implemented via XMLGenerator base class, but in this case we require the target PropertyReceiver in order to obtain the property value.

Definition at line 48 of file CEGUIProperty.cpp.

References CEGUI::String::c_str(), CEGUI::Property::d_name, CEGUI::Property::d_writeXML, and CEGUI::Property::get().


Member Data Documentation

String CEGUI::Property::d_default [protected, inherited]
 

String that stores the Property default value string.

Definition at line 184 of file CEGUIProperty.h.

Referenced by CEGUI::Property::getDefault(), CEGUI::Property::isDefault(), and CEGUI::PropertyDefinition::writeXMLToStream().

String CEGUI::Property::d_help [protected, inherited]
 

String that stores the Property help text.

Definition at line 183 of file CEGUIProperty.h.

String CEGUI::Property::d_name [protected, inherited]
 

String that stores the Property name.

Definition at line 182 of file CEGUIProperty.h.

Referenced by CEGUI::Property::writeXMLToStream(), and CEGUI::PropertyDefinition::writeXMLToStream().

bool CEGUI::Property::d_writeXML [protected, inherited]
 

Specifies whether writeXMLToStream should do anything for this property.

Definition at line 185 of file CEGUIProperty.h.

Referenced by CEGUI::Property::writeXMLToStream().


The documentation for this class was generated from the following files:
Generated on Wed Sep 7 10:11:56 2005 for Crazy Eddies GUI System by  doxygen 1.4.3