Crazy Eddie's GUI System  ${CEGUI_VERSION}
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
FontDim_wrapper Struct Reference
+ Inheritance diagram for FontDim_wrapper:
+ Collaboration diagram for FontDim_wrapper:

Public Member Functions

 FontDim_wrapper (CEGUI::FontDim const &arg)
 
 FontDim_wrapper (::CEGUI::String const &name,::CEGUI::String const &font,::CEGUI::String const &text,::CEGUI::FontMetricType metric, float padding=0)
 
virtual ::CEGUI::BaseDimclone () const
 Create an exact copy of the specialised object and return it as a pointer to a BaseDim object. More...
 
::CEGUI::BaseDimdefault_clone () const
 
::CEGUI::Font const * getFontObject (::CEGUI::Window const &window) const
 
virtual float getValue (::CEGUI::Window const &wnd) const
 
float default_getValue (::CEGUI::Window const &wnd) const
 
virtual float getValue (::CEGUI::Window const &wnd,::CEGUI::Rectf const &container) const
 
float default_getValue (::CEGUI::Window const &wnd,::CEGUI::Rectf const &container) const
 
virtual bool handleFontRenderSizeChange (::CEGUI::Window &window,::CEGUI::Font const *font) const
 
bool default_handleFontRenderSizeChange (::CEGUI::Window &window,::CEGUI::Font const *font) const
 
virtual void writeXMLElementAttributes_impl (::CEGUI::XMLSerializer &xml_stream) const
 
virtual void default_writeXMLElementAttributes_impl (::CEGUI::XMLSerializer &xml_stream) const
 
virtual void writeXMLElementName_impl (::CEGUI::XMLSerializer &xml_stream) const
 
virtual void default_writeXMLElementName_impl (::CEGUI::XMLSerializer &xml_stream) const
 
virtual void writeXMLToStream (::CEGUI::XMLSerializer &xml_stream) const
 
void default_writeXMLToStream (::CEGUI::XMLSerializer &xml_stream) const
 
- Public Member Functions inherited from CEGUI::FontDim
 FontDim (const String &name, const String &font, const String &text, FontMetricType metric, float padding=0)
 Constructor. More...
 
const StringgetName () const
 Get the current name of the FontDim.
 
void setName (const String &name)
 Set the current name of the FontDim.
 
const StringgetFont () const
 Get the current font of the FontDim.
 
void setFont (const String &font)
 Set the current font of the FontDim.
 
const StringgetText () const
 Get the current text of the FontDim.
 
void setText (const String &text)
 Set the current text of the FontDim.
 
FontMetricType getMetric () const
 Get the current metric of the FontDim.
 
void setMetric (FontMetricType metric)
 Set the current metric of the FontDim.
 
float getPadding () const
 Get the current padding of the FontDim.
 
void setPadding (float padding)
 Set the current padding of the FontDim.
 
bool handleFontRenderSizeChange (Window &window, const Font *font) const
 perform any processing required due to the given font having changed.
 
float getValue (const Window &wnd) const
 Return a value that represents this dimension as absolute pixels. More...
 
float getValue (const Window &wnd, const Rectf &container) const
 Return a value that represents this dimension as absolute pixels. More...
 
 FontDim (const String &name, const String &font, const String &text, FontMetricType metric, float padding=0)
 Constructor. More...
 
const StringgetName () const
 Get the current name of the FontDim.
 
void setName (const String &name)
 Set the current name of the FontDim.
 
const StringgetFont () const
 Get the current font of the FontDim.
 
void setFont (const String &font)
 Set the current font of the FontDim.
 
const StringgetText () const
 Get the current text of the FontDim.
 
void setText (const String &text)
 Set the current text of the FontDim.
 
FontMetricType getMetric () const
 Get the current metric of the FontDim.
 
void setMetric (FontMetricType metric)
 Set the current metric of the FontDim.
 
float getPadding () const
 Get the current padding of the FontDim.
 
void setPadding (float padding)
 Set the current padding of the FontDim.
 
bool handleFontRenderSizeChange (Window &window, const Font *font) const
 perform any processing required due to the given font having changed.
 
float getValue (const Window &wnd) const
 Return a value that represents this dimension as absolute pixels. More...
 
float getValue (const Window &wnd, const Rectf &container) const
 Return a value that represents this dimension as absolute pixels. More...
 
BaseDimclone () const
 Create an exact copy of the specialised object and return it as a pointer to a BaseDim object. More...
 
- Public Member Functions inherited from CEGUI::BaseDim
virtual void writeXMLToStream (XMLSerializer &xml_stream) const
 Writes an xml representation of this BaseDim to out_stream. More...
 
virtual void writeXMLToStream (XMLSerializer &xml_stream) const
 Writes an xml representation of this BaseDim to out_stream. More...
 

Additional Inherited Members

- Protected Member Functions inherited from CEGUI::FontDim
void writeXMLElementName_impl (XMLSerializer &xml_stream) const
 Implementataion method to output real xml element name.
 
void writeXMLElementAttributes_impl (XMLSerializer &xml_stream) const
 Implementataion method to create the element attributes.
 
const FontgetFontObject (const Window &window) const
 
void writeXMLElementName_impl (XMLSerializer &xml_stream) const
 Implementataion method to output real xml element name.
 
void writeXMLElementAttributes_impl (XMLSerializer &xml_stream) const
 Implementataion method to create the element attributes.
 
const FontgetFontObject (const Window &window) const
 

Member Function Documentation

virtual ::CEGUI::BaseDim* FontDim_wrapper::clone ( ) const
inlinevirtual

Create an exact copy of the specialised object and return it as a pointer to a BaseDim object.

Since the system needs to be able to copy objects derived from BaseDim, but only has knowledge of the BaseDim interface, this clone method is provided to prevent slicing issues.

Reimplemented from CEGUI::FontDim.

References CEGUI::FontDim::clone().