Graphics::LineObject Class Reference

A drawn line. More...

#include <Object.h>

Inheritance diagram for Graphics::LineObject:
Collaboration diagram for Graphics::LineObject:

Public Member Functions

 LineObject ()
 
 LineObject (Pen pen, Point pt1, Point pt2)
 
 LineObject (Pen pen, int16_t x1, int16_t y1, int16_t x2, int16_t y2)
 
 LineObject (int x0, int y0, int x1, int y1, Color color)
 
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::Line >
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

Pen pen {}
 
Point pt1 {}
 
Point pt2 {}
 

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 drawn line.

Constructor & Destructor Documentation

◆ LineObject() [1/4]

Graphics::LineObject::LineObject ( )
inline

◆ LineObject() [2/4]

Graphics::LineObject::LineObject ( Pen  pen,
Point  pt1,
Point  pt2 
)
inline

◆ LineObject() [3/4]

Graphics::LineObject::LineObject ( Pen  pen,
int16_t  x1,
int16_t  y1,
int16_t  x2,
int16_t  y2 
)
inline

◆ LineObject() [4/4]

Graphics::LineObject::LineObject ( int  x0,
int  y0,
int  x1,
int  y1,
Color  color 
)
inline

Member Function Documentation

◆ createRenderer()

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

Implements Graphics::Object.

Member Data Documentation

◆ pen

Pen Graphics::LineObject::pen {}

◆ pt1

Point Graphics::LineObject::pt1 {}

◆ pt2

Point Graphics::LineObject::pt2 {}

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