- nom
- IFont
Public Types | |
| enum | FontStyle { Regular = 0, Bold = 1, Italic = 2, Underlined = 3, Faded = 4 } |
| Text effect styling. | |
| enum | TextAlignment { TopLeft = 0, TopCenter, TopRight, MiddleLeft, MiddleCenter, MiddleRight, BottomLeft, BottomCenter, BottomRight } |
| enum | RenderStyle { NotImplemented = 0, Solid, Shaded, Blended } |
| Text rendering qualities. | |
| typedef IFont * | RawPtr |
| typedef std::unique_ptr< IFont > | UniquePtr |
| typedef std::shared_ptr< IFont > | SharedPtr |
Public Types inherited from nom::IDrawable | |
|
typedef std::unique_ptr < IDrawable > | UniquePtr |
| std::unique_ptr definition type for your convenience, sir! | |
|
typedef std::shared_ptr < IDrawable > | SharedPtr |
| std::shared_ptr definition type at your leisure, sir! | |
|
typedef std::vector < std::shared_ptr< IDrawable > > | SharedDrawables |
| Vector of std::shared_ptr definition type for the brotherhood, sir! | |
|
typedef std::vector < std::unique_ptr< IDrawable > > | UniqueDrawables |
| std::unique_ptr vector container type | |
| typedef const Window & | RenderTarget |
Public Member Functions | |
| virtual IFont::SharedPtr | clone (void) const =0 |
| virtual bool | load (const std::string &filename, const Color &colorkey, bool use_cache=false)=0 |
| virtual const std::string & | getText (void) const =0 |
| virtual int32 | getFontWidth (void) const =0 |
| virtual int32 | getFontHeight (void) const =0 |
| virtual IFont::FontStyle | getFontStyle (void) const =0 |
| virtual const Coords & | getPosition (void) const =0 |
| virtual const Color & | getColor (void) const =0 |
| virtual uint32 | getNewline (void) const =0 |
| virtual uint32 | getSpacing (void) const =0 |
| virtual IFont::TextAlignment | getTextJustification (void) const =0 |
| virtual void | setText (const std::string &text)=0 |
| virtual void | setFontSize (int32 point_size) |
| virtual void | setFontStyle (int32 style, uint8 options=150)=0 |
| virtual void | setColor (const Color &color)=0 |
| virtual void | setPosition (const Coords &coords)=0 |
| virtual void | setSpacing (uint32 spaces)=0 |
| virtual void | setTextJustification (IFont::TextAlignment alignment)=0 |
| virtual IFont::RenderStyle | getRenderingStyle (void) const |
| virtual void | setRenderingStyle (IFont::RenderStyle) |
| virtual bool | resize (enum ResizeAlgorithm scaling_algorithm) |
Public Member Functions inherited from nom::IDrawable | |
| IDrawable (void) | |
| Do nothing at all default constructor. | |
| virtual | ~IDrawable (void) |
| Do nothing at all destructor. | |
| virtual void | update (void)=0 |
| virtual void | draw (RenderTarget) const =0 |
| Render the object onto the primary video buffer – your visible screen. | |
|
inlinevirtual |
Rescale the font with a chosen resizing algorithm
Optional interface with a return of false when the deriving class has chosen not to re-implement this method.
Reimplemented in nom::BitmapFont.
|
inlinevirtual |