Graphics::SurfaceObject Class Reference
Describes a target surface and corresponding source location. More...
#include <Object.h>
Inheritance diagram for Graphics::SurfaceObject:
Collaboration diagram for Graphics::SurfaceObject:
Public Member Functions | |
| SurfaceObject (Surface &surface, const Rect &dest, Point source) | |
| Constructor. More... | |
| Renderer * | createRenderer (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::Surface > | |
| Kind | kind () const override |
Public Member Functions inherited from Graphics::Object | |
| virtual Kind | kind () const =0 |
| 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 LinkedObject * | next () const |
| bool | insertAfter (LinkedObject *object) |
| bool | operator== (const LinkedObject &other) const |
| bool | operator!= (const LinkedObject &other) const |
Public Attributes | |
| Surface & | surface |
| Rect | dest |
| Point | source |
Additional Inherited Members | |
Public Types inherited from Graphics::Object | |
| enum | Kind { 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 target surface and corresponding source location.
Used in surface copy operations to read display memory contents.
Constructor & Destructor Documentation
◆ SurfaceObject()
|
inline |
Constructor.
- Parameters
-
surface dest Where on the surface to write source Start position of source
Member Function Documentation
◆ createRenderer()
|
overridevirtual |
Create a software renderer for this object.
- Parameters
-
location
- Return values
-
renderer Returned renderer object
Return nullptr if object cannot/should not be rendered
Implements Graphics::Object.
◆ write()
|
overridevirtual |
Implements Graphics::Object.
Member Data Documentation
◆ dest
| Rect Graphics::SurfaceObject::dest |
◆ source
| Point Graphics::SurfaceObject::source |
◆ surface
| Surface& Graphics::SurfaceObject::surface |
The documentation for this class was generated from the following file:
Public Member Functions inherited from
1.8.17