19 class PODOFO_API
Rect final
34 Rect(
double x,
double y,
double width,
double height);
44 static Rect FromCorners(
double x1,
double y1,
double x2,
double y2);
59 std::string ToString()
const;
61 bool Contains(
double x,
double y)
const;
67 void Intersect(
const Rect& rect);
80 double GetRight()
const;
84 double GetTop()
const;
87 bool operator==(
const Rect& rect)
const;
88 bool operator!=(
const Rect& rect)
const;
91 Rect operator*(
const Matrix& m)
const;
92 Rect& operator=(
const Rect& rhs) =
default;
This class represents a PdfArray Use it for all arrays that are written to a PDF file.
Definition: PdfArray.h:81
A rectangle defined by position and size.
Definition: Rect.h:20
double GetLeft() const
Get the left coordinate of the rectangle.
Definition: Rect.h:72
Rect(const Rect &rhs)=default
Copy constructor.
double GetBottom() const
Get the bottom coordinate of the rectangle.
Definition: Rect.h:76
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition: basetypes.h:16
@ Width
The glyph is accessed in the widths arrays (/Widths, /W1 keys)