PoDoFo::PdfRect Class Reference
#include <PdfRect.h>
List of all members.
Detailed Description
A rectangle as defined by the PDF reference
Constructor & Destructor Documentation
PoDoFo::PdfRect::PdfRect |
( |
|
) |
|
Create an empty rectangle with bottom=left=with=height=0
PoDoFo::PdfRect::PdfRect |
( |
double |
left, |
|
|
double |
bottom, |
|
|
double |
width, |
|
|
double |
height | |
|
) |
| | |
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
PoDoFo::PdfRect::PdfRect |
( |
const PdfArray & |
inArray |
) |
|
Create a rectangle from an array All values are in PDF units
PoDoFo::PdfRect::PdfRect |
( |
const PdfRect & |
rhs |
) |
|
Member Function Documentation
void PoDoFo::PdfRect::FromArray |
( |
const PdfArray & |
inArray |
) |
|
Assigns the values of this PdfRect from the 4 values in the array
- Parameters:
-
| inArray | the array to load the values from |
double PoDoFo::PdfRect::GetBottom |
( |
|
) |
const [inline] |
Get the bottom coordinate of the rectangle
- Returns:
- bottom
double PoDoFo::PdfRect::GetHeight |
( |
|
) |
const [inline] |
Get the height of the rectangle
- Returns:
- height in PDF units
double PoDoFo::PdfRect::GetLeft |
( |
|
) |
const [inline] |
Get the left coordinate of the rectangle
- Returns:
- left in PDF units
double PoDoFo::PdfRect::GetWidth |
( |
|
) |
const [inline] |
Get the width of the rectangle
- Returns:
- width in PDF units
void PoDoFo::PdfRect::SetBottom |
( |
double |
dBottom |
) |
[inline] |
Set the bottom coordinate of the rectangle
- Parameters:
-
void PoDoFo::PdfRect::SetHeight |
( |
double |
lHeight |
) |
[inline] |
Set the height of the rectangle
- Parameters:
-
void PoDoFo::PdfRect::SetLeft |
( |
double |
lLeft |
) |
[inline] |
Set the left coordinate of the rectangle
- Parameters:
-
void PoDoFo::PdfRect::SetWidth |
( |
double |
lWidth |
) |
[inline] |
Set the width of the rectangle
- Parameters:
-
std::string PoDoFo::PdfRect::ToString |
( |
|
) |
const |
Returns a string representation of the PdfRect
- Returns:
- std::string representation as [ left bottom right top ]
void PoDoFo::PdfRect::ToVariant |
( |
PdfVariant & |
var |
) |
const |
Converts the rectangle into an array based on PDF units and adds the array into an variant.
- Parameters:
-
| var | the variant to store the Rect |