|
PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
|
#include <PFont.h>
Public Member Functions | |
| PFont () | |
| Standard constructors: | |
| PFont (const std::string &filename) | |
| PFont (const std::string &filename, int style, int size, PColor fgcolor, PColor bgcolor, bool aa) | |
| Convenience constructor of PFont: | |
| PFont (const PFont &font) | |
| Copy constructor of PFont: | |
| virtual | ~PFont () |
| Copy constructor. | |
| virtual bool | SetProperty (std::string, Variant v) |
| Standard Destructors. | |
| virtual Variant | GetProperty (std::string) const |
| virtual ObjectValidationError | ValidateProperty (std::string, Variant v) const |
| virtual ObjectValidationError | ValidateProperty (std::string) const |
| virtual std::string | ObjectName () const |
| virtual void | SetFontFileName (const std::string &name) |
| Set methods for all of the data in font. | |
| virtual void | SetFontStyle (const int style) |
| virtual void | SetFontSize (const int size) |
| virtual void | SetFontColor (PColor color) |
| virtual void | SetBackgroundColor (PColor color) |
| virtual void | SetAntiAliased (const bool aa) |
| virtual std::string | GetFontFileName () const |
| virtual int | GetFontStyle () const |
| virtual int | GetFontSize () const |
| virtual PColor | GetFontColor () const |
| virtual PColor | GetBackgroundColor () const |
| virtual bool | GetAntiAliased () const |
| virtual bool | IsNormalFont () const |
| virtual bool | IsBoldFont () const |
| virtual bool | IsItalicFont () const |
| virtual bool | IsUnderlineFont () const |
Public Member Functions inherited from PEBLObjectBase | |
| PEBLObjectBase () | |
| Standard Constructor. | |
| PEBLObjectBase (ComplexDataType cdt) | |
| Standard Constructor. | |
| PEBLObjectBase (const PEBLObjectBase &pob) | |
| virtual | ~PEBLObjectBase () |
| Standard Destructor. | |
| virtual bool | InitializeProperty (std::string name, Variant v) |
| Variant | GetProperty (std::string) const |
| ComplexDataType | GetType () |
| virtual std::ostream & | PrintProperties (std::ostream &out) |
| virtual Variant | GetPropertyList () |
Protected Member Functions | |
| virtual std::ostream & | SendToStream (std::ostream &out) const |
| This sends the font descriptions to the specified stream. | |
| PColor * | GetFontColorPtr () const |
| PColor * | GetBackgroundColorPtr () const |
Protected Attributes | |
| std::string | mFontFileName |
| int | mFontStyle |
| int | mFontSize |
| bool | mAntiAliased |
Protected Attributes inherited from PEBLObjectBase | |
| ComplexDataType | mCDT |
| std::map< std::string, Variant > | mProperties |
| PFont::PFont | ( | ) |
Standard constructors:
Standard constructor of PFont.
Definition at line 39 of file PFont.cpp.
References CDT_FONT, PEBLObjectBase::InitializeProperty(), IsBoldFont(), IsItalicFont(), IsUnderlineFont(), mAntiAliased, PEBLObjectBase::mCDT, mFontFileName, mFontSize, and NULL.
| PFont::PFont | ( | const std::string & | filename | ) |
| PFont::PFont | ( | const std::string & | filename, |
| int | style, | ||
| int | size, | ||
| PColor | fgcolor, | ||
| PColor | bgcolor, | ||
| bool | aa | ||
| ) |
Convenience constructor of PFont:
Definition at line 76 of file PFont.cpp.
References CDT_FONT, PEBLObjectBase::InitializeProperty(), IsBoldFont(), IsItalicFont(), IsUnderlineFont(), mAntiAliased, PEBLObjectBase::mCDT, mFontFileName, mFontSize, and NULL.
| PFont::PFont | ( | const PFont & | font | ) |
Copy constructor of PFont:
Definition at line 111 of file PFont.cpp.
References CDT_FONT, GetAntiAliased(), GetBackgroundColor(), GetFontColor(), GetFontFileName(), GetFontSize(), GetFontStyle(), PEBLObjectBase::InitializeProperty(), IsBoldFont(), IsItalicFont(), IsUnderlineFont(), mAntiAliased, PEBLObjectBase::mCDT, mFontFileName, mFontSize, mFontStyle, and NULL.
|
virtual |
|
inlinevirtual |
Definition at line 88 of file PFont.h.
References mAntiAliased.
Referenced by PlatformTextBox::Draw(), main(), PFont(), PlatformFont::PlatformFont(), PlatformLabel::RenderText(), and PlatformTextBox::RenderText().
|
virtual |
Definition at line 296 of file PFont.cpp.
References GetBackgroundColorPtr().
Referenced by PlatformTextBox::Draw(), main(), PFont(), PlatformLabel::RenderText(), and PlatformTextBox::RenderText().
|
protected |
Definition at line 280 of file PFont.cpp.
References counted_ptr< X >::get(), Variant::GetComplexData(), PComplexData::GetObject(), and PEBLObjectBase::GetProperty().
Referenced by PlatformFont::ClearChanged(), GetBackgroundColor(), PlatformFont::HasChanged(), PlatformFont::PlatformFont(), PlatformFont::PlatformFont(), SendToStream(), SetBackgroundColor(), PlatformFont::SetBackgroundColor(), and PlatformFont::UpdateSDLColors().
|
virtual |
Definition at line 289 of file PFont.cpp.
References GetFontColorPtr().
Referenced by PlatformTextBox::Draw(), main(), PFont(), PlatformLabel::RenderText(), and PlatformTextBox::RenderText().
|
protected |
Definition at line 272 of file PFont.cpp.
References counted_ptr< X >::get(), Variant::GetComplexData(), PComplexData::GetObject(), and PEBLObjectBase::GetProperty().
Referenced by PlatformFont::ClearChanged(), GetFontColor(), PlatformFont::HasChanged(), PlatformFont::PlatformFont(), PlatformFont::PlatformFont(), SendToStream(), SetFontColor(), PlatformFont::SetFontColor(), and PlatformFont::UpdateSDLColors().
|
inlinevirtual |
Definition at line 83 of file PFont.h.
References mFontFileName.
Referenced by PlatformTextBox::Draw(), main(), PFont(), PlatformFont::PlatformFont(), PlatformLabel::RenderText(), and PlatformTextBox::RenderText().
|
inlinevirtual |
Definition at line 85 of file PFont.h.
References mFontSize.
Referenced by PlatformTextBox::Draw(), main(), PFont(), PlatformFont::PlatformFont(), PlatformLabel::RenderText(), PlatformTextBox::RenderText(), and PlatformTextBox::SetFont().
|
inlinevirtual |
Definition at line 84 of file PFont.h.
References mFontStyle.
Referenced by PlatformTextBox::Draw(), main(), PFont(), and PlatformFont::PlatformFont().
|
virtual |
Definition at line 228 of file PFont.cpp.
References PEBLObjectBase::GetProperty().
|
virtual |
Definition at line 367 of file PFont.cpp.
References mFontStyle, and PFS_Bold.
Referenced by main(), PFont(), PFont(), PFont(), SetFontStyle(), and SetProperty().
|
virtual |
Definition at line 373 of file PFont.cpp.
References mFontStyle, and PFS_Italic.
Referenced by main(), PFont(), PFont(), PFont(), SetFontStyle(), and SetProperty().
|
virtual |
|
virtual |
Definition at line 379 of file PFont.cpp.
References mFontStyle, and PFS_Underline.
Referenced by main(), PFont(), PFont(), PFont(), SetFontStyle(), and SetProperty().
|
virtual |
Reimplemented from PEBLObjectBase.
Reimplemented in PlatformFont, and PlatformFont.
Definition at line 243 of file PFont.cpp.
|
protectedvirtual |
This sends the font descriptions to the specified stream.
Reimplemented from PEBLObjectBase.
Reimplemented in PlatformFont, PlatformFont, and PlatformFont.
Definition at line 336 of file PFont.cpp.
References GetBackgroundColorPtr(), GetFontColorPtr(), mAntiAliased, mFontFileName, mFontSize, and mFontStyle.
|
virtual |
Definition at line 327 of file PFont.cpp.
References mAntiAliased, and PEBLObjectBase::SetProperty().
Referenced by SetProperty().
|
virtual |
Reimplemented in PlatformFont, and PlatformFont.
Definition at line 315 of file PFont.cpp.
References PColor::GetAlpha(), GetBackgroundColorPtr(), PColor::GetBlue(), PColor::GetGreen(), PColor::GetRed(), PColor::SetAlpha(), PColor::SetBlue(), PColor::SetGreen(), and PColor::SetRed().
Referenced by PlatformFont::SetBackgroundColor(), and SetProperty().
|
virtual |
Reimplemented in PlatformFont, and PlatformFont.
Definition at line 303 of file PFont.cpp.
References PColor::GetAlpha(), PColor::GetBlue(), GetFontColorPtr(), PColor::GetGreen(), PColor::GetRed(), PColor::SetAlpha(), PColor::SetBlue(), PColor::SetGreen(), and PColor::SetRed().
Referenced by PlatformFont::SetFontColor(), and SetProperty().
|
virtual |
Set methods for all of the data in font.
Definition at line 251 of file PFont.cpp.
References mFontFileName, and PEBLObjectBase::SetProperty().
Referenced by SetProperty().
|
virtual |
Reimplemented in PlatformFont.
Definition at line 265 of file PFont.cpp.
References mFontSize, and PEBLObjectBase::SetProperty().
Referenced by PlatformFont::SetFontSize(), and SetProperty().
|
virtual |
Reimplemented in PlatformFont.
Definition at line 257 of file PFont.cpp.
References IsBoldFont(), IsItalicFont(), IsUnderlineFont(), mFontStyle, and PEBLObjectBase::SetProperty().
Referenced by PlatformFont::SetFontStyle(), and SetProperty().
|
virtual |
Standard Destructors.
Reimplemented from PEBLObjectBase.
Definition at line 158 of file PFont.cpp.
References counted_ptr< X >::get(), Variant::GetComplexData(), Variant::GetInteger(), PComplexData::GetObject(), IsBoldFont(), IsItalicFont(), IsUnderlineFont(), PFS_Bold, PFS_Italic, PFS_Normal, PFS_Underline, SetAntiAliased(), SetBackgroundColor(), SetFontColor(), SetFontFileName(), SetFontSize(), and SetFontStyle().
|
virtual |
Reimplemented from PEBLObjectBase.
Definition at line 238 of file PFont.cpp.
References OVE_SUCCESS.
|
virtual |
Reimplemented from PEBLObjectBase.
Definition at line 234 of file PFont.cpp.
References ValidateProperty().
Referenced by ValidateProperty().
|
protected |
Definition at line 110 of file PFont.h.
Referenced by GetAntiAliased(), PFont(), PFont(), PFont(), PlatformFont::PlatformFont(), PlatformFont::RenderText(), SendToStream(), and SetAntiAliased().
|
protected |
Definition at line 104 of file PFont.h.
Referenced by GetFontFileName(), PFont(), PFont(), PFont(), PlatformFont::PlatformFont(), PlatformFont::PlatformFont(), SendToStream(), SetFontFileName(), PlatformFont::SetFontSize(), and PlatformFont::SetFontStyle().
|
protected |
Definition at line 106 of file PFont.h.
Referenced by GetFontSize(), PFont(), PFont(), PFont(), PlatformFont::PlatformFont(), PlatformFont::PlatformFont(), SendToStream(), SetFontSize(), and PlatformFont::SetFontSize().
|
protected |
Definition at line 105 of file PFont.h.
Referenced by GetFontStyle(), IsBoldFont(), IsItalicFont(), IsNormalFont(), IsUnderlineFont(), PFont(), PlatformFont::PlatformFont(), PlatformFont::PlatformFont(), SendToStream(), SetFontStyle(), and PlatformFont::SetFontStyle().