Copy an area within the same surface. More...

#include <Renderer.h>

Inheritance diagram for Graphics::CopyRenderer:
Collaboration diagram for Graphics::CopyRenderer:

Public Member Functions

 CopyRenderer (const Location &location, const CopyObject &object)
 
bool execute (Surface &surface) override
 Called to do some writing to the surface. More...
 
 Renderer (const Location &location)
 Constructor. 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
 

Protected Member Functions

void init ()
 
void startRead (Surface &surface)
 
virtual void readComplete (uint8_t *data, size_t length)
 

Protected Attributes

PixelFormat pixelFormat {}
 
uint8_t bytesPerPixel
 
bool vertical
 
- Protected Attributes inherited from Graphics::Renderer
Location location
 

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 & >
 

Detailed Description

Copy an area within the same surface.

Constructor & Destructor Documentation

◆ CopyRenderer()

Graphics::CopyRenderer::CopyRenderer ( const Location location,
const CopyObject object 
)
inline

Member Function Documentation

◆ execute()

bool Graphics::CopyRenderer::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.

◆ init()

void Graphics::CopyRenderer::init ( )
protected

◆ readComplete()

virtual void Graphics::CopyRenderer::readComplete ( uint8_t data,
size_t  length 
)
inlineprotectedvirtual

Reimplemented in Graphics::ImageCopyRenderer.

◆ Renderer()

Graphics::Renderer::Renderer
inline

Constructor.

Parameters
locationLocation information

◆ startRead()

void Graphics::CopyRenderer::startRead ( Surface surface)
protected

Member Data Documentation

◆ bytesPerPixel

uint8_t Graphics::CopyRenderer::bytesPerPixel
protected

◆ pixelFormat

PixelFormat Graphics::CopyRenderer::pixelFormat {}
protected

◆ vertical

bool Graphics::CopyRenderer::vertical
protected

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