|
Board
0.9.4
|
Struct representing a rectangle on the plane. More...
#include <Rect.h>
Public Member Functions | |
| Rect (double left=0.0f, double top=0.0f, double width=0.0f, double height=0.0f) | |
| Rect (Point topLeft, double width=0.0f, double height=0.0f) | |
| Rect (Point topLeft, Point bottomRight) | |
| Point | topLeft () const |
| Point | topRight () const |
| Point | bottomLeft () const |
| Point | bottomRight () const |
| Point | center () const |
| Point | centerLeft () const |
| Point | centerRight () const |
| Point | centerTop () const |
| Point | centerBottom () const |
| double | bottom () const |
| double | right () const |
| void | growToContain (Point) |
| bool | contains (Point) const |
| Rect & | grow (double margin) |
Public Attributes | |
| double | left |
| double | top |
| double | width |
| double | height |
Struct representing a rectangle on the plane.
The Rectangle structure.
|
inline |
Rect constructor.
| left | |
| top | |
| width | |
| height |
|
inline |
Rect constructor.
| topLeft | The top-left point of the rectangle. |
| width | |
| height |
Rect constructor.
| topLeft | The top-left point of the rectangle. |
| bottomRight | The bottom-right point of the rectangle. |
| double LibBoard::Rect::height |
Height of the rectangle.
Referenced by LibBoard::ShapeList::addTiling(), LibBoard::ShapeList::append(), LibBoard::Board::drawBoundingBox(), LibBoard::Board::drawRectangle(), LibBoard::Board::fillRectangle(), LibBoard::Group::flushFIG(), LibBoard::Image::flushPostscript(), operator<<(), LibBoard::Board::saveEPS(), LibBoard::Board::saveFIG(), LibBoard::Board::saveSVG(), LibBoard::Shape::scaleToHeight(), and LibBoard::Board::setClippingRectangle().
| double LibBoard::Rect::left |
Coordinate of the left side.
Referenced by LibBoard::ShapeList::addTiling(), LibBoard::ShapeList::append(), LibBoard::Board::drawBoundingBox(), LibBoard::Board::drawRectangle(), LibBoard::Board::fillRectangle(), LibBoard::Group::flushFIG(), operator<<(), LibBoard::Board::saveEPS(), and LibBoard::Board::setClippingRectangle().
| double LibBoard::Rect::top |
Coordinate of the upper side.
Referenced by LibBoard::ShapeList::addTiling(), LibBoard::ShapeList::append(), LibBoard::Board::drawBoundingBox(), LibBoard::Board::drawRectangle(), LibBoard::Board::fillRectangle(), LibBoard::Group::flushFIG(), operator<<(), LibBoard::Board::saveEPS(), and LibBoard::Board::setClippingRectangle().
| double LibBoard::Rect::width |
Width of the rectangle.
Referenced by LibBoard::ShapeList::addTiling(), LibBoard::ShapeList::append(), LibBoard::Board::drawBoundingBox(), LibBoard::Board::drawRectangle(), LibBoard::Board::fillRectangle(), LibBoard::Group::flushFIG(), LibBoard::Image::flushPostscript(), operator<<(), LibBoard::Board::saveEPS(), LibBoard::Board::saveFIG(), LibBoard::Board::saveSVG(), LibBoard::Shape::scaleToWidth(), and LibBoard::Board::setClippingRectangle().
1.8.10