Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __gr_Abi_CharArea_h__
00021 #define __gr_Abi_CharArea_h__
00022
00023 #include "mathview_proxy.h"
00024
00025 #include "ut_types.h"
00026
00027 class GR_Abi_CharArea : public GlyphArea
00028 {
00029 protected:
00030 GR_Abi_CharArea(class GR_Graphics*, class GR_Font*, const scaled&, UT_UCS4Char);
00031 virtual ~GR_Abi_CharArea();
00032
00033 public:
00034 static SmartPtr<GR_Abi_CharArea> create(GR_Graphics* g, GR_Font* font, const scaled& size, UT_UCS4Char glyph)
00035 { return new GR_Abi_CharArea(g, font, size, glyph); }
00036
00037 virtual BoundingBox box(void) const;
00038 virtual scaled leftEdge(void) const;
00039 virtual scaled rightEdge(void) const;
00040 virtual void render(class RenderingContext&, const scaled&, const scaled&) const;
00041
00042 private:
00043 class GR_Font* m_pFont;
00044 UT_UCS4Char m_ch;
00045 BoundingBox m_box;
00046 };
00047
00048 #endif // __gr_Abi_CharArea_h__