#include <gr_Painter.h>
GR_Painter::GR_Painter | ( | GR_Graphics * | pGr, | |
bool | bDisableCarets = true | |||
) |
References GR_Graphics::beginPaint(), GR_Graphics::disableAllCarets(), m_bCaretsDisabled, m_pGr, and UT_ASSERT.
GR_Painter::~GR_Painter | ( | ) |
References GR_Graphics::enableAllCarets(), endDoubleBuffering(), GR_Graphics::endPaint(), m_bCaretsDisabled, and m_pGr.
GR_Painter::GR_Painter | ( | ) | [private] |
GR_Painter::GR_Painter | ( | const GR_Painter & | rhs | ) | [private] |
void GR_Painter::beginDoubleBuffering | ( | ) |
References m_bDoubleBufferingToken, and m_pGr.
Referenced by FV_View::_draw(), FV_ViewDoubleBuffering::beginDoubleBuffering(), AP_TopRuler::drawLU(), and AP_LeftRuler::drawLU().
References GR_Graphics::clearArea(), and m_pGr.
Referenced by AP_Dialog_Columns::_drawColumnButton(), abi_widget_render_page_to_image(), XAP_Preview_Zoom::draw(), XAP_Draw_Symbol::draw(), AP_Preview_PageNumbers::draw(), AP_Lists_preview::draw(), AP_FormatTable_preview::draw(), AP_FormatFrame_preview::draw(), AP_Columns_preview::draw(), AP_Border_Shading_preview::draw(), XAP_Draw_Symbol::drawarea(), AP_UnixApp::makePngPreview(), and XAP_UnixDialog_FileOpenSaveAs::previewPicture().
void GR_Painter::drawChars | ( | const UT_UCSChar * | pChars, | |
int | iCharOffset, | |||
int | iLength, | |||
UT_sint32 | xoff, | |||
UT_sint32 | yoff, | |||
int * | pCharWidths = NULL | |||
) |
References GR_Graphics::drawChars(), and m_pGr.
Referenced by AP_Preview_Paragraph::_appendLine(), fp_FieldRun::_defaultDraw(), fp_EndOfParagraphRun::_draw(), fp_ForcedLineBreakRun::_draw(), fp_TabRun::_draw(), fp_RDFAnchorRun::_draw(), fp_DirectionMarkerRun::_draw(), fp_AnnotationRun::_draw(), fp_Run::_drawTextLine(), AP_TopRuler::_drawTickMark(), XAP_Preview_Zoom::draw(), XAP_Draw_Symbol::draw(), XAP_Preview_FontPreview::draw(), AP_Preview_Annotation::draw(), AP_Preview_PageNumbers::draw(), AP_Lists_preview::draw(), XAP_Draw_Symbol::drawarea(), AP_LeftRuler::drawLU(), and XAP_UnixDialog_FileOpenSaveAs::previewPicture().
void GR_Painter::drawCharsRelativeToBaseline | ( | const UT_UCSChar * | pChars, | |
int | iCharOffset, | |||
int | iLength, | |||
UT_sint32 | xoff, | |||
UT_sint32 | yoff, | |||
int * | pCharWidths = NULL | |||
) |
References GR_Graphics::drawCharsRelativeToBaseline(), and m_pGr.
References GR_Graphics::drawGlyph(), and m_pGr.
References GR_Graphics::drawImage(), and m_pGr.
Referenced by fp_ImageRun::_draw(), FV_VisualInlineImage::_mouseDrag(), AP_TopRuler::_xorGuide(), AP_LeftRuler::_xorGuide(), FV_VisualDragText::clearCursor(), FV_VisualInlineImage::clearCursor(), AP_FormatTable_preview::draw(), AP_FormatFrame_preview::draw(), FV_FrameEdit::drawFrame(), FV_VisualDragText::drawImage(), FV_VisualInlineImage::drawImage(), Presentation::drawNthPage(), fg_FillType::Fill(), FV_VisualInlineImage::mouseRelease(), XAP_UnixDialog_FileOpenSaveAs::previewPicture(), and GR_EmbedManager::render().
References GR_Graphics::drawLine(), and m_pGr.
Referenced by GR_Caret::_blink(), FV_View::_draw(), fp_TextRun::_draw(), fp_TableContainer::_drawBoundaries(), fp_CellContainer::_drawBoundaries(), fp_Column::_drawBoundaries(), fp_VerticalContainer::_drawBoundaries(), fp_TableContainer::_drawBrokenBoundaries(), AP_TopRuler::_drawCellMark(), AP_LeftRuler::_drawCellMark(), AP_TopRuler::_drawColumnGapMarker(), fp_Page::_drawCropMarks(), AP_TopRuler::_drawFirstLineIndentMarker(), fp_ShadowContainer::_drawHdrFtrBoundaries(), AP_TopRuler::_drawLeftIndentMarker(), fp_FrameContainer::_drawLine(), AP_TopRuler::_drawMarginProperties(), AP_LeftRuler::_drawMarginProperties(), AP_Preview_Paragraph::_drawPageBorder(), fp_MathRun::_drawResizeBox(), FV_View::_drawResizeHandle(), AP_TopRuler::_drawRightIndentMarker(), AP_TopRuler::_drawTabProperties(), AP_TopRuler::_drawTabToggle(), fp_Run::_drawTextLine(), AP_TopRuler::_drawTickMark(), AP_TopRuler::_xorGuide(), AP_LeftRuler::_xorGuide(), fp_ShadowContainer::clearHdrFtrBoundaries(), XAP_Draw_Symbol::draw(), XAP_Preview_FontPreview::draw(), fp_Run::draw(), fp_Page::draw(), fp_FootnoteContainer::draw(), AP_Preview_Annotation::draw(), AP_Preview_PageNumbers::draw(), AP_FormatTable_preview::draw(), AP_FormatFrame_preview::draw(), AP_Columns_preview_drawer::draw(), AP_Columns_preview::draw(), AP_Border_Shading_preview::draw(), XAP_Draw_Symbol::drawarea(), fp_Run::drawDecors(), fp_Container::drawLine(), AP_LeftRuler::drawLU(), and FV_View::drawSelectionBox().
void GR_Painter::endDoubleBuffering | ( | ) |
References m_bDoubleBufferingToken, and m_pGr.
Referenced by FV_ViewDoubleBuffering::endDoubleBuffering(), and ~GR_Painter().
void GR_Painter::fillRect | ( | GR_Graphics::GR_Color3D | c, | |
UT_sint32 | x, | |||
UT_sint32 | y, | |||
UT_sint32 | w, | |||
UT_sint32 | h | |||
) |
References GR_Graphics::fillRect(), and m_pGr.
void GR_Painter::fillRect | ( | const UT_RGBColor & | c, | |
const UT_Rect & | r | |||
) |
References GR_Graphics::fillRect(), and m_pGr.
void GR_Painter::fillRect | ( | GR_Graphics::GR_Color3D | c, | |
const UT_Rect & | r | |||
) |
References GR_Graphics::fillRect(), UT_Rect::height, UT_Rect::left, m_pGr, UT_Rect::top, and UT_Rect::width.
void GR_Painter::fillRect | ( | const UT_RGBColor & | c, | |
UT_sint32 | x, | |||
UT_sint32 | y, | |||
UT_sint32 | w, | |||
UT_sint32 | h | |||
) |
References GR_Graphics::fillRect(), and m_pGr.
Referenced by fp_DirectionMarkerRun::_clearScreen(), fp_FieldRun::_defaultDraw(), FV_View::_draw(), fp_ImageRun::_draw(), fp_EndOfParagraphRun::_draw(), fp_ForcedLineBreakRun::_draw(), fp_TabRun::_draw(), fp_RDFAnchorRun::_draw(), fp_MathRun::_draw(), fp_EmbedRun::_draw(), fp_DirectionMarkerRun::_draw(), fp_AnnotationRun::_draw(), fp_TabRun::_drawArrow(), AP_TopRuler::_drawBar(), AP_TopRuler::_drawCellGap(), AP_TopRuler::_drawCellMark(), AP_LeftRuler::_drawCellMark(), fp_TextRun::_drawInvisibleSpaces(), AP_TopRuler::_drawMarginProperties(), AP_LeftRuler::_drawMarginProperties(), AP_Preview_Paragraph::_drawPageBackground(), fp_MathRun::_drawResizeBox(), FV_View::_drawResizeHandle(), AP_TopRuler::_drawTabStop(), AP_TopRuler::_drawTabToggle(), fp_TextRun::_fillRect(), XAP_Preview_FontPreview::clearScreen(), AP_Preview_Annotation::clearScreen(), XAP_Preview_Zoom::draw(), XAP_Preview_FontPreview::draw(), fp_Run::draw(), AP_Preview_PageNumbers::draw(), AP_Lists_preview::draw(), AP_FormatTable_preview::draw(), AP_FormatFrame_preview::draw(), AP_Columns_preview::draw(), AP_Border_Shading_preview::draw(), XAP_Draw_Symbol::drawarea(), fp_CellContainer::drawBroken(), FV_VisualDragText::drawCursor(), FV_VisualInlineImage::drawCursor(), fp_Run::drawDecors(), FV_VisualDragText::drawImage(), AP_TopRuler::drawLU(), AP_LeftRuler::drawLU(), fp_Run::Fill(), and fg_FillType::Fill().
References GR_Graphics::fillRect(), and m_pGr.
References GR_Graphics::genImageFromRectangle(), and m_pGr.
Referenced by FV_VisualInlineImage::_mouseDrag(), AP_TopRuler::_xorGuide(), AP_LeftRuler::_xorGuide(), FV_VisualDragText::drawCursor(), FV_VisualInlineImage::drawCursor(), FV_FrameEdit::drawFrame(), FV_VisualDragText::getImageFromSelection(), FV_VisualInlineImage::getImageFromSelection(), and ODe_ThumbnailsWriter::writeThumbnails().
void GR_Painter::invertRect | ( | const UT_Rect * | pRect | ) |
References GR_Graphics::invertRect(), and m_pGr.
GR_Painter& GR_Painter::operator= | ( | const GR_Painter & | rhs | ) | [private] |
void GR_Painter::polygon | ( | const UT_RGBColor & | c, | |
const UT_Point * | pts, | |||
UT_uint32 | nPoints | |||
) |
void GR_Painter::renderChars | ( | GR_RenderInfo & | ri | ) |
References m_pGr, and GR_Graphics::renderChars().
Referenced by fp_TextRun::_draw(), fp_TextRun::_drawFirstChar(), and fp_TextRun::_drawLastChar().
void GR_Painter::resumeDrawing | ( | ) |
References m_bSuspendDrawingToken, m_pGr, and GR_Graphics::resumeDrawing().
Referenced by FV_ViewDoubleBuffering::endDoubleBuffering().
void GR_Painter::suspendDrawing | ( | ) |
References m_bSuspendDrawingToken, m_pGr, and GR_Graphics::suspendDrawing().
Referenced by FV_ViewDoubleBuffering::beginDoubleBuffering().
References m_pGr, and GR_Graphics::xorLine().
Referenced by AP_TopRuler::_xorGuide(), and AP_LeftRuler::_xorGuide().
References m_pGr, and GR_Graphics::xorRect().
void GR_Painter::xorRect | ( | const UT_Rect & | r | ) |
References m_pGr, and GR_Graphics::xorRect().
bool GR_Painter::m_bCaretsDisabled [private] |
Referenced by GR_Painter(), and ~GR_Painter().
bool GR_Painter::m_bDoubleBufferingToken [private] |
Referenced by beginDoubleBuffering(), and endDoubleBuffering().
bool GR_Painter::m_bSuspendDrawingToken [private] |
Referenced by resumeDrawing(), and suspendDrawing().
GR_Graphics* GR_Painter::m_pGr [private] |
Referenced by beginDoubleBuffering(), clearArea(), drawChars(), drawCharsRelativeToBaseline(), drawGlyph(), drawImage(), drawLine(), endDoubleBuffering(), fillRect(), genImageFromRectangle(), GR_Painter(), invertRect(), polygon(), polyLine(), renderChars(), resumeDrawing(), suspendDrawing(), xorLine(), xorRect(), and ~GR_Painter().