UT_Rect Class Reference

#include <ut_misc.h>

List of all members.

Public Member Functions

 UT_Rect ()
 UT_Rect (UT_sint32 iLeft, UT_sint32 iTop, UT_sint32 iWidth, UT_sint32 iHeight)
 UT_Rect (const UT_Rect &)
 UT_Rect (const UT_Rect *r)
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


Constructor & Destructor Documentation

UT_Rect::UT_Rect (  ) 

References height, left, top, and width.

UT_Rect::UT_Rect ( UT_sint32  iLeft,
UT_sint32  iTop,
UT_sint32  iWidth,
UT_sint32  iHeight 
)

References height, left, top, and width.

UT_Rect::UT_Rect ( const UT_Rect r  ) 

References height, left, top, and width.

UT_Rect::UT_Rect ( const UT_Rect r  ) 

References height, left, top, and width.


Member Function Documentation

bool UT_Rect::containsPoint ( UT_sint32  x,
UT_sint32  y 
) const

void UT_Rect::set ( UT_sint32  iLeft,
UT_sint32  iTop,
UT_sint32  iWidth,
UT_sint32  iHeight 
)

bool UT_Rect::intersectsRect ( const UT_Rect pRect  )  const

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 GR_Graphics::unionPendingRect().


Member Data Documentation

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_CocoaTopRuler::_drawCellMark(), AP_CocoaLeftRuler::_drawCellMark(), AP_TopRuler::_drawCellProperties(), AP_Dialog_Columns::_drawColumnButton(), AP_TopRuler::_drawColumnGapMarker(), AP_CocoaTopRuler::_drawColumnGapMarker(), AP_TopRuler::_drawFirstLineIndentMarker(), AP_CocoaTopRuler::_drawFirstLineIndentMarker(), AP_TopRuler::_drawLeftIndentMarker(), AP_CocoaTopRuler::_drawLeftIndentMarker(), AP_TopRuler::_drawMarginProperties(), AP_LeftRuler::_drawMarginProperties(), AP_CocoaTopRuler::_drawMarginProperties(), AP_CocoaLeftRuler::_drawMarginProperties(), fp_MathRun::_drawResizeBox(), FV_View::_drawResizeHandle(), AP_TopRuler::_drawRightIndentMarker(), AP_CocoaTopRuler::_drawRightIndentMarker(), AP_TopRuler::_drawTabProperties(), AP_TopRuler::_drawTabStop(), AP_TopRuler::_drawTabToggle(), fp_TextRun::_fillRect(), fp_TextRun::_getPartRect(), AP_CocoaTopRuler::_graphicsUpdateCB(), AP_CocoaLeftRuler::_graphicsUpdateCB(), AP_CocoaFrameImpl::_graphicsUpdateCB, FV_VisualDragText::_mouseDrag(), FV_VisualInlineImage::_mouseDrag(), FV_FrameEdit::_mouseDrag(), s_LaTeX_Listener::_openCell(), GR_CocoaGraphics::_setClipRectImpl(), AP_TopRuler::_xorGuide(), XAP_UnixFrameImpl::_fe::abi_expose_repaint(), XAP_CocoaFrameImpl::_fe::abi_expose_repaint(), AP_UnixLeftRuler::_fe::abi_expose_repaint(), FV_VisualInlineImage::cleanUP(), FV_VisualDragText::clearCursor(), FV_VisualInlineImage::clearCursor(), containsPoint(), GR_Win32Image::createImageSegment(), GR_UnixImage::createImageSegment(), GR_CocoaImage::createImageSegment(), XAP_UnixFrameImpl::_fe::do_ZoomUpdate(), GR_Graphics::doRepaint(), FV_View::draw(), fp_Page::draw(), fp_FrameContainer::draw(), AP_TopRuler::draw(), AP_LeftRuler::draw(), AP_Columns_preview_drawer::draw(), fp_CellContainer::drawBroken(), FV_VisualDragText::drawCursor(), FV_VisualInlineImage::drawCursor(), FV_FrameEdit::drawFrame(), FV_VisualDragText::drawImage(), FV_VisualInlineImage::drawImage(), FV_View::drawSelectionBox(), fp_Page::expandDamageRect(), XAP_UnixFrameImpl::_fe::expose(), AP_UnixTopRuler::_fe::expose(), AP_UnixLeftRuler::_fe::expose(), fg_FillType::Fill(), GR_Win32Graphics::fillRect(), GR_UnixPangoGraphics::fillRect(), GR_Painter::fillRect(), GR_Graphics::fillRect(), GR_CocoaGraphics::fillRect(), fl_BlockLayout::formatWrappedFromHere(), fp_Page::fp_Page(), GR_Win32Graphics::genImageFromRectangle(), GR_UnixPangoGraphics::genImageFromRectangle(), GR_CocoaGraphics::genImageFromRectangle(), fp_Line::genOverlapRects(), FV_VisualDragText::getImageFromSelection(), FV_VisualInlineImage::getImageFromSelection(), fl_BlockLayout::getLeftRightForWrapping(), fp_Container::getPageRelativeOffsets(), XAP_CocoaFont::glyphBox(), GR_Win32Font::glyphBox(), GR_UnixPangoFont::glyphBox(), GR_Abi_CharArea::GR_Abi_CharArea(), intersectsRect(), GR_Win32Graphics::invertRect(), GR_UnixPangoGraphics::invertRect(), GR_CocoaGraphics::invertRect(), AP_TopRuler::isMouseOverTab(), AP_UnixApp::makePngPreview(), FV_FrameEdit::mouseLeftPress(), AP_TopRuler::mouseMotion(), AP_TopRuler::mousePress(), FV_VisualInlineImage::mouseRelease(), FV_FrameEdit::mouseRelease(), AP_TopRuler::notify(), fp_FrameContainer::overlapsRect(), fp_Page::redrawDamagedFrames(), GR_EmbedManager::render(), GR_MathManager::render(), GOComponentView::render(), GOChartView::render(), FV_VisualDragText::reposOffsets(), GR_Win32Graphics::restoreRectangle(), GR_UnixPangoGraphics::restoreRectangle(), GR_Win32Graphics::saveRectangle(), GR_UnixPangoGraphics::saveRectangle(), GR_CocoaGraphics::saveRectangle(), AP_TopRuler::scrollRuler(), AP_LeftRuler::scrollRuler(), GR_Win32Graphics::setClipRect(), GR_UnixPangoGraphics::setClipRect(), FV_VisualInlineImage::setDragType(), FV_FrameEdit::setDragType(), AP_TopRuler::setTableLineDrag(), AP_LeftRuler::setTableLineDrag(), unionRect(), fp_Page::updatePageForWrapping(), UT_Rect(), 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_CocoaTopRuler::_drawCellMark(), AP_CocoaLeftRuler::_drawCellMark(), AP_Dialog_Columns::_drawColumnButton(), AP_TopRuler::_drawColumnGapMarker(), AP_CocoaTopRuler::_drawColumnGapMarker(), AP_TopRuler::_drawFirstLineIndentMarker(), AP_CocoaTopRuler::_drawFirstLineIndentMarker(), AP_TopRuler::_drawLeftIndentMarker(), AP_CocoaTopRuler::_drawLeftIndentMarker(), AP_TopRuler::_drawMarginProperties(), AP_LeftRuler::_drawMarginProperties(), AP_CocoaTopRuler::_drawMarginProperties(), AP_CocoaLeftRuler::_drawMarginProperties(), fp_MathRun::_drawResizeBox(), FV_View::_drawResizeHandle(), AP_TopRuler::_drawRightIndentMarker(), AP_CocoaTopRuler::_drawRightIndentMarker(), AP_TopRuler::_drawTabStop(), AP_TopRuler::_drawTabToggle(), fp_TextRun::_fillRect(), fp_TextRun::_getPartRect(), AP_CocoaTopRuler::_graphicsUpdateCB(), AP_CocoaLeftRuler::_graphicsUpdateCB(), AP_CocoaFrameImpl::_graphicsUpdateCB, FV_VisualDragText::_mouseDrag(), FV_VisualInlineImage::_mouseDrag(), FV_FrameEdit::_mouseDrag(), s_LaTeX_Listener::_openCell(), GR_CocoaGraphics::_setClipRectImpl(), XAP_UnixFrameImpl::_fe::abi_expose_repaint(), XAP_CocoaFrameImpl::_fe::abi_expose_repaint(), AP_UnixLeftRuler::_fe::abi_expose_repaint(), FV_VisualInlineImage::cleanUP(), FV_VisualDragText::clearCursor(), FV_VisualInlineImage::clearCursor(), containsPoint(), GR_Win32Image::createImageSegment(), GR_UnixImage::createImageSegment(), GR_CocoaImage::createImageSegment(), XAP_UnixFrameImpl::_fe::do_ZoomUpdate(), GR_Graphics::doRepaint(), FV_View::draw(), fp_CellContainer::draw(), fp_Page::draw(), fp_Line::draw(), fp_FrameContainer::draw(), fp_EndnoteContainer::draw(), fp_VerticalContainer::draw(), AP_TopRuler::draw(), AP_LeftRuler::draw(), AP_Columns_preview_drawer::draw(), fp_CellContainer::drawBroken(), FV_VisualDragText::drawCursor(), FV_VisualInlineImage::drawCursor(), FV_FrameEdit::drawFrame(), FV_VisualDragText::drawImage(), FV_VisualInlineImage::drawImage(), FV_View::drawSelectionBox(), fp_Page::expandDamageRect(), XAP_UnixFrameImpl::_fe::expose(), AP_UnixTopRuler::_fe::expose(), AP_UnixLeftRuler::_fe::expose(), fg_FillType::Fill(), GR_Win32Graphics::fillRect(), GR_UnixPangoGraphics::fillRect(), GR_Painter::fillRect(), GR_Graphics::fillRect(), GR_CocoaGraphics::fillRect(), fl_BlockLayout::formatWrappedFromHere(), fp_Page::fp_Page(), GR_Win32Graphics::genImageFromRectangle(), GR_UnixPangoGraphics::genImageFromRectangle(), GR_CocoaGraphics::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(), XAP_CocoaFont::glyphBox(), GR_Win32Font::glyphBox(), GR_UnixPangoFont::glyphBox(), GR_Abi_CharArea::GR_Abi_CharArea(), intersectsRect(), GR_Win32Graphics::invertRect(), GR_UnixPangoGraphics::invertRect(), GR_CocoaGraphics::invertRect(), AP_UnixApp::makePngPreview(), FV_FrameEdit::mouseLeftPress(), AP_TopRuler::mouseMotion(), FV_VisualInlineImage::mouseRelease(), FV_FrameEdit::mouseRelease(), AP_LeftRuler::mouseRelease(), AP_TopRuler::notify(), fp_FrameContainer::overlapsRect(), fp_Page::redrawDamagedFrames(), GR_EmbedManager::render(), GR_MathManager::render(), GOComponentView::render(), GOChartView::render(), FV_VisualDragText::reposOffsets(), GR_Win32Graphics::restoreRectangle(), GR_UnixPangoGraphics::restoreRectangle(), GR_Win32Graphics::saveRectangle(), GR_UnixPangoGraphics::saveRectangle(), GR_CocoaGraphics::saveRectangle(), AP_TopRuler::scrollRuler(), AP_LeftRuler::scrollRuler(), GR_Win32Graphics::setClipRect(), GR_UnixPangoGraphics::setClipRect(), FV_VisualInlineImage::setDragType(), FV_FrameEdit::setDragType(), AP_LeftRuler::setTableLineDrag(), unionRect(), fp_Page::updatePageForWrapping(), UT_Rect(), 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_CocoaTopRuler::_drawCellMark(), AP_CocoaLeftRuler::_drawCellMark(), AP_TopRuler::_drawCellProperties(), AP_Dialog_Columns::_drawColumnButton(), AP_TopRuler::_drawColumnGapMarker(), AP_CocoaTopRuler::_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_CocoaTopRuler::_graphicsUpdateCB(), AP_CocoaLeftRuler::_graphicsUpdateCB(), AP_CocoaFrameImpl::_graphicsUpdateCB, FV_VisualDragText::_mouseDrag(), FV_VisualInlineImage::_mouseDrag(), FV_FrameEdit::_mouseDrag(), s_LaTeX_Listener::_openCell(), GR_CocoaGraphics::_setClipRectImpl(), XAP_UnixFrameImpl::_fe::abi_expose_repaint(), XAP_CocoaFrameImpl::_fe::abi_expose_repaint(), AP_UnixLeftRuler::_fe::abi_expose_repaint(), FV_VisualInlineImage::cleanUP(), containsPoint(), GR_Win32Image::createImageSegment(), GR_UnixImage::createImageSegment(), GR_CocoaImage::createImageSegment(), GR_MathManager::createPNGSnapshot(), GR_GOComponentManager::createPNGSnapshot(), GR_GOChartManager::createPNGSnapshot(), FV_FrameEdit::deleteFrame(), XAP_UnixFrameImpl::_fe::do_ZoomUpdate(), GR_Graphics::doRepaint(), FV_View::draw(), fp_Page::draw(), fp_FrameContainer::draw(), AP_TopRuler::draw(), AP_LeftRuler::draw(), AP_Columns_preview_drawer::draw(), fp_CellContainer::drawBroken(), FV_VisualDragText::drawCursor(), FV_VisualInlineImage::drawCursor(), FV_VisualDragText::drawImage(), FV_View::drawSelectionBox(), fp_Page::expandDamageRect(), XAP_UnixFrameImpl::_fe::expose(), AP_UnixTopRuler::_fe::expose(), AP_UnixLeftRuler::_fe::expose(), fg_FillType::Fill(), GR_Win32Graphics::fillRect(), GR_UnixPangoGraphics::fillRect(), GR_Painter::fillRect(), GR_Graphics::fillRect(), GR_CocoaGraphics::fillRect(), fl_BlockLayout::formatWrappedFromHere(), fp_Page::fp_Page(), GR_Win32Graphics::genImageFromRectangle(), GR_UnixPangoGraphics::genImageFromRectangle(), GR_CocoaGraphics::genImageFromRectangle(), fp_Line::genOverlapRects(), FV_FrameEdit::getFrameStrings(), FV_VisualDragText::getImageFromSelection(), fl_BlockLayout::getLeftRightForWrapping(), fp_Container::getPageRelativeOffsets(), FV_VisualDragText::getPosFromXY(), XAP_CocoaFont::glyphBox(), GR_Win32Font::glyphBox(), GR_UnixPangoFont::glyphBox(), GR_Abi_CharArea::GR_Abi_CharArea(), GR_Win32Graphics::invertRect(), GR_UnixPangoGraphics::invertRect(), GR_CocoaGraphics::invertRect(), AP_UnixApp::makePngPreview(), 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(), fp_Page::redrawDamagedFrames(), GR_EmbedManager::render(), GOComponentView::render(), GOChartView::render(), FV_VisualDragText::reposOffsets(), GR_Win32Graphics::restoreRectangle(), GR_Win32Graphics::saveRectangle(), GR_UnixPangoGraphics::saveRectangle(), GR_CocoaGraphics::saveRectangle(), GR_UnixImage::scaleImageTo(), GR_Image::scaleImageTo(), AP_TopRuler::scrollRuler(), AP_LeftRuler::scrollRuler(), GR_Win32Graphics::setClipRect(), GR_UnixPangoGraphics::setClipRect(), FV_VisualInlineImage::setDragType(), FV_FrameEdit::setDragType(), FV_FrameEdit::setMode(), AP_LeftRuler::setTableLineDrag(), unionRect(), fp_Page::updatePageForWrapping(), GR_GOComponentManager::updatePNGSnapshot(), GR_GOChartManager::updatePNGSnapshot(), UT_Rect(), and GR_Graphics::xorRect().

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_CocoaTopRuler::_drawCellMark(), AP_CocoaLeftRuler::_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(), fp_TextRun::_getPartRect(), AP_CocoaTopRuler::_graphicsUpdateCB(), AP_CocoaLeftRuler::_graphicsUpdateCB(), AP_CocoaFrameImpl::_graphicsUpdateCB, FV_VisualDragText::_mouseDrag(), FV_VisualInlineImage::_mouseDrag(), FV_FrameEdit::_mouseDrag(), s_LaTeX_Listener::_openCell(), GR_CocoaGraphics::_setClipRectImpl(), XAP_UnixFrameImpl::_fe::abi_expose_repaint(), XAP_CocoaFrameImpl::_fe::abi_expose_repaint(), AP_UnixLeftRuler::_fe::abi_expose_repaint(), FV_VisualInlineImage::cleanUP(), containsPoint(), GR_Win32Image::createImageSegment(), GR_UnixImage::createImageSegment(), GR_CocoaImage::createImageSegment(), GR_MathManager::createPNGSnapshot(), GR_GOComponentManager::createPNGSnapshot(), GR_GOChartManager::createPNGSnapshot(), FV_FrameEdit::deleteFrame(), XAP_UnixFrameImpl::_fe::do_ZoomUpdate(), GR_Graphics::doRepaint(), FV_View::draw(), fp_CellContainer::draw(), fp_Page::draw(), fp_Line::draw(), fp_FrameContainer::draw(), fp_EndnoteContainer::draw(), fp_VerticalContainer::draw(), AP_TopRuler::draw(), AP_LeftRuler::draw(), AP_Columns_preview_drawer::draw(), fp_CellContainer::drawBroken(), FV_VisualDragText::drawCursor(), FV_VisualInlineImage::drawCursor(), FV_VisualDragText::drawImage(), FV_View::drawSelectionBox(), fp_Page::expandDamageRect(), XAP_UnixFrameImpl::_fe::expose(), AP_UnixTopRuler::_fe::expose(), AP_UnixLeftRuler::_fe::expose(), fg_FillType::Fill(), GR_Win32Graphics::fillRect(), GR_UnixPangoGraphics::fillRect(), GR_Painter::fillRect(), GR_Graphics::fillRect(), GR_CocoaGraphics::fillRect(), fl_BlockLayout::formatWrappedFromHere(), fp_Page::fp_Page(), GR_Win32Graphics::genImageFromRectangle(), GR_UnixPangoGraphics::genImageFromRectangle(), GR_CocoaGraphics::genImageFromRectangle(), fp_Line::genOverlapRects(), FV_FrameEdit::getFrameStrings(), FV_VisualDragText::getImageFromSelection(), fl_BlockLayout::getLeftRightForWrapping(), fl_BlockLayout::getNextWrappedLine(), fp_Container::getPageRelativeOffsets(), XAP_CocoaFont::glyphBox(), GR_Win32Font::glyphBox(), GR_UnixPangoFont::glyphBox(), GR_Abi_CharArea::GR_Abi_CharArea(), GR_Win32Graphics::invertRect(), GR_UnixPangoGraphics::invertRect(), GR_CocoaGraphics::invertRect(), AP_UnixApp::makePngPreview(), FV_FrameEdit::mouseLeftPress(), AP_TopRuler::mouseMotion(), FV_VisualInlineImage::mouseRelease(), FV_FrameEdit::mouseRelease(), AP_LeftRuler::mouseRelease(), AP_TopRuler::notify(), fp_FrameContainer::overlapsRect(), fp_Page::redrawDamagedFrames(), GR_EmbedManager::render(), GOComponentView::render(), GOChartView::render(), FV_VisualDragText::reposOffsets(), GR_Win32Graphics::restoreRectangle(), GR_Win32Graphics::saveRectangle(), GR_UnixPangoGraphics::saveRectangle(), GR_CocoaGraphics::saveRectangle(), GR_UnixImage::scaleImageTo(), GR_Image::scaleImageTo(), AP_TopRuler::scrollRuler(), AP_LeftRuler::scrollRuler(), GR_Win32Graphics::setClipRect(), GR_UnixPangoGraphics::setClipRect(), FV_VisualInlineImage::setDragType(), FV_FrameEdit::setDragType(), FV_FrameEdit::setMode(), AP_LeftRuler::setTableLineDrag(), unionRect(), fp_Page::updatePageForWrapping(), GR_GOComponentManager::updatePNGSnapshot(), GR_GOChartManager::updatePNGSnapshot(), UT_Rect(), and GR_Graphics::xorRect().


The documentation for this class was generated from the following files:

Generated on Fri Aug 29 00:07:12 2008 for AbiWord by  doxygen 1.5.5