Public Member Functions | Private Member Functions | Private Attributes

GR_Painter Class Reference

#include <gr_Painter.h>

List of all members.

Public Member Functions

 GR_Painter (GR_Graphics *pGr, bool bDisableCarets=true)
 ~GR_Painter ()
void drawLine (UT_sint32 x1, UT_sint32 y1, UT_sint32 x2, UT_sint32 y2)
void xorLine (UT_sint32 x1, UT_sint32 y1, UT_sint32 x2, UT_sint32 y2)
void xorRect (UT_sint32 x, UT_sint32 y, UT_sint32 w, UT_sint32 h)
void xorRect (const UT_Rect &r)
void invertRect (const UT_Rect *pRect)
void fillRect (const UT_RGBColor &c, UT_sint32 x, UT_sint32 y, UT_sint32 w, UT_sint32 h)
void fillRect (GR_Image *pImg, const UT_Rect &src, const UT_Rect &dest)
void fillRect (const UT_RGBColor &c, const UT_Rect &r)
void clearArea (UT_sint32 x, UT_sint32 y, UT_sint32 w, UT_sint32 h)
void drawImage (GR_Image *pImg, UT_sint32 xDest, UT_sint32 yDest)
void fillRect (GR_Graphics::GR_Color3D c, UT_sint32 x, UT_sint32 y, UT_sint32 w, UT_sint32 h)
void fillRect (GR_Graphics::GR_Color3D c, UT_Rect &r)
void polygon (UT_RGBColor &c, UT_Point *pts, UT_uint32 nPoints)
void polyLine (UT_Point *pts, UT_uint32 nPoints)
void drawGlyph (UT_uint32 glyph_idx, UT_sint32 xoff, UT_sint32 yoff)
void drawChars (const UT_UCSChar *pChars, int iCharOffset, int iLength, UT_sint32 xoff, UT_sint32 yoff, int *pCharWidths=NULL)
void drawCharsRelativeToBaseline (const UT_UCSChar *pChars, int iCharOffset, int iLength, UT_sint32 xoff, UT_sint32 yoff, int *pCharWidths=NULL)
void renderChars (GR_RenderInfo &ri)
GR_ImagegenImageFromRectangle (const UT_Rect &r)
void beginDoubleBuffering ()
void endDoubleBuffering ()
void suspendDrawing ()
void resumeDrawing ()

Private Member Functions

 GR_Painter ()
 GR_Painter (const GR_Painter &rhs)
GR_Painteroperator= (const GR_Painter &rhs)

Private Attributes

GR_Graphicsm_pGr
bool m_bCaretsDisabled
bool m_bDoubleBufferingToken
bool m_bSuspendDrawingToken

Constructor & Destructor Documentation

GR_Painter::GR_Painter ( GR_Graphics pGr,
bool  bDisableCarets = true 
)
GR_Painter::~GR_Painter (  ) 
GR_Painter::GR_Painter (  )  [private]
GR_Painter::GR_Painter ( const GR_Painter rhs  )  [private]

Member Function Documentation

void GR_Painter::beginDoubleBuffering (  ) 
void GR_Painter::clearArea ( UT_sint32  x,
UT_sint32  y,
UT_sint32  w,
UT_sint32  h 
)
void GR_Painter::drawChars ( const UT_UCSChar pChars,
int  iCharOffset,
int  iLength,
UT_sint32  xoff,
UT_sint32  yoff,
int *  pCharWidths = NULL 
)
void GR_Painter::drawCharsRelativeToBaseline ( const UT_UCSChar pChars,
int  iCharOffset,
int  iLength,
UT_sint32  xoff,
UT_sint32  yoff,
int *  pCharWidths = NULL 
)
void GR_Painter::drawGlyph ( UT_uint32  glyph_idx,
UT_sint32  xoff,
UT_sint32  yoff 
)

References GR_Graphics::drawGlyph(), and m_pGr.

void GR_Painter::drawImage ( GR_Image pImg,
UT_sint32  xDest,
UT_sint32  yDest 
)
void GR_Painter::drawLine ( UT_sint32  x1,
UT_sint32  y1,
UT_sint32  x2,
UT_sint32  y2 
)

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 (  ) 
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,
UT_sint32  x,
UT_sint32  y,
UT_sint32  w,
UT_sint32  h 
)

References GR_Graphics::fillRect(), and m_pGr.

void GR_Painter::fillRect ( GR_Image pImg,
const UT_Rect src,
const UT_Rect dest 
)

References GR_Graphics::fillRect(), and m_pGr.

void GR_Painter::fillRect ( GR_Graphics::GR_Color3D  c,
UT_Rect r 
)
void GR_Painter::fillRect ( const UT_RGBColor c,
UT_sint32  x,
UT_sint32  y,
UT_sint32  w,
UT_sint32  h 
)
GR_Image * GR_Painter::genImageFromRectangle ( const UT_Rect r  ) 
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 ( UT_RGBColor c,
UT_Point pts,
UT_uint32  nPoints 
)
void GR_Painter::polyLine ( UT_Point pts,
UT_uint32  nPoints 
)

References m_pGr, and GR_Graphics::polyLine().

void GR_Painter::renderChars ( GR_RenderInfo ri  ) 
void GR_Painter::resumeDrawing (  ) 
void GR_Painter::suspendDrawing (  ) 
void GR_Painter::xorLine ( UT_sint32  x1,
UT_sint32  y1,
UT_sint32  x2,
UT_sint32  y2 
)
void GR_Painter::xorRect ( const UT_Rect r  ) 

References m_pGr, and GR_Graphics::xorRect().

void GR_Painter::xorRect ( UT_sint32  x,
UT_sint32  y,
UT_sint32  w,
UT_sint32  h 
)

References m_pGr, and GR_Graphics::xorRect().


Member Data Documentation

Referenced by GR_Painter(), and ~GR_Painter().

Referenced by resumeDrawing(), and suspendDrawing().


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