Graphics::CopyObject Class Reference

Describes a copy operation within the same surface. More...

#include <Object.h>

Inheritance diagram for Graphics::CopyObject:
Collaboration diagram for Graphics::CopyObject:

Public Member Functions

 CopyObject (const Rect &source, Point dest)
 
RenderercreateRenderer (const Location &location) const override
 Create a software renderer for this object. More...
 
void write (MetaWriter &meta) const override
 
- Public Member Functions inherited from Graphics::ObjectTemplate< Object::Kind::Copy >
Kind kind () const override
 
- Public Member Functions inherited from Graphics::Object
bool operator== (const Object &other) const
 
virtual String getTypeStr () const
 
- Public Member Functions inherited from LinkedObjectTemplate< Object >
Object * getNext () const
 
bool insertAfter (Object *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
 

Public Attributes

Rect source
 
Point dest
 

Additional Inherited Members

- Public Types inherited from Graphics::Object
enum class  Kind { XX }
 
using List = LinkedObjectListTemplate< Object >
 
using OwnedList = OwnedLinkedObjectListTemplate< Object >
 
- Public Types inherited from LinkedObjectTemplate< Object >
using Iterator = IteratorTemplate< Object, Object *, Object & >
 
using ConstIterator = IteratorTemplate< const Object, const Object *, const Object & >
 

Detailed Description

Describes a copy operation within the same surface.

Constructor & Destructor Documentation

◆ CopyObject()

Graphics::CopyObject::CopyObject ( const Rect source,
Point  dest 
)
inline

Member Function Documentation

◆ createRenderer()

Renderer* Graphics::CopyObject::createRenderer ( const Location location) const
overridevirtual

Create a software renderer for this object.

Parameters
location
Return values
rendererReturned renderer object

Return nullptr if object cannot/should not be rendered

Implements Graphics::Object.

◆ write()

void Graphics::CopyObject::write ( MetaWriter meta) const
inlineoverridevirtual

Implements Graphics::Object.

Member Data Documentation

◆ dest

Point Graphics::CopyObject::dest

◆ source

Rect Graphics::CopyObject::source

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