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 144 of file fx_coordinates.h.

Constructor & Destructor Documentation

◆ FX_RECT() [1/3]

FX_RECT::FX_RECT ( )
constexprdefault

Referenced by CPDF_DocPageData::AddFont().

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(), CPDF_ScaledRenderBuffer::CPDF_ScaledRenderBuffer(), 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 174 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 159 of file fx_coordinates.h.

References FX_RECT(), and Intersect().

Referenced by CFX_ImageTransformer::CFX_ImageTransformer().

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 86 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 162 of file fx_coordinates.h.

References bottom, left, right, and top.

Referenced by CFX_AggImageRenderer::CFX_AggImageRenderer(), 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 169 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 106 of file fx_coordinates.cpp.

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

Referenced by CFX_AggImageRenderer::CFX_AggImageRenderer(), 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 78 of file fx_coordinates.cpp.

References left, and top.

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

Here is the caller graph for this function:

◆ Width()

Member Data Documentation

◆ bottom

◆ left

int32_t FX_RECT::left = 0

Definition at line 178 of file fx_coordinates.h.

Referenced by CFX_AggImageRenderer::CFX_AggImageRenderer(), CFX_FloatRect::CFX_FloatRect(), 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_AggBitmapComposer::Compose(), CFX_DIBitmap::CompositeBitmap(), CPDF_RenderStatus::CompositeDIBitmap(), CFX_DIBitmap::CompositeMask(), CFX_DIBitmap::CompositeRect(), Contains(), CStretchEngine::ContinueStretchHorz(), CPDF_RenderTiling::Draw(), CFX_RenderDevice::DrawNormalText(), CFX_RenderDevice::DrawPath(), CGdiDeviceDriver::DrawPath(), CPDF_RenderStatus::DrawTilingPattern(), FPDFBitmap_FillRect(), CFX_Font::GetBBox(), 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_AggClipRgn::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(), CGdiDisplayDriver::SetDIBits(), CGdiPrinterDriver::SetDIBits(), CFX_RenderDevice::SetDIBitsWithBlend(), 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 179 of file fx_coordinates.h.

Referenced by CFX_AggImageRenderer::CFX_AggImageRenderer(), CFX_FloatRect::CFX_FloatRect(), 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_AggBitmapComposer::Compose(), CFX_DIBitmap::CompositeBitmap(), CPDF_RenderStatus::CompositeDIBitmap(), CFX_DIBitmap::CompositeMask(), CFX_DIBitmap::CompositeRect(), Contains(), CPDF_RenderTiling::Draw(), CFX_RenderDevice::DrawNormalText(), CFX_RenderDevice::DrawPath(), CGdiDeviceDriver::DrawPath(), CPDF_RenderStatus::DrawTilingPattern(), FPDFBitmap_FillRect(), CFX_Font::GetBBox(), CFX_Face::GetCharBBox(), 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_AggClipRgn::IntersectMaskF(), IsEmpty(), CPDF_Font::LoadFontDescriptor(), Normalize(), Offset(), operator==(), CFX_PSRenderer::SetClip_PathFill(), CFX_SkiaDeviceDriver::SetClip_PathFill(), CFX_RenderDevice::SetClip_Rect(), CGdiDisplayDriver::SetDIBits(), CGdiPrinterDriver::SetDIBits(), CFX_RenderDevice::SetDIBitsWithBlend(), 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: