Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CPVT_FloatRect Class Referencefinal

#include <cpvt_floatrect.h>

+ Inheritance diagram for CPVT_FloatRect:
+ Collaboration diagram for CPVT_FloatRect:

Public Member Functions

 CPVT_FloatRect ()=default
 
 CPVT_FloatRect (float other_left, float other_top, float other_right, float other_bottom)
 
 CPVT_FloatRect (const CFX_FloatRect &rect)
 
float Height () const
 
- Public Member Functions inherited from CFX_FloatRect
constexpr CFX_FloatRect ()=default
 
constexpr CFX_FloatRect (float l, float b, float r, float t)
 
 CFX_FloatRect (const CFX_FloatRect &that)=default
 
CFX_FloatRectoperator= (const CFX_FloatRect &that)=default
 
 CFX_FloatRect (const FX_RECT &rect)
 
 CFX_FloatRect (const CFX_PointF &point)
 
void Normalize ()
 
bool IsEmpty () const
 
bool Contains (const CFX_PointF &point) const
 
bool Contains (const CFX_FloatRect &other_rect) const
 
void Intersect (const CFX_FloatRect &other_rect)
 
void Union (const CFX_FloatRect &other_rect)
 
FX_RECT GetInnerRect () const
 
FX_RECT GetOuterRect () const
 
FX_RECT GetClosestRect () const
 
CFX_FloatRect GetCenterSquare () const
 
void UpdateRect (const CFX_PointF &point)
 
float Width () const
 
float Height () const
 
float Left () const
 
float Bottom () const
 
float Right () const
 
float Top () const
 
void Inflate (float x, float y)
 
void Inflate (float other_left, float other_bottom, float other_right, float other_top)
 
void Inflate (const CFX_FloatRect &rt)
 
void Deflate (float x, float y)
 
void Deflate (float other_left, float other_bottom, float other_right, float other_top)
 
void Deflate (const CFX_FloatRect &rt)
 
CFX_FloatRect GetDeflated (float x, float y) const
 
void Translate (float e, float f)
 
void Scale (float fScale)
 
void ScaleFromCenterPoint (float fScale)
 
FX_RECT ToFxRect () const
 
FX_RECT ToRoundedFxRect () const
 
bool operator== (const CFX_FloatRect &other) const
 

Additional Inherited Members

- Static Public Member Functions inherited from CFX_FloatRect
static CFX_FloatRect GetBBox (pdfium::span< const CFX_PointF > pPoints)
 
- Public Attributes inherited from CFX_FloatRect
float left = 0.0f
 
float bottom = 0.0f
 
float right = 0.0f
 
float top = 0.0f
 

Detailed Description

Definition at line 12 of file cpvt_floatrect.h.

Constructor & Destructor Documentation

◆ CPVT_FloatRect() [1/3]

CPVT_FloatRect::CPVT_FloatRect ( )
default

◆ CPVT_FloatRect() [2/3]

CPVT_FloatRect::CPVT_FloatRect ( float other_left,
float other_top,
float other_right,
float other_bottom )
inline

Definition at line 16 of file cpvt_floatrect.h.

References CFX_FloatRect::CFX_FloatRect().

+ Here is the call graph for this function:

◆ CPVT_FloatRect() [3/3]

CPVT_FloatRect::CPVT_FloatRect ( const CFX_FloatRect & rect)
inlineexplicit

Definition at line 22 of file cpvt_floatrect.h.

References CFX_FloatRect::CFX_FloatRect(), CFX_FloatRect::bottom, CFX_FloatRect::left, CFX_FloatRect::right, and CFX_FloatRect::top.

+ Here is the call graph for this function:

Member Function Documentation

◆ Height()

float CPVT_FloatRect::Height ( ) const
inline

Definition at line 25 of file cpvt_floatrect.h.

References CFX_FloatRect::bottom, and CFX_FloatRect::top.

Referenced by CPVT_Section::GetSectionSize().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: