![]() |
Hot Door CORE 0.8.3
Adobe® Illustrator® Plug-in Library
|
Contains a width and height for a rectangular shape. More...
#include <hdicoreSize.h>
Public Member Functions | |
| Size () | |
| Default Size constructor; sets width and height to 0.0. | |
| Size (const double width_, const double height_) | |
| Size constructor, taking width and height arguments. | |
| Size (const Size &size_) | |
| Size copy constructor. | |
| virtual | ~Size () |
| Size destructor. | |
| virtual Size & | operator= (const Size &rhs_) |
| Sets a Size object from another Size object. | |
| virtual bool | operator== (const Size &rhs_) const |
| Tests whether a given Size object is the same as another. | |
| virtual bool | operator!= (const Size &rhs_) const |
| Tests whether a given Size object is not the same as another. | |
| virtual Size | operator+ (const Size &rhs_) const |
| Allows two sizes to have their width and height values added using the + operator. | |
| virtual Size & | operator+= (const Size &rhs_) |
| Allows two sizes to have their width and height values added and assigned using the += operator. | |
| virtual Size | operator- (const Size &rhs_) const |
| Allows two sizes to have their width and height values subtracted using the - operator. | |
| virtual Size & | operator-= (const Size &rhs_) |
| Allows two sizes to have their width and height values subtracted and assigned using the -= operator. | |
| virtual Angle | diagonalAngle () const |
| Gets the angle from the top-left to the bottom-right of the "box" made by the Size object. | |
| virtual double | diagonalLength () const |
| Gets the length of the hypotenuse formed from the top-left to the bottom-right of the "box" made by the width and height. | |
Public Attributes | |
| double | width |
| Width of the item. | |
| double | height |
Friends | |
| geo::Size * | __accessImpl (const Size &) |
| Size | __accessCtor (const geo::Size &) |
Contains a width and height for a rectangular shape.
| hdi::core::Size::Size | ( | ) |
Default Size constructor; sets width and height to 0.0.
| hdi::core::Size::Size | ( | const double | width_, |
| const double | height_ | ||
| ) |
Size constructor, taking width and height arguments.
| width_ | Width of the item |
| height_ | Height of the item |
| hdi::core::Size::Size | ( | const Size & | size_ | ) |
|
virtual |
Size destructor.
|
virtual |
Gets the angle from the top-left to the bottom-right of the "box" made by the Size object.
|
virtual |
Gets the length of the hypotenuse formed from the top-left to the bottom-right of the "box" made by the width and height.
|
virtual |
Allows two sizes to have their width and height values added using the + operator.
| rhs_ | Righthand side of the + operator |
Allows two sizes to have their width and height values added and assigned using the += operator.
| rhs_ | Righthand side of the += operator |
Allows two sizes to have their width and height values subtracted using the - operator.
| rhs_ | Righthand side of the - operator |
Allows two sizes to have their width and height values subtracted and assigned using the -= operator.
| rhs_ | Righthand side of the -= operator |
|
virtual |
| double hdi::core::Size::height |
brief Height of the item