Graphics::ScrollObject Class Reference

Describes a scrolling operation. More...

#include <Object.h>

Inheritance diagram for Graphics::ScrollObject:
Collaboration diagram for Graphics::ScrollObject:

Public Member Functions

 ScrollObject (const Rect &area, Point shift, bool wrapx, bool wrapy, Color fill)
 
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::Scroll >
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 area
 
Point shift
 
bool wrapx
 
bool wrapy
 
Color fill
 

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 scrolling operation.

Constructor & Destructor Documentation

◆ ScrollObject()

Graphics::ScrollObject::ScrollObject ( const Rect area,
Point  shift,
bool  wrapx,
bool  wrapy,
Color  fill 
)
inline

Member Function Documentation

◆ createRenderer()

Renderer* Graphics::ScrollObject::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::ScrollObject::write ( MetaWriter meta) const
inlineoverridevirtual

Implements Graphics::Object.

Member Data Documentation

◆ area

Rect Graphics::ScrollObject::area

◆ fill

Color Graphics::ScrollObject::fill

◆ shift

Point Graphics::ScrollObject::shift

◆ wrapx

bool Graphics::ScrollObject::wrapx

◆ wrapy

bool Graphics::ScrollObject::wrapy

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