#include <ut_misc.h>
Public Member Functions | |
UT_Rect () | |
UT_Rect (UT_sint32 iLeft, UT_sint32 iTop, UT_sint32 iWidth, UT_sint32 iHeight) | |
UT_Rect (const UT_Rect &) | |
bool | containsPoint (UT_sint32 x, UT_sint32 y) const |
void | set (UT_sint32 iLeft, UT_sint32 iTop, UT_sint32 iWidth, UT_sint32 iHeight) |
bool | intersectsRect (const UT_Rect *pRect) const |
void | unionRect (const UT_Rect *pRect) |
Public Attributes | |
UT_sint32 | left |
UT_sint32 | top |
UT_sint32 | width |
UT_sint32 | height |
UT_Rect::UT_Rect | ( | ) |
UT_Rect::UT_Rect | ( | const UT_Rect & | r | ) |
bool UT_Rect::intersectsRect | ( | const UT_Rect * | pRect | ) | const |
References left, R_BOTTOM, R_RIGHT, and top.
Referenced by AP_TopRuler::_drawBar(), AP_TopRuler::_drawCellProperties(), AP_TopRuler::_drawColumnProperties(), AP_TopRuler::_drawParagraphProperties(), AP_TopRuler::_drawTabProperties(), AP_TopRuler::_drawTabToggle(), fp_CellContainer::doesIntersectClip(), fp_Page::draw(), fp_Line::draw(), fp_FrameContainer::draw(), fl_BlockLayout::getLeftRightForWrapping(), fp_Page::intersectsDamagedRect(), fl_ContainerLayout::isOnScreen(), fp_Run::markDirtyOverlappingRuns(), fp_Line::markDirtyOverlappingRuns(), fp_VerticalContainer::markDirtyOverlappingRuns(), fp_FrameContainer::overlapsRect(), and fp_Page::redrawDamagedFrames().
Referenced by AP_TopRuler::_drawCellGap(), AP_TopRuler::_drawTabToggle(), AP_TopRuler::_getCellMarkerRect(), AP_LeftRuler::_getCellMarkerRects(), AP_TopRuler::_getColumnMarkerRect(), AP_TopRuler::_getMarginMarkerRects(), AP_LeftRuler::_getMarginMarkerRects(), AP_TopRuler::_getParagraphMarkerRects(), AP_TopRuler::_getTabStopRect(), AP_TopRuler::_getTabToggleRect(), AP_TopRuler::_getTabZoneRect(), fp_Run::draw(), AP_TopRuler::mouseMotion(), AP_LeftRuler::mouseMotion(), FV_VisualDragText::reposOffsets(), and fp_Run::Run_ClearScreen().
void UT_Rect::unionRect | ( | const UT_Rect * | pRect | ) |
This method makes a union of the current rectangle with the one in the parameter list. This rectangle is the smallest one that covers both rectangles.
References height, left, top, UT_MAX, UT_MIN, and width.
Referenced by fp_Page::expandDamageRect(), and FV_ViewDoubleBuffering::extendDrawArgsIfNeccessary().
Referenced by FV_Base::_checkDimensions(), fp_CellContainer::_clear(), FV_Base::_doMouseDrag(), FV_View::_draw(), fp_ImageRun::_draw(), fp_MathRun::_draw(), fp_EmbedRun::_draw(), AP_TopRuler::_drawCellMark(), AP_LeftRuler::_drawCellMark(), AP_LeftRuler::_drawCellProperties(), AP_Dialog_Columns::_drawColumnButton(), AP_TopRuler::_drawMarginProperties(), AP_LeftRuler::_drawMarginProperties(), fp_MathRun::_drawResizeBox(), FV_View::_drawResizeHandle(), AP_TopRuler::_drawTabToggle(), fp_TextRun::_fillRect(), FV_View::_getMouseContext(), fp_TextRun::_getPartRect(), AP_CocoaFrameImpl::_graphicsUpdateCB, FV_VisualDragText::_mouseDrag(), FV_VisualInlineImage::_mouseDrag(), FV_FrameEdit::_mouseDrag(), FV_View::_moveInsPtNextPrevLine(), s_LaTeX_Listener::_openCell(), FV_ViewDoubleBuffering::callUnifiedDraw(), FV_VisualInlineImage::cleanUP(), GR_Win32Image::createImageSegment(), GR_CairoRasterImage::createImageSegment(), FV_FrameEdit::deleteFrame(), XAP_UnixFrameImpl::_fe::do_ZoomUpdate(), XAP_UnixFrameImpl::_fe::draw(), XAP_CustomWidgetLU::draw(), FV_View::draw(), fp_CellContainer::draw(), fp_Page::draw(), fp_Line::draw(), fp_FrameContainer::draw(), fp_EndnoteContainer::draw(), fp_VerticalContainer::draw(), AP_Columns_preview_drawer::draw(), fp_Line::drawBorders(), fp_CellContainer::drawBroken(), FV_VisualDragText::drawCursor(), FV_VisualInlineImage::drawCursor(), FV_VisualDragText::drawImage(), FV_View::drawSelectionBox(), fp_Page::expandDamageRect(), fg_FillType::Fill(), GR_Win32Graphics::fillRect(), GR_Painter::fillRect(), GR_Graphics::fillRect(), GR_CairoGraphics::fillRect(), fl_BlockLayout::formatWrappedFromHere(), fp_Page::fp_Page(), GR_Win32Graphics::genImageFromRectangle(), GR_UnixCairoGraphics::genImageFromRectangle(), fp_Line::genOverlapRects(), FV_FrameEdit::getFrameStrings(), FV_VisualDragText::getImageFromSelection(), fl_BlockLayout::getLeftRightForWrapping(), fl_BlockLayout::getNextWrappedLine(), fp_Container::getPageRelativeOffsets(), GR_Win32Font::glyphBox(), GR_PangoFont::glyphBox(), GR_Win32Graphics::invertRect(), FV_FrameEdit::mouseLeftPress(), AP_TopRuler::mouseMotion(), FV_VisualInlineImage::mouseRelease(), FV_FrameEdit::mouseRelease(), AP_LeftRuler::mouseRelease(), AP_TopRuler::notify(), fp_FrameContainer::overlapsRect(), XAP_UnixCustomWidget::queueDraw(), XAP_CustomWidgetLU::queueDrawLU(), fp_Page::redrawDamagedFrames(), GR_EmbedManager::render(), LasemMathView::render(), GOComponentView::render(), GOChartView::render(), FV_VisualDragText::reposOffsets(), GR_Win32Graphics::restoreRectangle(), GR_Win32Graphics::saveRectangle(), GR_CairoGraphics::saveRectangle(), GR_UnixImage::scaleImageTo(), GR_Image::scaleImageTo(), GR_RSVGVectorImage::scaleImageTo(), AP_TopRuler::scrollRuler(), AP_LeftRuler::scrollRuler(), GR_Win32Graphics::setClipRect(), FV_VisualInlineImage::setDragType(), FV_FrameEdit::setDragType(), FV_FrameEdit::setMode(), AP_LeftRuler::setTableLineDrag(), unionRect(), fp_Page::updatePageForWrapping(), GR_CairoGraphics::xorLine(), and GR_Graphics::xorRect().
Referenced by fp_CellContainer::_clear(), FV_Base::_doMouseDrag(), FV_View::_draw(), fp_TextRun::_draw(), fp_ImageRun::_draw(), fp_MathRun::_draw(), fp_EmbedRun::_draw(), AP_TopRuler::_drawCellMark(), AP_LeftRuler::_drawCellMark(), AP_TopRuler::_drawCellProperties(), AP_Dialog_Columns::_drawColumnButton(), AP_TopRuler::_drawColumnGapMarker(), AP_TopRuler::_drawFirstLineIndentMarker(), AP_TopRuler::_drawLeftIndentMarker(), AP_TopRuler::_drawMarginProperties(), AP_LeftRuler::_drawMarginProperties(), fp_MathRun::_drawResizeBox(), FV_View::_drawResizeHandle(), AP_TopRuler::_drawRightIndentMarker(), AP_TopRuler::_drawTabProperties(), AP_TopRuler::_drawTabStop(), AP_TopRuler::_drawTabToggle(), fp_TextRun::_fillRect(), FV_View::_getMouseContext(), fp_TextRun::_getPartRect(), AP_CocoaFrameImpl::_graphicsUpdateCB, FV_VisualDragText::_mouseDrag(), FV_VisualInlineImage::_mouseDrag(), FV_FrameEdit::_mouseDrag(), FV_View::_moveInsPtNextPrevLine(), s_LaTeX_Listener::_openCell(), AP_TopRuler::_xorGuide(), FV_ViewDoubleBuffering::callUnifiedDraw(), FV_VisualInlineImage::cleanUP(), FV_VisualDragText::clearCursor(), FV_VisualInlineImage::clearCursor(), containsPoint(), GR_Win32Image::createImageSegment(), GR_CairoRasterImage::createImageSegment(), XAP_UnixFrameImpl::_fe::do_ZoomUpdate(), XAP_UnixFrameImpl::_fe::draw(), XAP_CustomWidgetLU::draw(), FV_View::draw(), fp_Run::draw(), fp_Page::draw(), fp_Line::draw(), fp_FrameContainer::draw(), AP_Columns_preview_drawer::draw(), fp_Line::drawBorders(), fp_CellContainer::drawBroken(), FV_VisualDragText::drawCursor(), FV_VisualInlineImage::drawCursor(), FV_FrameEdit::drawFrame(), FV_VisualDragText::drawImage(), FV_VisualInlineImage::drawImage(), FV_View::drawSelectionBox(), fp_Page::expandDamageRect(), fg_FillType::Fill(), GR_Win32Graphics::fillRect(), GR_Painter::fillRect(), GR_Graphics::fillRect(), GR_CairoGraphics::fillRect(), fl_BlockLayout::formatWrappedFromHere(), fp_Page::fp_Page(), GR_Win32Graphics::genImageFromRectangle(), GR_UnixCairoGraphics::genImageFromRectangle(), fp_Line::genOverlapRects(), fp_Line::getAbsLeftRight(), FV_VisualDragText::getImageFromSelection(), FV_VisualInlineImage::getImageFromSelection(), fl_BlockLayout::getLeftRightForWrapping(), fp_Container::getPageRelativeOffsets(), GR_Win32Font::glyphBox(), GR_PangoFont::glyphBox(), intersectsRect(), GR_Win32Graphics::invertRect(), AP_TopRuler::isMouseOverTab(), FV_FrameEdit::mouseLeftPress(), AP_TopRuler::mouseMotion(), AP_TopRuler::mousePress(), FV_VisualInlineImage::mouseRelease(), FV_FrameEdit::mouseRelease(), AP_TopRuler::notify(), fp_FrameContainer::overlapsRect(), XAP_UnixCustomWidget::queueDraw(), XAP_CustomWidgetLU::queueDrawLU(), fp_Page::redrawDamagedFrames(), GR_EmbedManager::render(), LasemMathView::render(), GOComponentView::render(), GOChartView::render(), FV_VisualDragText::reposOffsets(), GR_Win32Graphics::restoreRectangle(), GR_CairoGraphics::restoreRectangle(), GR_Win32Graphics::saveRectangle(), GR_CairoGraphics::saveRectangle(), AP_TopRuler::scrollRuler(), AP_LeftRuler::scrollRuler(), GR_Win32Graphics::setClipRect(), FV_VisualInlineImage::setDragType(), FV_FrameEdit::setDragType(), AP_TopRuler::setTableLineDrag(), AP_LeftRuler::setTableLineDrag(), unionRect(), fp_Page::updatePageForWrapping(), GR_CairoGraphics::xorLine(), and GR_Graphics::xorRect().
Referenced by fp_CellContainer::_clear(), FV_Base::_doMouseDrag(), FV_View::_draw(), fp_ImageRun::_draw(), fp_MathRun::_draw(), fp_EmbedRun::_draw(), AP_TopRuler::_drawCellMark(), AP_LeftRuler::_drawCellMark(), AP_Dialog_Columns::_drawColumnButton(), AP_TopRuler::_drawColumnGapMarker(), AP_TopRuler::_drawFirstLineIndentMarker(), AP_TopRuler::_drawLeftIndentMarker(), AP_TopRuler::_drawMarginProperties(), AP_LeftRuler::_drawMarginProperties(), fp_MathRun::_drawResizeBox(), FV_View::_drawResizeHandle(), AP_TopRuler::_drawRightIndentMarker(), AP_TopRuler::_drawTabStop(), AP_TopRuler::_drawTabToggle(), fp_TextRun::_fillRect(), FV_View::_getMouseContext(), fp_TextRun::_getPartRect(), AP_CocoaFrameImpl::_graphicsUpdateCB, FV_VisualDragText::_mouseDrag(), FV_VisualInlineImage::_mouseDrag(), FV_FrameEdit::_mouseDrag(), FV_View::_moveInsPtNextPrevLine(), s_LaTeX_Listener::_openCell(), FV_ViewDoubleBuffering::callUnifiedDraw(), FV_VisualInlineImage::cleanUP(), FV_VisualDragText::clearCursor(), FV_VisualInlineImage::clearCursor(), containsPoint(), GR_Win32Image::createImageSegment(), GR_CairoRasterImage::createImageSegment(), Defun(), XAP_UnixFrameImpl::_fe::do_ZoomUpdate(), XAP_UnixFrameImpl::_fe::draw(), XAP_CustomWidgetLU::draw(), FV_View::draw(), fp_CellContainer::draw(), fp_Page::draw(), fp_Line::draw(), fp_FrameContainer::draw(), fp_EndnoteContainer::draw(), fp_VerticalContainer::draw(), AP_Columns_preview_drawer::draw(), fp_Line::drawBorders(), fp_CellContainer::drawBroken(), FV_VisualDragText::drawCursor(), FV_VisualInlineImage::drawCursor(), FV_FrameEdit::drawFrame(), FV_VisualDragText::drawImage(), FV_VisualInlineImage::drawImage(), FV_View::drawSelectionBox(), fp_Page::expandDamageRect(), fg_FillType::Fill(), GR_Win32Graphics::fillRect(), GR_Painter::fillRect(), GR_Graphics::fillRect(), GR_CairoGraphics::fillRect(), fl_BlockLayout::formatWrappedFromHere(), fp_Page::fp_Page(), GR_Win32Graphics::genImageFromRectangle(), GR_UnixCairoGraphics::genImageFromRectangle(), fp_Line::genOverlapRects(), FV_VisualDragText::getImageFromSelection(), FV_VisualInlineImage::getImageFromSelection(), fp_FrameContainer::getLeftPad(), fl_BlockLayout::getLeftRightForWrapping(), fl_BlockLayout::getNextWrappedLine(), fp_Container::getPageRelativeOffsets(), fp_FrameContainer::getRightPad(), GR_Win32Font::glyphBox(), GR_PangoFont::glyphBox(), intersectsRect(), GR_Win32Graphics::invertRect(), FV_FrameEdit::mouseLeftPress(), AP_TopRuler::mouseMotion(), FV_VisualInlineImage::mouseRelease(), FV_FrameEdit::mouseRelease(), AP_LeftRuler::mouseRelease(), AP_TopRuler::notify(), fp_FrameContainer::overlapsRect(), XAP_UnixCustomWidget::queueDraw(), XAP_CustomWidgetLU::queueDrawLU(), fp_Page::redrawDamagedFrames(), GR_EmbedManager::render(), LasemMathView::render(), GOComponentView::render(), GOChartView::render(), FV_VisualDragText::reposOffsets(), GR_Win32Graphics::restoreRectangle(), GR_CairoGraphics::restoreRectangle(), GR_Win32Graphics::saveRectangle(), GR_CairoGraphics::saveRectangle(), AP_TopRuler::scrollRuler(), AP_LeftRuler::scrollRuler(), GR_Win32Graphics::setClipRect(), FV_VisualInlineImage::setDragType(), FV_FrameEdit::setDragType(), AP_LeftRuler::setTableLineDrag(), unionRect(), fp_Page::updatePageForWrapping(), GR_CairoGraphics::xorLine(), and GR_Graphics::xorRect().
Referenced by FV_Base::_checkDimensions(), fp_CellContainer::_clear(), fp_TextRun::_clearScreen(), FV_Base::_doMouseDrag(), FV_View::_draw(), fp_TextRun::_draw(), fp_ImageRun::_draw(), fp_MathRun::_draw(), fp_EmbedRun::_draw(), AP_TopRuler::_drawCellGap(), AP_TopRuler::_drawCellMark(), AP_LeftRuler::_drawCellMark(), AP_TopRuler::_drawCellProperties(), AP_Dialog_Columns::_drawColumnButton(), AP_TopRuler::_drawColumnGapMarker(), AP_TopRuler::_drawMarginProperties(), AP_LeftRuler::_drawMarginProperties(), fp_MathRun::_drawResizeBox(), FV_View::_drawResizeHandle(), AP_TopRuler::_drawTabProperties(), AP_TopRuler::_drawTabStop(), AP_TopRuler::_drawTabToggle(), fp_TextRun::_fillRect(), fp_TextRun::_getPartRect(), AP_CocoaFrameImpl::_graphicsUpdateCB, FV_VisualDragText::_mouseDrag(), FV_VisualInlineImage::_mouseDrag(), FV_FrameEdit::_mouseDrag(), s_LaTeX_Listener::_openCell(), FV_ViewDoubleBuffering::callUnifiedDraw(), FV_VisualInlineImage::cleanUP(), containsPoint(), GR_Win32Image::createImageSegment(), GR_CairoRasterImage::createImageSegment(), FV_FrameEdit::deleteFrame(), XAP_UnixFrameImpl::_fe::do_ZoomUpdate(), XAP_UnixFrameImpl::_fe::draw(), XAP_CustomWidgetLU::draw(), FV_View::draw(), fp_Run::draw(), fp_Page::draw(), fp_FrameContainer::draw(), AP_Columns_preview_drawer::draw(), fp_CellContainer::drawBroken(), FV_VisualDragText::drawCursor(), FV_VisualInlineImage::drawCursor(), FV_VisualDragText::drawImage(), FV_View::drawSelectionBox(), fp_Page::expandDamageRect(), fg_FillType::Fill(), GR_Win32Graphics::fillRect(), GR_Painter::fillRect(), GR_Graphics::fillRect(), GR_CairoGraphics::fillRect(), fp_Page::fp_Page(), GR_Win32Graphics::genImageFromRectangle(), GR_UnixCairoGraphics::genImageFromRectangle(), fp_Line::genOverlapRects(), FV_FrameEdit::getFrameStrings(), FV_VisualDragText::getImageFromSelection(), fl_BlockLayout::getLeftRightForWrapping(), fp_Container::getPageRelativeOffsets(), FV_VisualDragText::getPosFromXY(), GR_Win32Font::glyphBox(), GR_PangoFont::glyphBox(), GR_Win32Graphics::invertRect(), FV_FrameEdit::mouseLeftPress(), AP_TopRuler::mouseMotion(), AP_LeftRuler::mouseMotion(), AP_TopRuler::mousePress(), AP_LeftRuler::mousePress(), FV_VisualInlineImage::mouseRelease(), FV_FrameEdit::mouseRelease(), AP_TopRuler::mouseRelease(), AP_TopRuler::notify(), fp_FrameContainer::overlapsRect(), XAP_UnixCustomWidget::queueDraw(), XAP_CustomWidgetLU::queueDrawLU(), fp_Page::redrawDamagedFrames(), GR_EmbedManager::render(), LasemMathView::render(), GOComponentView::render(), GOChartView::render(), FV_VisualDragText::reposOffsets(), GR_Win32Graphics::restoreRectangle(), GR_Win32Graphics::saveRectangle(), GR_CairoGraphics::saveRectangle(), GR_UnixImage::scaleImageTo(), GR_Image::scaleImageTo(), GR_RSVGVectorImage::scaleImageTo(), AP_TopRuler::scrollRuler(), AP_LeftRuler::scrollRuler(), GR_Win32Graphics::setClipRect(), FV_VisualInlineImage::setDragType(), FV_FrameEdit::setDragType(), FV_FrameEdit::setMode(), AP_LeftRuler::setTableLineDrag(), unionRect(), fp_Page::updatePageForWrapping(), GR_CairoGraphics::xorLine(), and GR_Graphics::xorRect().