PdfRect class
Rectangle in PDF page coordinates.
Please note that PDF page coordinates is different from Flutter's coordinate. PDF page coordinates's origin is at the bottom-left corner and Y-axis is pointing upward; bottom is generally smaller than top. The unit is normally in points (1/72 inch).
- Annotations
Properties
- bottom → double
-
Bottom coordinate (smaller than top).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → double
-
Height of the rectangle.
no setter
- isEmpty → bool
-
Determine whether the rectangle is empty.
no setter
- isNotEmpty → bool
-
Determine whether the rectangle is NOT empty.
no setter
- left → double
-
Left coordinate.
final
- right → double
-
Right coordinate.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- top → double
-
Top coordinate (bigger than bottom).
final
- width → double
-
Width of the rectangle.
no setter
Methods
-
contains(
double x, double y) → bool - Determine whether the rectangle contains the specified point (in the PDF page coordinates).
-
containsOffset(
Offset offset) → bool - Determine whether the rectangle contains the specified point (in the PDF page coordinates).
-
merge(
PdfRect other) → PdfRect - Merge two rectangles.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rotate(
int rotation, PdfPage page) → PdfRect -
toRect(
{required PdfPage page, Size? scaledPageSize, int? rotation}) → Rect -
Convert to Rect in Flutter coordinate.
page
is the page to convert the rectangle.scaledPageSize
is the scaled page size to scale the rectangle. If not specified, PdfPage.size is used.rotation
is the rotation of the page. If not specified, PdfPage.rotation is used. -
toRectInPageRect(
{required PdfPage page, required Rect pageRect}) → Rect -
Convert to Rect in Flutter coordinate using
pageRect
as the page's bounding rectangle. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override