Rect Struct Documentation
struct RectNamespace:datalogics_interface
Detailed Description
A rect holds four coordinates for a rectangle.
The coordinates for a rectangle include left, top, right, bottom. Width () and height () defines the rectangle's width and height. LLx and LLy defines lower left corner, and URx and URy defines the upper right corner.
Referenced by
AnnotationAxialShadingPatternCircleAnnotationContainerContentDrawParamsElementFontFormFreeTextAnnotationGroupHighlightAnnotationImageInkAnnotationLineAnnotationLinkAnnotationPagePathPolyLineAnnotationPolygonAnnotationQuadRectRedactionRemoteDestinationShadingPatternSignDocSquareAnnotationTextTextMarkupAnnotationTextRunUnderlineAnnotationViewDestination
Uses types
Constructor & Destructor Documentation
Rect
Rect()Rect
Rect(double ll_x, double ll_y, double ur_x, double ur_y)Parameters
ll_x: doublell_y: doubleur_x: doubleur_y: double
Field Documentation
ll_x
ll_xll_y
ll_yur_x
ur_xur_y
ur_yMember Function Documentation
bottom
double bottom()Returns:
doubleheight
double height()Returns:
doublein_rect
bool in_rect(const Rect & other)Parameters
other: const Rect &
Returns:
boolintersect
Rect intersect(const Rect & other)Parameters
other: const Rect &
Returns:
Rectis_empty
bool is_empty()Returns:
boolleft
double left()Returns:
doubleoperator!=
bool operator!=(const Rect & rhs)Parameters
rhs: const Rect &
Returns:
booloperator==
bool operator==(const Rect & rhs)Parameters
rhs: const Rect &
Returns:
booloverlaps
bool overlaps(const Rect & other)Parameters
other: const Rect &
Returns:
boolright
double right()Returns:
doubleset_bottom
void set_bottom(double val)Parameters
val: double
Returns:
voidset_left
void set_left(double val)Parameters
val: double
Returns:
voidset_right
void set_right(double val)Parameters
val: double
Returns:
voidset_top
void set_top(double val)Parameters
val: double
Returns:
voidto_string
std::string to_string()Returns:
std::stringtop
double top()Returns:
doubletransform
Rect transform(const Matrix & m)Parameters
Returns:
Rectwidth
double width()Returns:
double