Graphics::DrawingObject Class Reference
A collection of line and curve drawing operations. More...
#include <Object.h>
Inheritance diagram for Graphics::DrawingObject:
Collaboration diagram for Graphics::DrawingObject:
Public Types | |
using | Callback = Delegate< void(DrawingObject *drawing)> |
![]() | |
enum | Kind { Kind::XX } |
using | List = LinkedObjectListTemplate< Object > |
using | OwnedList = OwnedLinkedObjectListTemplate< Object > |
![]() | |
using | Iterator = IteratorTemplate< Object, Object *, Object & > |
using | ConstIterator = IteratorTemplate< const Object, const Object *, const Object & > |
Public Member Functions | |
DrawingObject (IDataSourceStream *content) | |
DrawingObject (const FSTR::ObjectBase &source) | |
DrawingObject (String &&content) | |
void | write (MetaWriter &meta) const override |
Renderer * | createRenderer (const Location &location) const override |
Create a software renderer for this object. More... | |
IDataSourceStream & | getStream () const |
![]() | |
Kind | kind () const override |
![]() | |
virtual Kind | kind () const =0 |
bool | operator== (const Object &other) const |
virtual String | getTypeStr () const |
![]() | |
Object * | getNext () const |
bool | insertAfter (Object *object) |
Iterator | begin () const |
Iterator | end () const |
Iterator | cbegin () const |
Iterator | cend () const |
![]() | |
virtual | ~LinkedObject () |
virtual LinkedObject * | next () const |
bool | insertAfter (LinkedObject *object) |
bool | operator== (const LinkedObject &other) const |
bool | operator!= (const LinkedObject &other) const |
Public Attributes | |
std::unique_ptr< IDataSourceStream > | stream |
AssetList | assets |
Detailed Description
A collection of line and curve drawing operations.
Stored in a compact format which can be streamed.
Member Typedef Documentation
◆ Callback
using Graphics::DrawingObject::Callback = Delegate<void(DrawingObject* drawing)> |
Constructor & Destructor Documentation
◆ DrawingObject() [1/3]
|
inline |
◆ DrawingObject() [2/3]
|
inline |
◆ DrawingObject() [3/3]
|
inline |
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.
◆ getStream()
|
inline |
◆ write()
|
overridevirtual |
Implements Graphics::Object.
Member Data Documentation
◆ assets
AssetList Graphics::DrawingObject::assets |
◆ stream
std::unique_ptr<IDataSourceStream> Graphics::DrawingObject::stream |
The documentation for this class was generated from the following file: