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 Types | |
using | PointType = CFX_PointF |
using | SizeType = CFX_SizeF |
Public Member Functions | |
constexpr | CFX_RectF ()=default |
constexpr | CFX_RectF (float dst_left, float dst_top, float dst_width, float dst_height) |
CFX_RectF (const CFX_RectF &other)=default | |
CFX_RectF & | operator= (const CFX_RectF &other)=default |
CFX_RectF (float dst_left, float dst_top, const SizeType &dst_size) | |
CFX_RectF (const PointType &p, float dst_width, float dst_height) | |
CFX_RectF (const PointType &p1, const SizeType &s2) | |
CFX_RectF (const FX_RECT &that) | |
CFX_RectF & | operator+= (const PointType &p) |
CFX_RectF & | operator-= (const PointType &p) |
float | right () const |
float | bottom () const |
void | Normalize () |
void | Offset (float dx, float dy) |
void | Inflate (float x, float y) |
void | Inflate (const PointType &p) |
void | Inflate (float off_left, float off_top, float off_right, float off_bottom) |
void | Inflate (const CFX_RectF &rt) |
void | Deflate (float x, float y) |
void | Deflate (const PointType &p) |
void | Deflate (float off_left, float off_top, float off_right, float off_bottom) |
void | Deflate (const CFX_RectF &rt) |
bool | IsEmpty () const |
bool | IsEmpty (float fEpsilon) const |
void | Empty () |
bool | Contains (const PointType &p) const |
bool | Contains (const CFX_RectF &rt) const |
float | Left () const |
float | Top () const |
float | Width () const |
float | Height () const |
SizeType | Size () const |
PointType | TopLeft () const |
PointType | TopRight () const |
PointType | BottomLeft () const |
PointType | BottomRight () const |
PointType | Center () const |
void | Union (float x, float y) |
void | Union (const PointType &p) |
void | Union (const CFX_RectF &rt) |
void | Intersect (const CFX_RectF &rt) |
bool | IntersectWith (const CFX_RectF &rt) const |
bool | IntersectWith (const CFX_RectF &rt, float fEpsilon) const |
CFX_FloatRect | ToFloatRect () const |
FX_RECT | GetOuterRect () const |
Public Attributes | |
float | left = 0.0f |
float | top = 0.0f |
float | width = 0.0f |
float | height = 0.0f |
Friends | |
bool | operator== (const CFX_RectF &rc1, const CFX_RectF &rc2) |
bool | operator!= (const CFX_RectF &rc1, const CFX_RectF &rc2) |
Definition at line 284 of file fx_coordinates.h.
using CFX_RectF::PointType = CFX_PointF |
Definition at line 286 of file fx_coordinates.h.
using CFX_RectF::SizeType = CFX_SizeF |
Definition at line 287 of file fx_coordinates.h.
|
constexprdefault |
Referenced by CXFA_FFField::CapPlacement(), CFDE_TextOut::DrawLogicText(), CFWL_Widget::GetAutosizedWidgetRect(), CXFA_FFComboBox::GetBBox(), CXFA_FFDateTimeEdit::GetBBox(), CXFA_FFField::GetBBox(), CXFA_FFWidget::GetBBox(), CXFA_FFPageView::GetPageViewRect(), CXFA_FWLTheme::GetUIMargin(), CXFA_Node::GetUIMargin(), CFWL_ListBox::ScrollToVisible(), and TEST_F().
|
inlineconstexpr |
Definition at line 290 of file fx_coordinates.h.
References height, left, top, and width.
Referenced by CFWL_Widget::CalcTextSize(), CFGAS_GEGraphics::GetClipRect(), CFWL_Widget::GetEdgeRect(), CFWL_Widget::GetRelativeRect(), CFWL_ComboBox::HitTest(), CFWL_DateTimePicker::HitTest(), CFWL_Caret::OnTimerFired(), CFWL_ComboBox::ShowDropDownList(), TEST(), TEST(), TEST_F(), CFX_Matrix::TransformRect(), and CFWL_DateTimePicker::Update().
|
default |
Referenced by CFWL_PushButtonTP::DrawBackground(), CFWL_ListBox::DrawWidget(), CFGAS_RTFBreak::GetDisplayPos(), CXFA_FFImageEdit::SetFWLRect(), CXFA_Rectangle::StrokeEmbossed(), CXFA_Rectangle::StrokeEtched(), CXFA_Rectangle::StrokeLowered(), and CXFA_Rectangle::StrokeRaised().
|
inline |
Definition at line 298 of file fx_coordinates.h.
References height, left, top, and width.
Referenced by CXFA_FFPageView::GetDisplayMatrix(), and CXFA_FFPageView::GetPageViewRect().
|
inline |
|
inlineexplicit |
Definition at line 307 of file fx_coordinates.h.
References FX_RECT::Height(), height, left, FX_RECT::left, top, FX_RECT::top, FX_RECT::Width(), and width.
Referenced by CPDFXFA_Page::DrawFocusAnnot().
|
inline |
Definition at line 324 of file fx_coordinates.h.
Referenced by CXFA_FFField::CapPlacement(), Contains(), CXFA_Linear::Draw(), CFWL_PushButtonTP::DrawBackground(), GetOuterRect(), CPDFXFA_DocEnvironment::GetPopupPos(), CXFA_FFWidget::GetRectWithoutRotate(), Intersect(), CXFA_FFCheckButton::PerformLayout(), CXFA_FFLine::RenderWidget(), CFWL_ListBox::ScrollToVisible(), CXFA_Rectangle::StrokeRect(), ToFloatRect(), Union(), Union(), and XFA_DrawImage().
|
inline |
Definition at line 397 of file fx_coordinates.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 382 of file fx_coordinates.h.
References height, left, top, and width.
Referenced by CFWL_ComboBox::HitTest(), CFWL_DateTimePicker::HitTest(), CFWL_Edit::HitTest(), CFWL_ListBox::HitTest(), CFWL_Widget::HitTest(), CXFA_FFField::HitTest(), CXFA_FFSignature::HitTest(), CXFA_FFDateTimeEdit::PtInActiveRect(), CXFA_FFField::PtInActiveRect(), and CXFA_FFWidget::PtInActiveRect().
Definition at line 364 of file fx_coordinates.h.
|
inline |
Definition at line 365 of file fx_coordinates.h.
References height, left, top, and width.
Referenced by CXFA_FFField::CapPlacement(), Deflate(), CFWL_PushButtonTP::DrawBackground(), CXFA_FFText::RenderWidget(), CXFA_FFImageEdit::SetFWLRect(), and XFA_RectWithoutMargin().
|
inline |
Definition at line 358 of file fx_coordinates.h.
References height, left, top, and width.
Referenced by CFWL_Widget::GetEdgeRect(), CXFA_FFPushButton::OnDrawWidget(), CXFA_Rectangle::StrokeEmbossed(), CXFA_Rectangle::StrokeEtched(), CXFA_Rectangle::StrokeLowered(), and CXFA_Rectangle::StrokeRaised().
|
inline |
Definition at line 381 of file fx_coordinates.h.
FX_RECT CFX_RectF::GetOuterRect | ( | ) | const |
Definition at line 368 of file fx_coordinates.cpp.
References FX_RECT::FX_RECT(), bottom(), left, right(), and top.
Referenced by CFDE_TextOut::DrawLogicText(), and CXFA_TextLayout::DrawString().
|
inline |
Definition at line 393 of file fx_coordinates.h.
References height.
Referenced by CFDE_TextOut::CalcLogicSize(), CXFA_FFField::CapPlacement(), CXFA_Radial::Draw(), CFDE_TextOut::DrawLogicText(), operator<<(), CFWL_DateTimePicker::ShowMonthCalendar(), and TEST().
Definition at line 345 of file fx_coordinates.h.
|
inline |
Definition at line 346 of file fx_coordinates.h.
References height, left, top, and width.
Referenced by CFWL_PushButtonTP::DrawBackground(), and Inflate().
|
inline |
Definition at line 339 of file fx_coordinates.h.
References height, left, top, and width.
Referenced by CFWL_Widget::InflateWidgetRect(), and CXFA_FFWidget::InvalidateRect().
Definition at line 355 of file fx_coordinates.cpp.
References bottom(), height, left, right(), top, and width.
Referenced by IntersectWith(), IntersectWith(), and CXFA_FFField::RenderCaption().
|
inline |
Definition at line 408 of file fx_coordinates.h.
References Intersect(), and IsEmpty().
Referenced by CPDFXFA_Page::DrawFocusAnnot().
|
inline |
Definition at line 413 of file fx_coordinates.h.
References Intersect(), and IsEmpty().
|
inline |
Definition at line 377 of file fx_coordinates.h.
Referenced by CFWL_ComboList::ChangeSelected(), CFWL_DateTimePicker::DrawWidget(), CFWL_Edit::DrawWidget(), IntersectWith(), CFWL_Edit::OnCaretChanged(), CFWL_WidgetMgr::OnDrawWidget(), CFWL_Edit::Update(), and XFA_DrawImage().
|
inline |
Definition at line 378 of file fx_coordinates.h.
Referenced by CFWL_ComboBox::DrawWidget(), and IntersectWith().
|
inline |
Definition at line 390 of file fx_coordinates.h.
References left.
Referenced by TEST().
|
inline |
Definition at line 325 of file fx_coordinates.h.
References height, left, top, and width.
Referenced by CXFA_FFField::CapPlacement(), CXFA_Rectangle::GetFillPath(), CXFA_Rectangle::GetPath(), CXFA_FFCheckButton::PerformLayout(), and CXFA_FFWidget::RenderWidget().
|
inline |
Definition at line 335 of file fx_coordinates.h.
Referenced by CFWL_ComboBox::GetBBox(), CFWL_DateTimePicker::GetBBox(), CXFA_Rectangle::GetFillPath(), CFWL_ListBox::GetItemAtPoint(), CXFA_Rectangle::GetPath(), CFWL_DateTimeEdit::OnProcessMessage(), CFWL_ListBox::ScrollToVisible(), and CFWL_Edit::ShowCaret().
Definition at line 313 of file fx_coordinates.h.
Definition at line 318 of file fx_coordinates.h.
Referenced by CXFA_FFField::CapPlacement(), CFWL_ComboList::ChangeSelected(), CFWL_Widget::DrawBorder(), CFWL_CheckBox::DrawWidget(), CFWL_ComboBox::DrawWidget(), CFWL_Edit::GetAutosizedWidgetRect(), CXFA_FFCheckButton::PerformLayout(), CXFA_FFPushButton::PerformLayout(), CXFA_FFWidget::RecacheWidgetRect(), CXFA_FFField::RenderCaption(), CFWL_ListBox::Item::SetRect(), CFWL_ScrollBar::SetTrackPos(), CFWL_Widget::SetWidgetRect(), TEST(), TEST(), and CFWL_PushButton::Update().
|
inline |
Definition at line 323 of file fx_coordinates.h.
Referenced by CFDE_TextOut::CalcLogicSize(), CXFA_FFField::CapPlacement(), Contains(), CXFA_Linear::Draw(), CFWL_PushButtonTP::DrawBackground(), CFGAS_TxtBreak::GetCharRects(), CFGAS_RTFBreak::GetDisplayPos(), CFGAS_TxtBreak::GetDisplayPos(), GetOuterRect(), CPDFXFA_DocEnvironment::GetPopupPos(), CXFA_FFWidget::GetRectWithoutRotate(), Intersect(), CXFA_FFCheckButton::PerformLayout(), CXFA_FFLine::RenderWidget(), testing.tools.safetynet_image.ImageLocations::Right(), CXFA_Rectangle::StrokeRect(), ToFloatRect(), Union(), Union(), and XFA_DrawImage().
|
inline |
Definition at line 394 of file fx_coordinates.h.
|
inline |
Definition at line 426 of file fx_coordinates.h.
References CFX_FloatRect::CFX_FloatRect(), bottom(), left, right(), and top.
Referenced by CPDFXFA_DocEnvironment::DisplayCaret(), CPDFXFA_Widget::GetRect(), CPDFXFA_Widget::GetViewBBox(), CPDFXFA_Page::HasFormFieldAtPoint(), CPDFXFA_DocEnvironment::InvalidateRect(), and CFX_Matrix::TransformRect().
|
inline |
Definition at line 391 of file fx_coordinates.h.
References top.
Referenced by TEST().
|
inline |
Definition at line 395 of file fx_coordinates.h.
|
inline |
Definition at line 396 of file fx_coordinates.h.
Definition at line 342 of file fx_coordinates.cpp.
References bottom(), height, left, right(), top, and width.
Referenced by CFWL_ComboList::ChangeSelected(), CFWL_ComboBox::GetBBox(), CFWL_DateTimePicker::GetBBox(), and CFWL_Edit::OnCaretChanged().
Definition at line 405 of file fx_coordinates.h.
void CFX_RectF::Union | ( | float | x, |
float | y ) |
|
inline |
Definition at line 392 of file fx_coordinates.h.
References width.
Referenced by CFDE_TextOut::CalcLogicSize(), CXFA_Radial::Draw(), CFDE_TextOut::DrawLogicText(), operator<<(), and TEST().
Definition at line 422 of file fx_coordinates.h.
Referenced by CXFA_FFNotify::OnLayoutItemAdded().
Definition at line 418 of file fx_coordinates.h.
float CFX_RectF::height = 0.0f |
Definition at line 439 of file fx_coordinates.h.
Referenced by CFX_RectF(), CFX_RectF(), CFX_RectF(), CFX_RectF(), CFX_RectF(), bottom(), BottomLeft(), BottomRight(), CFDE_TextOut::CalcLogicSize(), CFWL_Widget::CalcTextSize(), CXFA_FFField::CapLeftRightPlacement(), CXFA_FFField::CapPlacement(), CXFA_FFField::CapTopBottomPlacement(), Center(), Contains(), Deflate(), Deflate(), Deflate(), CXFA_Rectangle::Draw(), CFWL_WidgetTP::DrawArrow(), CFWL_ComboBoxTP::DrawBackground(), CFWL_EditTP::DrawBackground(), CFWL_PushButtonTP::DrawBackground(), CFWL_WidgetTP::DrawBorder(), CFWL_WidgetTP::DrawBtn(), CFWL_WidgetTP::DrawFocus(), CPDFXFA_Page::DrawFocusAnnot(), CXFA_FFField::DrawHighlight(), CFDE_TextOut::DrawLogicText(), CFWL_ListBox::DrawWidget(), Empty(), CFWL_WidgetTP::FillSolidRect(), CFGAS_TxtBreak::GetDisplayPos(), CFWL_Widget::GetEdgeRect(), CXFA_Rectangle::GetFillPath(), CPDFXFA_Page::GetPageHeight(), CPDFXFA_DocEnvironment::GetPopupPos(), CXFA_FFWidget::GetRectWithoutRotate(), CFWL_Widget::GetRelativeRect(), CXFA_FWLTheme::GetUIMargin(), Height(), CFWL_ComboBox::HitTest(), CFWL_DateTimePicker::HitTest(), Inflate(), Inflate(), Inflate(), Intersect(), IsEmpty(), IsEmpty(), CXFA_FFWidget::IsLayoutRectEmpty(), CXFA_TextLayout::ItemBlocks(), CXFA_FFField::LayoutCaption(), Normalize(), CXFA_FFPushButton::OnDrawWidget(), CFWL_Caret::OnTimerFired(), CXFA_FFCheckButton::PerformLayout(), CXFA_FFText::PerformLayout(), CXFA_FFField::SetEditScrollOffset(), CXFA_FFField::SetFWLRect(), CXFA_FFImageEdit::SetFWLRect(), CFWL_DateTimePicker::ShowMonthCalendar(), Size(), CXFA_Rectangle::StrokeLowered(), CXFA_Rectangle::StrokeRaised(), Union(), Union(), CFWL_DateTimePicker::Update(), and XFA_DrawImage().
float CFX_RectF::left = 0.0f |
Definition at line 436 of file fx_coordinates.h.
Referenced by CFX_RectF(), CFX_RectF(), CFX_RectF(), CFX_RectF(), CFX_RectF(), BottomLeft(), BottomRight(), CFDE_TextOut::CalcLogicSize(), CXFA_FFField::CapLeftRightPlacement(), CXFA_FFField::CapPlacement(), CXFA_FFField::CapTopBottomPlacement(), Center(), Contains(), Contains(), Deflate(), Deflate(), Deflate(), CXFA_Linear::Draw(), CXFA_Rectangle::Draw(), CFWL_WidgetTP::DrawArrow(), CFWL_ComboBoxTP::DrawBackground(), CFWL_EditTP::DrawBackground(), CFWL_PushButtonTP::DrawBackground(), CFWL_WidgetTP::DrawBorder(), CFWL_WidgetTP::DrawBtn(), CFWL_WidgetTP::DrawFocus(), CXFA_FFField::DrawHighlight(), CFWL_ComboBox::DrawWidget(), CFWL_DateTimePicker::DrawWidget(), CFWL_WidgetTP::FillSolidRect(), CFWL_ComboBox::GetBBox(), CFWL_DateTimePicker::GetBBox(), CFGAS_TxtBreak::GetCharRects(), CFGAS_RTFBreak::GetDisplayPos(), CFGAS_TxtBreak::GetDisplayPos(), CXFA_Rectangle::GetFillPath(), CFWL_Widget::GetMatrix(), GetOuterRect(), CPDFXFA_DocEnvironment::GetPopupPos(), CXFA_FFWidget::GetRectWithoutRotate(), CXFA_FFWidget::GetRotateMatrix(), CXFA_FWLTheme::GetUIMargin(), Inflate(), Inflate(), Inflate(), Intersect(), Left(), testing.tools.safetynet_image.ImageLocations::Left(), Normalize(), Offset(), CXFA_FFPushButton::OnDrawWidget(), CFWL_DateTimeEdit::OnProcessMessage(), operator+=(), operator-=(), operator<<(), CXFA_FFCheckButton::PerformLayout(), CXFA_FFField::RenderCaption(), CXFA_FFBarcode::RenderWidget(), CXFA_FFCheckButton::RenderWidget(), CXFA_FFField::RenderWidget(), CXFA_FFPushButton::RenderWidget(), CXFA_FFText::RenderWidget(), CFWL_WidgetMgr::RepaintWidget(), right(), CXFA_FFImageEdit::SetFWLRect(), CFWL_Edit::ShowCaret(), CFWL_ComboBox::ShowDropDownList(), CFWL_DateTimePicker::ShowMonthCalendar(), CXFA_Rectangle::StrokeLowered(), CXFA_Rectangle::StrokeRaised(), CXFA_Rectangle::StrokeRect(), ToFloatRect(), TopLeft(), TopRight(), Union(), Union(), CFWL_DateTimePicker::Update(), and XFA_DrawImage().
float CFX_RectF::top = 0.0f |
Definition at line 437 of file fx_coordinates.h.
Referenced by CFX_RectF(), CFX_RectF(), CFX_RectF(), CFX_RectF(), CFX_RectF(), bottom(), BottomLeft(), BottomRight(), CFDE_TextOut::CalcLogicSize(), CXFA_FFField::CapLeftRightPlacement(), CXFA_FFField::CapPlacement(), CXFA_FFField::CapTopBottomPlacement(), Center(), Contains(), Contains(), Deflate(), Deflate(), Deflate(), CXFA_Linear::Draw(), CXFA_Rectangle::Draw(), CFWL_WidgetTP::DrawArrow(), CFWL_ComboBoxTP::DrawBackground(), CFWL_EditTP::DrawBackground(), CFWL_PushButtonTP::DrawBackground(), CFWL_WidgetTP::DrawBorder(), CFWL_WidgetTP::DrawBtn(), CFWL_WidgetTP::DrawFocus(), CXFA_FFField::DrawHighlight(), CFWL_ComboBox::DrawWidget(), CFWL_DateTimePicker::DrawWidget(), CFWL_WidgetTP::FillSolidRect(), CXFA_Node::FindSplitPos(), CFWL_ComboBox::GetBBox(), CFWL_DateTimePicker::GetBBox(), CFGAS_RTFBreak::GetDisplayPos(), CFGAS_TxtBreak::GetDisplayPos(), CXFA_Rectangle::GetFillPath(), CFWL_Widget::GetMatrix(), GetOuterRect(), CPDFXFA_DocEnvironment::GetPopupPos(), CXFA_FFWidget::GetRectWithoutRotate(), CXFA_FFWidget::GetRotateMatrix(), CXFA_FWLTheme::GetUIMargin(), Inflate(), Inflate(), Inflate(), Intersect(), Normalize(), Offset(), CXFA_FFPushButton::OnDrawWidget(), CFWL_DateTimeEdit::OnProcessMessage(), operator+=(), operator-=(), operator<<(), CXFA_FFCheckButton::PerformLayout(), CXFA_FFField::RenderCaption(), CXFA_FFBarcode::RenderWidget(), CXFA_FFCheckButton::RenderWidget(), CXFA_FFField::RenderWidget(), CXFA_FFPushButton::RenderWidget(), CXFA_FFText::RenderWidget(), CFWL_WidgetMgr::RepaintWidget(), CFWL_ListBox::ScrollToVisible(), CXFA_FFImageEdit::SetFWLRect(), CFWL_Edit::ShowCaret(), CFWL_DateTimePicker::ShowMonthCalendar(), CXFA_Rectangle::StrokeLowered(), CXFA_Rectangle::StrokeRaised(), CXFA_Rectangle::StrokeRect(), ToFloatRect(), Top(), TopLeft(), TopRight(), Union(), Union(), CFWL_DateTimePicker::Update(), and XFA_DrawImage().
float CFX_RectF::width = 0.0f |
Definition at line 438 of file fx_coordinates.h.
Referenced by CFX_RectF(), CFX_RectF(), CFX_RectF(), CFX_RectF(), CFX_RectF(), BottomRight(), CFDE_TextOut::CalcLogicSize(), CFWL_Widget::CalcTextSize(), CXFA_FFField::CapLeftRightPlacement(), CXFA_FFField::CapPlacement(), CXFA_FFField::CapTopBottomPlacement(), Center(), Contains(), Deflate(), Deflate(), Deflate(), CXFA_Rectangle::Draw(), CFWL_WidgetTP::DrawArrow(), CFWL_ComboBoxTP::DrawBackground(), CFWL_EditTP::DrawBackground(), CFWL_PushButtonTP::DrawBackground(), CFWL_WidgetTP::DrawBorder(), CFWL_WidgetTP::DrawBtn(), CFWL_WidgetTP::DrawFocus(), CPDFXFA_Page::DrawFocusAnnot(), CXFA_FFField::DrawHighlight(), CFDE_TextOut::DrawLogicText(), CFWL_ListBox::DrawWidget(), Empty(), CFWL_WidgetTP::FillSolidRect(), CXFA_Node::FindSplitPos(), CFWL_DateTimePicker::GetBBox(), CFGAS_TxtBreak::GetCharRects(), CFWL_Widget::GetEdgeRect(), CXFA_Rectangle::GetFillPath(), CPDFXFA_Page::GetPageWidth(), CPDFXFA_DocEnvironment::GetPopupPos(), CXFA_FFWidget::GetRectWithoutRotate(), CFWL_Widget::GetRelativeRect(), CXFA_FWLTheme::GetUIMargin(), CFWL_Edit::GetWidgetRect(), CFWL_ComboBox::HitTest(), CFWL_DateTimePicker::HitTest(), Inflate(), Inflate(), Inflate(), Intersect(), IsEmpty(), IsEmpty(), CXFA_FFWidget::IsLayoutRectEmpty(), Normalize(), CXFA_FFPushButton::OnDrawWidget(), CFWL_Caret::OnTimerFired(), CXFA_FFCheckButton::PerformLayout(), right(), CXFA_FFField::SetFWLRect(), CXFA_FFImageEdit::SetFWLRect(), CFWL_ComboBox::ShowDropDownList(), CFWL_DateTimePicker::ShowMonthCalendar(), Size(), CXFA_Rectangle::StrokeLowered(), CXFA_Rectangle::StrokeRaised(), TopRight(), Union(), Union(), CFWL_DateTimePicker::Update(), Width(), and XFA_DrawImage().