Graphics::SurfaceRenderer Class Reference

Copy an area to another surface. More...

#include <Renderer.h>

Inheritance diagram for Graphics::SurfaceRenderer:
Collaboration diagram for Graphics::SurfaceRenderer:

Public Member Functions

 SurfaceRenderer (const Location &location, const SurfaceObject &object)
 
 SurfaceRenderer (const Location &location, Surface &target, const Rect &dest, Point source)
 
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

Copy an area to another surface.

Typically used to copy display memory into RAM

Constructor & Destructor Documentation

◆ SurfaceRenderer() [1/2]

Graphics::SurfaceRenderer::SurfaceRenderer ( const Location location,
const SurfaceObject object 
)
inline

◆ SurfaceRenderer() [2/2]

Graphics::SurfaceRenderer::SurfaceRenderer ( const Location location,
Surface target,
const Rect dest,
Point  source 
)
inline

Member Function Documentation

◆ execute()

bool Graphics::SurfaceRenderer::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: