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
FX_RECT Struct Reference

#include <fx_coordinates.h>

+ Collaboration diagram for FX_RECT:

Public Member Functions

constexpr FX_RECT ()=default
 
constexpr FX_RECT (int l, int t, int r, int b)
 
 FX_RECT (const FX_RECT &that)=default
 
FX_RECToperator= (const FX_RECT &that)=default
 
int Width () const
 
int Height () const
 
bool IsEmpty () const
 
bool Valid () const
 
void Normalize ()
 
void Intersect (const FX_RECT &src)
 
void Intersect (int l, int t, int r, int b)
 
FX_RECT SwappedClipBox (int width, int height, bool bFlipX, bool bFlipY) const
 
void Offset (int dx, int dy)
 
bool operator== (const FX_RECT &src) const
 
bool Contains (int x, int y) const
 

Public Attributes

int32_t left = 0
 
int32_t top = 0
 
int32_t right = 0
 
int32_t bottom = 0
 

Detailed Description

Definition at line 148 of file fx_coordinates.h.

Constructor & Destructor Documentation

◆ FX_RECT() [1/3]

FX_RECT::FX_RECT ( )
constexprdefault

Referenced by CPDF_DocPageData::AddFont(), fxcodec::ProgressiveDecoder::LoadImageInfo(), and fxcodec::ProgressiveDecoder::SetClipBox().

+ Here is the caller graph for this function:

◆ FX_RECT() [2/3]

◆ FX_RECT() [3/3]

FX_RECT::FX_RECT ( const FX_RECT & that)
default

Referenced by CFX_ImageStretcher::CFX_ImageStretcher(), CPDF_DeviceBuffer::CPDF_DeviceBuffer(), and CStretchEngine::CStretchEngine().

+ Here is the caller graph for this function:

Member Function Documentation

◆ Contains()

bool FX_RECT::Contains ( int x,
int y ) const
inline

Definition at line 178 of file fx_coordinates.h.

References bottom, left, right, and top.

Referenced by CFFL_FormField::OnLButtonDown(), and CFFL_InteractiveFormFiller::OnLButtonUp().

+ Here is the caller graph for this function:

◆ Height()

◆ Intersect() [1/2]

◆ Intersect() [2/2]

void FX_RECT::Intersect ( int l,
int t,
int r,
int b )
inline

Definition at line 163 of file fx_coordinates.h.

References FX_RECT(), and Intersect().

Referenced by CFX_ImageTransformer::CFX_ImageTransformer(), and CFX_DIBitmap::CompositeRect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsEmpty()

◆ Normalize()

void FX_RECT::Normalize ( )

Definition at line 89 of file fx_coordinates.cpp.

References bottom, left, right, and top.

Referenced by CFX_FloatRect::GetClosestRect(), CFX_FloatRect::GetInnerRect(), CFX_FloatRect::GetOuterRect(), Intersect(), pdfium::CFX_AggDeviceDriver::StretchDIBits(), and SwappedClipBox().

+ Here is the caller graph for this function:

◆ Offset()

void FX_RECT::Offset ( int dx,
int dy )
inline

Definition at line 166 of file fx_coordinates.h.

References bottom, left, right, and top.

Referenced by CFX_ImageRenderer::CFX_ImageRenderer(), CFX_ImageTransformer::CFX_ImageTransformer(), CGdiDisplayDriver::StretchDIBits(), and pdfium::CFX_AggDeviceDriver::StretchDIBits().

+ Here is the caller graph for this function:

◆ operator=()

◆ operator==()

bool FX_RECT::operator== ( const FX_RECT & src) const
inline

Definition at line 173 of file fx_coordinates.h.

References bottom, left, right, and top.

◆ SwappedClipBox()

FX_RECT FX_RECT::SwappedClipBox ( int width,
int height,
bool bFlipX,
bool bFlipY ) const

Definition at line 109 of file fx_coordinates.cpp.

References bottom, left, Normalize(), right, and top.

Referenced by CFX_ImageRenderer::CFX_ImageRenderer(), and CFX_ImageTransformer::CFX_ImageTransformer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Valid()

bool FX_RECT::Valid ( ) const

Definition at line 81 of file fx_coordinates.cpp.

References left, and top.

Referenced by CFX_ImageTransformer::CFX_ImageTransformer(), and CFX_RenderDevice::DrawPathWithBlend().

+ Here is the caller graph for this function:

◆ Width()

Member Data Documentation

◆ bottom

◆ left

int32_t FX_RECT::left = 0

Definition at line 182 of file fx_coordinates.h.

Referenced by CFX_FloatRect::CFX_FloatRect(), CFX_ImageRenderer::CFX_ImageRenderer(), CFX_ImageTransformer::CFX_ImageTransformer(), CFX_RectF::CFX_RectF(), CStretchEngine::CStretchEngine(), FX_RECT(), CPDF_DocPageData::AddFont(), CPDF_DeviceBuffer::CalculateMatrix(), CPDF_Font::CheckFontMetrics(), CFX_DIBBase::ClipToInternal(), CFX_BitmapComposer::Compose(), CFX_DIBitmap::CompositeBitmap(), CFX_DIBitmap::CompositeMask(), CFX_DIBitmap::CompositeRect(), Contains(), CStretchEngine::ContinueStretchHorz(), CPDF_RenderTiling::Draw(), CFX_RenderDevice::DrawNormalText(), CGdiDeviceDriver::DrawPath(), CFX_RenderDevice::DrawPathWithBlend(), CPDF_RenderStatus::DrawTilingPattern(), CFX_Font::GetBBox(), CFX_SkiaDeviceDriver::GetClipBox(), CTextOnlyPrinterDriver::GetClipBox(), pdfium::CFX_AggDeviceDriver::GetClipBox(), CFGAS_GEGraphics::GetClipRect(), CFX_FloatRect::GetClosestRect(), CPDF_Page::GetDisplayMatrix(), CFX_FloatRect::GetInnerRect(), CFX_FloatRect::GetOuterRect(), CFX_DIBBase::GetOverlapRect(), CFX_PSRenderer::Init(), CPDF_Type3Char::InitializeFromStreamData(), Intersect(), CFX_ClipRgn::IntersectMaskF(), IsEmpty(), testing.tools.safetynet_image.ImageLocations::Left(), CPDF_Font::LoadFontDescriptor(), Normalize(), Offset(), operator==(), CFX_PSRenderer::SetClip_PathFill(), CFX_SkiaDeviceDriver::SetClip_PathFill(), CFX_RenderDevice::SetClip_Rect(), fxcodec::ProgressiveDecoder::SetClipBox(), CGdiDisplayDriver::SetDIBits(), CGdiPrinterDriver::SetDIBits(), CFX_RenderDevice::SetDIBitsWithBlend(), CXFA_ImageRenderer::Start(), fxcodec::ProgressiveDecoder::StartDecode(), CGdiPrinterDriver::StartDIBits(), CGdiDisplayDriver::StretchDIBits(), pdfium::CFX_AggDeviceDriver::StretchDIBits(), CStretchEngine::StretchVert(), SwappedClipBox(), CFX_DIBBase::SwapXY(), TEST(), TEST(), CPDF_Type3Char::Transform(), CFX_DIBBase::TransformTo(), Valid(), and Width().

◆ right

◆ top

int32_t FX_RECT::top = 0

Definition at line 183 of file fx_coordinates.h.

Referenced by CFX_FloatRect::CFX_FloatRect(), CFX_ImageRenderer::CFX_ImageRenderer(), CFX_ImageTransformer::CFX_ImageTransformer(), CFX_RectF::CFX_RectF(), CStretchEngine::CStretchEngine(), FX_RECT(), CPDF_DocPageData::AddFont(), CPDF_DeviceBuffer::CalculateMatrix(), CPDF_Font::CheckFontMetrics(), CFX_DIBBase::ClipToInternal(), CFX_BitmapComposer::Compose(), CFX_DIBitmap::CompositeBitmap(), CFX_DIBitmap::CompositeMask(), CFX_DIBitmap::CompositeRect(), Contains(), CPDF_RenderTiling::Draw(), CFX_RenderDevice::DrawNormalText(), CGdiDeviceDriver::DrawPath(), CFX_RenderDevice::DrawPathWithBlend(), CPDF_RenderStatus::DrawTilingPattern(), CFX_Font::GetBBox(), CPDF_CIDFont::GetCharBBox(), CFX_SkiaDeviceDriver::GetClipBox(), CTextOnlyPrinterDriver::GetClipBox(), pdfium::CFX_AggDeviceDriver::GetClipBox(), CFGAS_GEGraphics::GetClipRect(), CFX_FloatRect::GetClosestRect(), CPDF_Page::GetDisplayMatrix(), CFX_FloatRect::GetInnerRect(), CFX_FloatRect::GetOuterRect(), CFX_DIBBase::GetOverlapRect(), Height(), CFX_PSRenderer::Init(), CPDF_Type3Char::InitializeFromStreamData(), Intersect(), CFX_ClipRgn::IntersectMaskF(), IsEmpty(), CPDF_Font::LoadFontDescriptor(), Normalize(), Offset(), operator==(), CFX_PSRenderer::SetClip_PathFill(), CFX_SkiaDeviceDriver::SetClip_PathFill(), CFX_RenderDevice::SetClip_Rect(), fxcodec::ProgressiveDecoder::SetClipBox(), CGdiDisplayDriver::SetDIBits(), CGdiPrinterDriver::SetDIBits(), CFX_RenderDevice::SetDIBitsWithBlend(), CXFA_ImageRenderer::Start(), fxcodec::ProgressiveDecoder::StartDecode(), CGdiPrinterDriver::StartDIBits(), CStretchEngine::StartStretchHorz(), CGdiDisplayDriver::StretchDIBits(), pdfium::CFX_AggDeviceDriver::StretchDIBits(), CStretchEngine::StretchVert(), SwappedClipBox(), CFX_DIBBase::SwapXY(), TEST(), TEST(), CPDF_Type3Char::Transform(), CFX_DIBBase::TransformTo(), and Valid().


The documentation for this struct was generated from the following files: