29#ifndef NOMLIB_GRAPHICS_SHAPES_LINE_HPP
30#define NOMLIB_GRAPHICS_SHAPES_LINE_HPP
34#include "nomlib/config.hpp"
35#include "nomlib/math/Color4.hpp"
36#include "nomlib/math/Rect.hpp"
37#include "nomlib/graphics/shapes/Shape.hpp"
49 typedef Line self_type;
50 typedef Shape derived_class;
63 Line (
const IntRect& bounds,
const Color4i& outline );
85 void draw(RenderTarget& target)
const override;
Line(const IntRect &bounds, const Color4i &outline)
Construct a Line object from parameters.
void draw(RenderTarget &target) const override
Render the line segments.
virtual ~Line(void)
Destructor; should be fine to inherit from.
Line(void)
Default constructor.
virtual Shape * clone() const override
Implements the required Shape::clone method.
ObjectTypeInfo type() const override
Re-implements the IObject::type method.
Run-time type information (RTTI) container class.
Shape(const Shape ©)
Copy constructor.