Graphics::PointObject Class Reference

A single pixel == 1x1 rectangle. More...

#include <Object.h>

Inheritance diagram for Graphics::PointObject:
Collaboration diagram for Graphics::PointObject:

Public Member Functions

 PointObject (const Brush &brush, const Point &point)
 
void write (MetaWriter &meta) const override
 
RenderercreateRenderer (const Location &location) const override
 Create a software renderer for this object. More...
 
- Public Member Functions inherited from Graphics::ObjectTemplate< Object::Kind::Point >
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

Brush brush
 
Point point
 

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

A single pixel == 1x1 rectangle.

Constructor & Destructor Documentation

◆ PointObject()

Graphics::PointObject::PointObject ( const Brush brush,
const Point point 
)
inline

Member Function Documentation

◆ createRenderer()

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

Implements Graphics::Object.

Member Data Documentation

◆ brush

Brush Graphics::PointObject::brush

◆ point

Point Graphics::PointObject::point

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