Foxit PDF SDK
FSDK.RectF Class Reference

Public Member Functions

 constructor ()
 Construct an empty rectangle.
 
 constructor (left1, bottom1, Fight1, top1)
 Construct a rectangle with left-bottom and right-top corners. More...
 
 Contains (other_rect) Contains(x
 Check if current rectangle fully contains the other provided rectangle. That means to check if the other rectangle is fully inside current one. More...
 
 IsEmpty ()
 Verify whether the rect is empty. More...
 
 Normalize ()
 Normalize the rect. Make sure left <= right, and bottom <= top. More...
 
 Reset ()
 Reset rectangle, set coordinates to 0. More...
 

Public Attributes

 bottom
 The bottom.
 
 right
 The right.
 
 top
 The top.
 

Member Function Documentation

◆ constructor()

FSDK.RectF.constructor (   left1,
  bottom1,
  Fight1,
  top1 
)
inline

Construct a rectangle with left-bottom and right-top corners.

Parameters
[in]left1The x-coordinate of the input left-bottom corner.
[in]bottom1The y-coordinate of the input left-bottom corner.
[in]right1The x-coordinate of the input right-top corner.
[in]top1The y-coordinate of the input right-top corner.

◆ Contains()

FSDK.RectF.Contains (   other_rect)

Check if current rectangle fully contains the other provided rectangle. That means to check if the other rectangle is fully inside current one.

Parameters
[in]other_rectThe other provided rect.
Returns
true means current rectangle fully contains the other one, while false means not.Check if current rectangle fully contains the provided point. That means to check if the provided point is inside current rectangle.
Parameters
[in]xThe x coordinate of the provided point.
[in]yThe y coordinate of the provided point.
Returns
true means current rectangle contains the provided point, while false means not.

◆ IsEmpty()

FSDK.RectF.IsEmpty ( )
inline

Verify whether the rect is empty.

Returns
true meanas current rect is empty, while false means not.

◆ Normalize()

FSDK.RectF.Normalize ( )
inline

Normalize the rect. Make sure left <= right, and bottom <= top.

Returns
None.

◆ Reset()

FSDK.RectF.Reset ( )
inline

Reset rectangle, set coordinates to 0.

Returns
None.