|
|
| Rectangle () |
| | Default constructor.
|
|
virtual | ~Rectangle () |
| | Destructor; should be fine to inherit from.
|
| | Rectangle (const IntRect &rect, const Color4i &fill) |
| | Construct a Rectangle object from parameters.
|
| ObjectTypeInfo | type () const override |
| | Re-implements the IObject::type method.
|
| virtual Shape * | clone () const override |
| Texture * | texture () const |
| | Get a texture representation of the rectangle.
|
| void | update () override |
| void | draw (RenderTarget &target) const override |
| | Render the rectangle shape.
|
|
virtual | ~Shape (void) |
| | Destructor.
|
|
| Shape (const Shape ©) |
| | Copy constructor.
|
| ObjectTypeInfo | type () const override |
| | Re-implements the IObject::type method.
|
|
const Color4i & | outline_color (void) const |
| | Obtain the outline color used in rendering a shape.
|
|
const Color4i & | fill_color (void) const |
| | Obtain the inside fill color used in rendering a shape.
|
|
void | set_outline_color (const Color4i &color) |
| | Set the outline color of the shape to be rendered.
|
|
void | set_fill_color (const Color4i &color) |
| | Set the inside (fill) color of the shape to be rendered.
|
|
| Transformable (const Point2i &pos, const Size2i &size) |
|
| Transformable (const IntRect &bounds) |
| | Construct an object using a complete set of coordinates (bounds).
|
| ObjectTypeInfo | type () const override |
| | Re-implements the IObject::type method.
|
|
const Point2i & | position (void) const |
| | Getter for stored positioning coordinates.
|
|
const Size2i & | size (void) const |
| | Getter for stored size dimensions.
|
| virtual void | set_position (const Point2i &coords) |
| | Set the positioning – X & Y rendering coordinates – of the object.
|
| virtual void | set_size (const Size2i &size) |
| | Set the size dimensions– width & height rendering coordinates of the object.
|
| virtual void | set_bounds (const IntRect &bounds) |
| | Set the complete bounds of the object – position (X, Y) and size (width and height) dimensions.
|
| void | set_position (int x, int y) |
| void | set_size (int w, int h) |
| virtual void | translate (const Point2i &pos) |
| | IDrawable (void) |
| | Do nothing at all default constructor.
|
| virtual | ~IDrawable (void) |
| | Do nothing at all destructor.
|
|
| IObject (void) |
| | Default constructor.
|
|
virtual | ~IObject (void) |
| | Virtual destructor.
|
| virtual bool | is_type (const ObjectTypeInfo &rhs) const |
| | Compare this object type with another object's type.
|
2D Rectangle shape
- Todo
- Use SDL2's new multi-rectangle API; see SDL_RenderFillRects.
Jeffrey Carpenter i8deg.nosp@m.rees.nosp@m.@gmai.nosp@m.l.co.nosp@m.m @ 2013-10-03
Definition at line 48 of file Rectangle.hpp.