#include <gr_Abi_CharArea.h>
Public Member Functions | |
| virtual BoundingBox | box (void) const |
| virtual scaled | leftEdge (void) const |
| virtual scaled | rightEdge (void) const |
| virtual void | render (class RenderingContext &, const scaled &, const scaled &) const |
Static Public Member Functions | |
| static SmartPtr< GR_Abi_CharArea > | create (GR_Graphics *g, GR_Font *font, const scaled &size, UT_UCS4Char glyph) |
Protected Member Functions | |
| GR_Abi_CharArea (class GR_Graphics *, class GR_Font *, const scaled &, UT_UCS4Char) | |
| virtual | ~GR_Abi_CharArea () |
Private Attributes | |
| class GR_Font * | m_pFont |
| UT_UCS4Char | m_ch |
| BoundingBox | m_box |
| GR_Abi_CharArea::GR_Abi_CharArea | ( | class GR_Graphics * | graphics, | |
| class GR_Font * | f, | |||
| const scaled & | , | |||
| UT_UCS4Char | c | |||
| ) | [protected] |
References GR_Abi_RenderingContext::fromAbiLayoutUnits(), GR_Graphics::ftluD(), GR_Graphics::getFontAscent(), GR_Graphics::getFontDescent(), GR_Font::glyphBox(), UT_Rect::height, UT_Rect::left, m_box, m_ch, m_pFont, GR_Graphics::measureUnRemappedChar(), GR_Font::measureUnremappedCharForCache(), GR_Graphics::setFont(), size, GR_Graphics::tduD(), GR_Graphics::tluD(), UT_Rect::top, UT_ASSERT, and UT_Rect::width.
Referenced by create().
| GR_Abi_CharArea::~GR_Abi_CharArea | ( | ) | [protected, virtual] |
| BoundingBox GR_Abi_CharArea::box | ( | void | ) | const [virtual] |
References m_box.
| static SmartPtr<GR_Abi_CharArea> GR_Abi_CharArea::create | ( | GR_Graphics * | g, | |
| GR_Font * | font, | |||
| const scaled & | size, | |||
| UT_UCS4Char | glyph | |||
| ) | [inline, static] |
References GR_Abi_CharArea().
| scaled GR_Abi_CharArea::leftEdge | ( | void | ) | const [virtual] |
| void GR_Abi_CharArea::render | ( | class RenderingContext & | c, | |
| const scaled & | x, | |||
| const scaled & | y | |||
| ) | const [virtual] |
References GR_Abi_RenderingContext::drawChar(), m_ch, and m_pFont.
| scaled GR_Abi_CharArea::rightEdge | ( | void | ) | const [virtual] |
References m_box.
BoundingBox GR_Abi_CharArea::m_box [private] |
Referenced by box(), GR_Abi_CharArea(), and rightEdge().
UT_UCS4Char GR_Abi_CharArea::m_ch [private] |
Referenced by GR_Abi_CharArea(), and render().
class GR_Font* GR_Abi_CharArea::m_pFont [private] |
Referenced by GR_Abi_CharArea(), and render().
1.7.1