![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <fx_coordinates.h>
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_RECT & | operator= (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 |
Definition at line 144 of file fx_coordinates.h.
|
constexprdefault |
|
inlineconstexpr |
Definition at line 146 of file fx_coordinates.h.
References bottom, left, right, and top.
Referenced by CFX_AggClipRgn::CFX_AggClipRgn(), CStretchEngine::CStretchEngine(), CFX_DIBBase::ClipToInternal(), CFX_DIBitmap::CompositeRect(), CPDFSDK_RenderPageWithContext(), CFX_RenderDevice::FillRect(), FPDF_DeviceToPage(), FPDF_PageToDevice(), FPDF_RenderPageBitmapWithMatrix(), CGdiDeviceDriver::GDI_SetDIBits(), CPDF_RenderContext::GetBackgroundToDevice(), CFX_Face::GetCharBBox(), CGdiDeviceDriver::GetClipBox(), CTextOnlyPrinterDriver::GetClipBox(), pdfium::CFX_AggDeviceDriver::GetClipBox(), CFX_RectF::GetOuterRect(), CFX_DIBBase::GetOverlapRect(), Intersect(), CGdiDisplayDriver::SetDIBits(), CGdiPrinterDriver::SetDIBits(), CFX_RenderDevice::SetDIBitsWithBlend(), CFX_RenderDevice::StretchBitMaskWithFlags(), CGdiDisplayDriver::StretchDIBits(), pdfium::CFX_AggDeviceDriver::StretchDIBits(), CFX_RenderDevice::StretchDIBitsWithFlagsAndBlend(), CFX_DIBBase::StretchTo(), CFX_DIBBase::SwapXY(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), CFX_FloatRect::ToFxRect(), and CFX_FloatRect::ToRoundedFxRect().
|
default |
Referenced by CFX_ImageStretcher::CFX_ImageStretcher(), CPDF_DeviceBuffer::CPDF_DeviceBuffer(), CPDF_ScaledRenderBuffer::CPDF_ScaledRenderBuffer(), and CStretchEngine::CStretchEngine().
|
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().
|
inline |
Definition at line 152 of file fx_coordinates.h.
Referenced by CFX_AggImageRenderer::CFX_AggImageRenderer(), CFX_ImageTransformer::CFX_ImageTransformer(), CFX_RectF::CFX_RectF(), CFX_DIBBase::ClipToInternal(), CFX_AggBitmapComposer::Compose(), CPDF_RenderTiling::Draw(), CFX_RenderDevice::DrawNormalText(), CFX_RenderDevice::DrawPath(), CGdiDeviceDriver::DrawPath(), CFX_RenderDevice::FillRect(), FPDFBitmap_FillRect(), FPDFTextObj_GetRenderedBitmap(), CGdiDeviceDriver::GDI_SetDIBits(), CPWL_Edit::GetCharArrayAutoFontSize(), CFGAS_GEGraphics::GetClipRect(), pdfium::CFX_AggDeviceDriver::GetDIBits(), CFX_DIBBase::GetOverlapRect(), CPDF_ScaledRenderBuffer::Initialize(), CFX_AggClipRgn::IntersectMaskF(), CGdiDisplayDriver::SetDIBits(), CGdiPrinterDriver::SetDIBits(), CFX_RenderDevice::SetDIBitsWithBlend(), CGdiPrinterDriver::StartDIBits(), CStretchEngine::StartStretchHorz(), CGdiDisplayDriver::StretchDIBits(), and CFX_DIBBase::SwapXY().
Definition at line 93 of file fx_coordinates.cpp.
References bottom, left, Normalize(), right, and top.
Referenced by CFX_AggImageRenderer::CFX_AggImageRenderer(), CFX_ImageTransformer::CFX_ImageTransformer(), CStretchEngine::CStretchEngine(), CFX_DIBBase::ClipToInternal(), CFX_RenderDevice::DrawNormalText(), pdfium::CFX_AggDeviceDriver::FillRect(), FPDFBitmap_FillRect(), CFX_DIBBase::GetOverlapRect(), Intersect(), CFX_AggClipRgn::IntersectMaskF(), CFX_AggClipRgn::IntersectRect(), CFX_PSRenderer::SetClip_PathStroke(), CFX_RenderDevice::SetDIBitsWithBlend(), CFX_RenderDevice::StretchBitMaskWithFlags(), CGdiDisplayDriver::StretchDIBits(), pdfium::CFX_AggDeviceDriver::StretchDIBits(), CFX_RenderDevice::StretchDIBitsWithFlagsAndBlend(), and CFX_DIBBase::StretchTo().
|
inline |
Definition at line 159 of file fx_coordinates.h.
References FX_RECT(), and Intersect().
Referenced by CFX_ImageTransformer::CFX_ImageTransformer().
|
inline |
Definition at line 153 of file fx_coordinates.h.
References bottom, left, right, and top.
Referenced by CFX_AggImageRenderer::CFX_AggImageRenderer(), CFX_ImageTransformer::CFX_ImageTransformer(), CFX_DIBBase::ClipToInternal(), CFX_DIBitmap::CompositeRect(), CFX_RenderDevice::DrawNormalText(), CPDF_RenderStatus::DrawShadingPattern(), CPDF_RenderStatus::DrawTilingPattern(), pdfium::CFX_AggDeviceDriver::FillRect(), FPDFBitmap_FillRect(), FPDFTextObj_GetRenderedBitmap(), CFX_DIBBase::GetOverlapRect(), CFX_AggClipRgn::IntersectMaskF(), CFX_RenderDevice::SetDIBitsWithBlend(), CFX_DIBBase::StretchTo(), and CFX_DIBBase::SwapXY().
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().
|
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().
Referenced by CFX_AggImageRenderer::CFX_AggImageRenderer(), CFX_ImageTransformer::CFX_ImageTransformer(), CPDF_Font::CheckFontMetrics(), CFX_DIBitmap::CompositeBitmap(), CFX_DIBitmap::CompositeMask(), CFX_Face::GetCharBBox(), CPDF_CIDFont::GetCharBBox(), CPDF_Type3Font::GetCharBBox(), CFX_AggClipRgn::IntersectMaskF(), CPDF_Type3Font::Load(), CBC_OnedEAN13Writer::ShowChars(), CBC_OnedEAN8Writer::ShowChars(), CBC_OnedUPCAWriter::ShowChars(), TEST(), TEST(), and CPDF_Type3Char::Transform().
|
inline |
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().
bool FX_RECT::Valid | ( | ) | const |
Definition at line 78 of file fx_coordinates.cpp.
Referenced by CFX_ImageTransformer::CFX_ImageTransformer(), and CFX_RenderDevice::DrawPath().
|
inline |
Definition at line 151 of file fx_coordinates.h.
Referenced by CFX_AggImageRenderer::CFX_AggImageRenderer(), CFX_ImageTransformer::CFX_ImageTransformer(), CFX_RectF::CFX_RectF(), CStretchEngine::CStretchEngine(), CFX_DIBBase::ClipToInternal(), CFX_AggBitmapComposer::Compose(), CFX_DIBitmap::CompositeRect(), CPDF_RenderTiling::Draw(), CFX_RenderDevice::DrawNormalText(), CFX_RenderDevice::DrawPath(), CGdiDeviceDriver::DrawPath(), CFX_RenderDevice::FillRect(), FPDFBitmap_FillRect(), FPDFTextObj_GetRenderedBitmap(), CGdiDeviceDriver::GDI_SetDIBits(), CPWL_Edit::GetCharArrayAutoFontSize(), CFGAS_GEGraphics::GetClipRect(), pdfium::CFX_AggDeviceDriver::GetDIBits(), CFX_DIBBase::GetOverlapRect(), CPDF_ScaledRenderBuffer::Initialize(), CFX_AggClipRgn::IntersectMaskF(), CGdiDisplayDriver::SetDIBits(), CGdiPrinterDriver::SetDIBits(), CFX_RenderDevice::SetDIBitsWithBlend(), CGdiPrinterDriver::StartDIBits(), CGdiDisplayDriver::StretchDIBits(), and CFX_DIBBase::SwapXY().
int32_t FX_RECT::bottom = 0 |
Definition at line 181 of file fx_coordinates.h.
Referenced by CFX_FloatRect::CFX_FloatRect(), CStretchEngine::CStretchEngine(), FX_RECT(), CPDF_DocPageData::AddFont(), CPDF_Font::CheckFontMetrics(), CFX_DIBBase::ClipToInternal(), CFX_DIBitmap::CompositeRect(), Contains(), CStretchEngine::ContinueStretchHorz(), CPDF_RenderTiling::Draw(), CFX_RenderDevice::DrawPath(), CGdiDeviceDriver::DrawPath(), CFX_Font::GetBBox(), CFX_Face::GetCharBBox(), 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(), CGdiPrinterDriver::StartDIBits(), CGdiDisplayDriver::StretchDIBits(), CStretchEngine::StretchVert(), SwappedClipBox(), CFX_DIBBase::SwapXY(), TEST(), TEST(), and CPDF_Type3Char::Transform().
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().
int32_t FX_RECT::right = 0 |
Definition at line 180 of file fx_coordinates.h.
Referenced by CFX_FloatRect::CFX_FloatRect(), CStretchEngine::CStretchEngine(), FX_RECT(), CPDF_DocPageData::AddFont(), CPDF_Font::CheckFontMetrics(), CFX_DIBitmap::CompositeRect(), Contains(), CStretchEngine::ContinueStretchHorz(), CPDF_RenderTiling::Draw(), CFX_RenderDevice::DrawPath(), CGdiDeviceDriver::DrawPath(), CFX_Font::GetBBox(), 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(), CPDF_Font::LoadFontDescriptor(), Normalize(), Offset(), operator==(), testing.tools.safetynet_image.ImageLocations::Right(), CFX_PSRenderer::SetClip_PathFill(), CFX_SkiaDeviceDriver::SetClip_PathFill(), CFX_RenderDevice::SetClip_Rect(), CGdiPrinterDriver::StartDIBits(), CGdiDisplayDriver::StretchDIBits(), CStretchEngine::StretchVert(), SwappedClipBox(), CFX_DIBBase::SwapXY(), TEST(), TEST(), CPDF_Type3Char::Transform(), and Width().
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().