Graphics::TextRenderer Class Reference

Draw a line of text. More...

#include <Renderer.h>

Inheritance diagram for Graphics::TextRenderer:
Collaboration diagram for Graphics::TextRenderer:

Public Member Functions

 TextRenderer (const Location &location, const TextObject &object)
 
bool execute (Surface &surface) override
 Called to do some writing to the surface. More...
 
- Public Member Functions inherited from Graphics::Renderer
 Renderer (const Location &location)
 Constructor. More...
 
virtual ~Renderer ()
 
- Public Member Functions inherited from LinkedObjectTemplate< Renderer >
Renderer * getNext () const
 
bool insertAfter (Renderer *object)
 
Iterator begin () const
 
Iterator end () const
 
Iterator cbegin () const
 
Iterator cend () const
 
- Public Member Functions inherited from LinkedObject
virtual ~LinkedObject ()
 
virtual LinkedObjectnext () const
 
bool insertAfter (LinkedObject *object)
 
bool operator== (const LinkedObject &other) const
 
bool operator!= (const LinkedObject &other) const
 

Additional Inherited Members

- Public Types inherited from Graphics::Renderer
using List = LinkedObjectListTemplate< Renderer >
 
using OwnedList = OwnedLinkedObjectListTemplate< Renderer >
 
- Public Types inherited from LinkedObjectTemplate< Renderer >
using Iterator = IteratorTemplate< Renderer, Renderer *, Renderer & >
 
using ConstIterator = IteratorTemplate< const Renderer, const Renderer *, const Renderer & >
 
- Protected Attributes inherited from Graphics::Renderer
Location location
 

Detailed Description

Draw a line of text.

If foreground and background colours are the same then the text is renderered transparently.

Constructor & Destructor Documentation

◆ TextRenderer()

Graphics::TextRenderer::TextRenderer ( const Location location,
const TextObject object 
)
inline

Member Function Documentation

◆ execute()

bool Graphics::TextRenderer::execute ( Surface surface)
overridevirtual

Called to do some writing to the surface.

Return values
booltrue when rendering is complete, false if more work to be done

Implements Graphics::Renderer.


The documentation for this class was generated from the following file: