#include <PdfRect.h>
Public Member Functions | |
PdfRect () | |
PdfRect (double left, double bottom, double width, double height) | |
PdfRect (const PdfArray &inArray) | |
PdfRect (const PdfRect &rhs) | |
void | ToVariant (PdfVariant &var) const |
std::string | ToString () const |
void | FromArray (const PdfArray &inArray) |
void | Intersect (const PdfRect &rRect) |
double | GetBottom () const |
void | SetBottom (double dBottom) |
double | GetLeft () const |
void | SetLeft (double lLeft) |
double | GetWidth () const |
void | SetWidth (double lWidth) |
double | GetHeight () const |
void | SetHeight (double lHeight) |
|
Create an empty rectangle with bottom=left=with=height=0 |
|
Create a rectangle with a given size and position All values are in PDF units NOTE: since PDF is bottom-left origined, we pass the bottom instead of the top |
|
Create a rectangle from an array All values are in PDF units |
|
Copy constructor |
|
Assigns the values of this PdfRect from the 4 values in the array
|
|
Get the bottom coordinate of the rectangle
|
|
Get the height of the rectangle
|
|
Get the left coordinate of the rectangle
|
|
Get the width of the rectangle
|
|
Intersect with another rect
|
|
Set the bottom coordinate of the rectangle
|
|
Set the height of the rectangle
|
|
Set the left coordinate of the rectangle
|
|
Set the width of the rectangle
|
|
Returns a string representation of the PdfRect
|
|
Converts the rectangle into an array based on PDF units and adds the array into an variant.
|