#include <gr_Abi_RenderingContext.h>
Public Member Functions | |
GR_Abi_RenderingContext (class GR_Graphics *) | |
virtual | ~GR_Abi_RenderingContext () |
class GR_Graphics * | getGraphics (void) const |
void | setColor (const RGBColor &c) |
void | setColor (const UT_RGBColor &) |
void | getColor (RGBColor &) const |
void | getColor (UT_RGBColor &) const |
void | fill (const scaled &, const scaled &, const BoundingBox &) const |
void | fill (const UT_RGBColor &, const scaled &, const scaled &, const BoundingBox &) const |
void | fill (const RGBColor &c, const scaled &x, const scaled &y, const BoundingBox &box) const |
void | drawGlyph (const scaled &, const scaled &, class GR_Font *, UT_uint32) const |
void | drawChar (const scaled &, const scaled &, class GR_Font *, UT_UCS4Char) const |
void | drawBox (const scaled &, const scaled &, const BoundingBox &) const |
UT_sint32 | toAbiLayoutUnits (const scaled &s) const |
scaled | fromAbiLayoutUnits (UT_sint32 s) const |
UT_sint32 | toAbiX (const scaled &x) const |
UT_sint32 | toAbiY (const scaled &y) const |
scaled | fromAbiX (UT_sint32 x) const |
scaled | fromAbiY (UT_sint32 y) const |
Static Public Member Functions | |
static RGBColor | fromAbiColor (const UT_RGBColor &c) |
static UT_RGBColor | toAbiColor (const RGBColor &c) |
Private Attributes | |
class GR_Graphics * | m_pGraphics |
GR_Abi_RenderingContext::GR_Abi_RenderingContext | ( | class GR_Graphics * | pGr | ) |
References m_pGraphics, and UT_ASSERT.
GR_Abi_RenderingContext::~GR_Abi_RenderingContext | ( | ) | [virtual] |
void GR_Abi_RenderingContext::drawBox | ( | const scaled & | x, | |
const scaled & | y, | |||
const BoundingBox & | box | |||
) | const |
References GR_Graphics::antiAliasAlways(), GR_Painter::drawLine(), m_pGraphics, toAbiX(), toAbiY(), and UT_DEBUGMSG.
void GR_Abi_RenderingContext::drawChar | ( | const scaled & | x, | |
const scaled & | y, | |||
class GR_Font * | f, | |||
UT_UCS4Char | c | |||
) | const |
References GR_Painter::drawChars(), GR_Graphics::getFontAscent(), m_pGraphics, GR_Graphics::setFont(), toAbiX(), and toAbiY().
Referenced by GR_Abi_CharArea::render().
void GR_Abi_RenderingContext::drawGlyph | ( | const scaled & | x, | |
const scaled & | y, | |||
class GR_Font * | f, | |||
UT_uint32 | glyph | |||
) | const |
References GR_Painter::drawGlyph(), m_pGraphics, GR_Graphics::setFont(), toAbiX(), and toAbiY().
void GR_Abi_RenderingContext::fill | ( | const RGBColor & | c, | |
const scaled & | x, | |||
const scaled & | y, | |||
const BoundingBox & | box | |||
) | const [inline] |
References fill(), and toAbiColor().
Referenced by fill().
void GR_Abi_RenderingContext::fill | ( | const scaled & | x, | |
const scaled & | y, | |||
const BoundingBox & | box | |||
) | const |
References getColor().
Referenced by GR_Abi_InkArea::render().
void GR_Abi_RenderingContext::fill | ( | const UT_RGBColor & | color, | |
const scaled & | x, | |||
const scaled & | y, | |||
const BoundingBox & | box | |||
) | const |
static RGBColor GR_Abi_RenderingContext::fromAbiColor | ( | const UT_RGBColor & | c | ) | [inline, static] |
References UT_RGBColor::m_bIsTransparent, UT_RGBColor::m_blu, UT_RGBColor::m_grn, and UT_RGBColor::m_red.
Referenced by getColor().
scaled GR_Abi_RenderingContext::fromAbiLayoutUnits | ( | UT_sint32 | s | ) | const |
References UT_LAYOUT_RESOLUTION.
Referenced by fromAbiX(), fromAbiY(), and GR_Abi_CharArea::GR_Abi_CharArea().
scaled GR_Abi_RenderingContext::fromAbiX | ( | UT_sint32 | x | ) | const |
References fromAbiLayoutUnits().
Referenced by GR_MathManager::render().
scaled GR_Abi_RenderingContext::fromAbiY | ( | UT_sint32 | y | ) | const |
References fromAbiLayoutUnits().
Referenced by GR_MathManager::render().
void GR_Abi_RenderingContext::getColor | ( | UT_RGBColor & | c | ) | const |
References GR_Graphics::getColor(), and m_pGraphics.
void GR_Abi_RenderingContext::getColor | ( | RGBColor & | c | ) | const |
References fromAbiColor(), GR_Graphics::getColor(), and m_pGraphics.
Referenced by fill(), and GR_Abi_ColorArea::render().
class GR_Graphics* GR_Abi_RenderingContext::getGraphics | ( | void | ) | const [inline] |
References m_pGraphics.
void GR_Abi_RenderingContext::setColor | ( | const RGBColor & | c | ) | [inline] |
References setColor(), and toAbiColor().
Referenced by GR_Abi_ColorArea::render(), setColor(), and GR_MathManager::setColor().
void GR_Abi_RenderingContext::setColor | ( | const UT_RGBColor & | c | ) |
References m_pGraphics, and GR_Graphics::setColor().
static UT_RGBColor GR_Abi_RenderingContext::toAbiColor | ( | const RGBColor & | c | ) | [inline, static] |
Referenced by fill(), and setColor().
UT_sint32 GR_Abi_RenderingContext::toAbiLayoutUnits | ( | const scaled & | s | ) | const |
References UT_LAYOUT_RESOLUTION.
Referenced by fill(), GR_MathManager::getAscent(), GR_MathManager::getDescent(), GR_MathManager::getWidth(), toAbiX(), and toAbiY().
UT_sint32 GR_Abi_RenderingContext::toAbiX | ( | const scaled & | x | ) | const |
References toAbiLayoutUnits().
Referenced by drawBox(), drawChar(), drawGlyph(), and fill().
UT_sint32 GR_Abi_RenderingContext::toAbiY | ( | const scaled & | y | ) | const |
References toAbiLayoutUnits().
Referenced by drawBox(), drawChar(), drawGlyph(), and fill().
class GR_Graphics* GR_Abi_RenderingContext::m_pGraphics [private] |
Referenced by drawBox(), drawChar(), drawGlyph(), fill(), getColor(), getGraphics(), GR_Abi_RenderingContext(), and setColor().