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 148 of file fx_coordinates.h.
|
constexprdefault |
Referenced by CPDF_DocPageData::AddFont(), fxcodec::ProgressiveDecoder::LoadImageInfo(), and fxcodec::ProgressiveDecoder::SetClipBox().
|
inlineconstexpr |
Definition at line 150 of file fx_coordinates.h.
References bottom, left, right, and top.
Referenced by CFX_ClipRgn::CFX_ClipRgn(), CStretchEngine::CStretchEngine(), CFX_DIBBase::ClipToInternal(), CFX_DIBitmap::CompositeRect(), CPDFSDK_RenderPageWithContext(), FPDF_DeviceToPage(), FPDF_PageToDevice(), FPDF_RenderPageBitmapWithMatrix(), FPDFBitmap_FillRect(), CGdiDeviceDriver::GDI_SetDIBits(), CPDF_RenderContext::GetBackgroundToDevice(), CPDF_CIDFont::GetCharBBox(), CFX_RectF::GetOuterRect(), CFX_DIBBase::GetOverlapRect(), Intersect(), CGdiDisplayDriver::SetDIBits(), CGdiPrinterDriver::SetDIBits(), CFX_RenderDevice::SetDIBitsWithBlend(), CXFA_ImageRenderer::Start(), fxcodec::ProgressiveDecoder::StartDecode(), CFX_RenderDevice::StretchBitMaskWithFlags(), CGdiDisplayDriver::StretchDIBits(), pdfium::CFX_AggDeviceDriver::StretchDIBits(), CFX_RenderDevice::StretchDIBitsWithFlagsAndBlend(), CFX_DIBBase::StretchTo(), CFX_DIBBase::SwapXY(), TEST(), 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(), and CStretchEngine::CStretchEngine().
|
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().
|
inline |
Definition at line 156 of file fx_coordinates.h.
Referenced by CFX_ImageRenderer::CFX_ImageRenderer(), CFX_ImageTransformer::CFX_ImageTransformer(), CFX_RectF::CFX_RectF(), CFX_DIBBase::ClipToInternal(), CFX_BitmapComposer::Compose(), CPDF_RenderTiling::Draw(), CFX_RenderDevice::DrawNormalText(), CGdiDeviceDriver::DrawPath(), CFX_RenderDevice::DrawPathWithBlend(), FPDFTextObj_GetRenderedBitmap(), CGdiDeviceDriver::GDI_SetDIBits(), CPWL_Edit::GetCharArrayAutoFontSize(), CFGAS_GEGraphics::GetClipRect(), pdfium::CFX_AggDeviceDriver::GetDIBits(), CFX_DIBBase::GetOverlapRect(), CPDF_ScaledRenderBuffer::Initialize(), CFX_ClipRgn::IntersectMaskF(), CGdiDisplayDriver::SetDIBits(), CGdiPrinterDriver::SetDIBits(), CFX_RenderDevice::SetDIBitsWithBlend(), CXFA_ImageRenderer::Start(), fxcodec::ProgressiveDecoder::StartDecode(), CGdiPrinterDriver::StartDIBits(), CGdiDisplayDriver::StretchDIBits(), and CFX_DIBBase::SwapXY().
Definition at line 96 of file fx_coordinates.cpp.
References bottom, left, Normalize(), right, and top.
Referenced by CFX_ImageRenderer::CFX_ImageRenderer(), CFX_ImageTransformer::CFX_ImageTransformer(), CStretchEngine::CStretchEngine(), CFX_DIBBase::ClipToInternal(), CFX_RenderDevice::DrawNormalText(), pdfium::CFX_AggDeviceDriver::FillRectWithBlend(), CFX_DIBBase::GetOverlapRect(), Intersect(), CFX_ClipRgn::IntersectMaskF(), CFX_ClipRgn::IntersectRect(), CFX_PSRenderer::SetClip_PathStroke(), CFX_RenderDevice::SetDIBitsWithBlend(), CXFA_ImageRenderer::Start(), CFX_RenderDevice::StretchBitMaskWithFlags(), CGdiDisplayDriver::StretchDIBits(), pdfium::CFX_AggDeviceDriver::StretchDIBits(), CFX_RenderDevice::StretchDIBitsWithFlagsAndBlend(), and CFX_DIBBase::StretchTo().
|
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().
|
inline |
Definition at line 157 of file fx_coordinates.h.
References bottom, left, right, and top.
Referenced by CFX_ImageRenderer::CFX_ImageRenderer(), CFX_ImageTransformer::CFX_ImageTransformer(), CFX_DIBBase::ClipToInternal(), CFX_DIBitmap::CompositeRect(), CFX_RenderDevice::DrawNormalText(), CPDF_RenderStatus::DrawShadingPattern(), CPDF_RenderStatus::DrawTilingPattern(), pdfium::CFX_AggDeviceDriver::FillRectWithBlend(), FPDFTextObj_GetRenderedBitmap(), CFX_DIBBase::GetOverlapRect(), CFX_ClipRgn::IntersectMaskF(), fxcodec::ProgressiveDecoder::SetClipBox(), CFX_RenderDevice::SetDIBitsWithBlend(), fxcodec::ProgressiveDecoder::StartDecode(), CFX_DIBBase::StretchTo(), and CFX_DIBBase::SwapXY().
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().
|
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().
Referenced by CFX_ImageRenderer::CFX_ImageRenderer(), CFX_ImageTransformer::CFX_ImageTransformer(), CPDF_Font::CheckFontMetrics(), CFX_DIBitmap::CompositeBitmap(), CFX_DIBitmap::CompositeMask(), CPDF_CIDFont::GetCharBBox(), CPDF_Type3Font::GetCharBBox(), CPDF_ScaledRenderBuffer::Initialize(), CFX_ClipRgn::IntersectMaskF(), CPDF_Type3Font::Load(), fxcodec::ProgressiveDecoder::LoadImageInfo(), fxcodec::ProgressiveDecoder::SetClipBox(), 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 109 of file fx_coordinates.cpp.
References bottom, left, Normalize(), right, and top.
Referenced by CFX_ImageRenderer::CFX_ImageRenderer(), and CFX_ImageTransformer::CFX_ImageTransformer().
bool FX_RECT::Valid | ( | ) | const |
Definition at line 81 of file fx_coordinates.cpp.
Referenced by CFX_ImageTransformer::CFX_ImageTransformer(), and CFX_RenderDevice::DrawPathWithBlend().
|
inline |
Definition at line 155 of file fx_coordinates.h.
Referenced by CFX_ImageRenderer::CFX_ImageRenderer(), CFX_ImageTransformer::CFX_ImageTransformer(), CFX_RectF::CFX_RectF(), CStretchEngine::CStretchEngine(), CFX_DIBBase::ClipToInternal(), CFX_BitmapComposer::Compose(), CFX_DIBitmap::CompositeRect(), CPDF_RenderTiling::Draw(), CFX_RenderDevice::DrawNormalText(), CGdiDeviceDriver::DrawPath(), CFX_RenderDevice::DrawPathWithBlend(), FPDFTextObj_GetRenderedBitmap(), CGdiDeviceDriver::GDI_SetDIBits(), CPWL_Edit::GetCharArrayAutoFontSize(), CFGAS_GEGraphics::GetClipRect(), pdfium::CFX_AggDeviceDriver::GetDIBits(), CFX_DIBBase::GetOverlapRect(), CPDF_ScaledRenderBuffer::Initialize(), CFX_ClipRgn::IntersectMaskF(), CGdiDisplayDriver::SetDIBits(), CGdiPrinterDriver::SetDIBits(), CFX_RenderDevice::SetDIBitsWithBlend(), CXFA_ImageRenderer::Start(), fxcodec::ProgressiveDecoder::StartDecode(), CGdiPrinterDriver::StartDIBits(), CGdiDisplayDriver::StretchDIBits(), and CFX_DIBBase::SwapXY().
int32_t FX_RECT::bottom = 0 |
Definition at line 185 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(), CGdiDeviceDriver::DrawPath(), CFX_RenderDevice::DrawPathWithBlend(), CFX_Font::GetBBox(), CPDF_CIDFont::GetCharBBox(), CFX_SkiaDeviceDriver::GetClipBox(), CTextOnlyPrinterDriver::GetClipBox(), pdfium::CFX_AggDeviceDriver::GetClipBox(), 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(), CXFA_ImageRenderer::Start(), fxcodec::ProgressiveDecoder::StartDecode(), 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 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().
int32_t FX_RECT::right = 0 |
Definition at line 184 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(), CGdiDeviceDriver::DrawPath(), CFX_RenderDevice::DrawPathWithBlend(), CFX_Font::GetBBox(), CPDF_CIDFont::GetCharBBox(), CFX_SkiaDeviceDriver::GetClipBox(), CTextOnlyPrinterDriver::GetClipBox(), pdfium::CFX_AggDeviceDriver::GetClipBox(), 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(), CPDF_Font::LoadFontDescriptor(), Normalize(), Offset(), operator==(), testing.tools.safetynet_image.ImageLocations::Right(), CFX_PSRenderer::SetClip_PathFill(), CFX_SkiaDeviceDriver::SetClip_PathFill(), CFX_RenderDevice::SetClip_Rect(), fxcodec::ProgressiveDecoder::SetClipBox(), CXFA_ImageRenderer::Start(), fxcodec::ProgressiveDecoder::StartDecode(), 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 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().