Public Member Functions | Protected Attributes | Private Attributes

XAP_Draw_Symbol Class Reference

#include <xap_Draw_Symbol.h>

Inheritance diagram for XAP_Draw_Symbol:
XAP_Preview XAP_CustomWidget

List of all members.

Public Member Functions

 XAP_Draw_Symbol (GR_Graphics *gc)
virtual ~XAP_Draw_Symbol ()
void setSelectedFont (const char *font)
void setFontString ()
void setFontStringarea ()
void setFontToGC (GR_Graphics *p_gc, UT_uint32 MaxWidthAllowable, UT_uint32 MaxHeightAllowable)
void setFontfont (GR_Font *font)
void setWindowSize (UT_uint32 width, UT_uint32 height)
void setAreaSize (UT_uint32 width, UT_uint32 height)
void setAreaGc (GR_Graphics *)
void setRow (UT_uint32 row)
const char * getSelectedFont ()
UT_uint32 getSymbolRows ()
void draw (const UT_Rect *clip=NULL)
void drawarea (UT_UCSChar c, UT_UCSChar p)
UT_UCSChar calcSymbol (UT_uint32 x, UT_uint32 y)
UT_UCSChar calcSymbolFromCoords (UT_uint32 x, UT_uint32 y)
void setCurrent (UT_UCSChar c)
UT_UCSChar getCurrent ()
void onLeftButtonDown (UT_sint32 x, UT_sint32 y)
void calculatePosition (UT_UCSChar c, UT_uint32 &x, UT_uint32 &y)
GR_GraphicsgetGraphics (void)

Protected Attributes

GR_Graphicsm_areagc
GR_Fontm_pFont
UT_uint32 m_drawWidth
UT_uint32 m_drawHeight
UT_uint32 m_drawareaWidth
UT_uint32 m_drawareaHeight
UT_sint32 m_start_base
UT_sint32 m_start_nb_char
UT_UCSChar m_CurrentSymbol
UT_UCSChar m_PreviousSymbol

Private Attributes

UT_NumberVector m_vCharSet
UT_String m_stFont

Constructor & Destructor Documentation

XAP_Draw_Symbol::XAP_Draw_Symbol ( GR_Graphics gc  ) 
XAP_Draw_Symbol::~XAP_Draw_Symbol ( void   )  [virtual]

Member Function Documentation

UT_UCSChar XAP_Draw_Symbol::getCurrent (  )  [inline]
GR_Graphics* XAP_Draw_Symbol::getGraphics ( void   )  [inline]
UT_uint32 XAP_Draw_Symbol::getSymbolRows ( void   ) 
void XAP_Draw_Symbol::onLeftButtonDown ( UT_sint32  x,
UT_sint32  y 
) [virtual]

Reimplemented from XAP_Preview.

References calcSymbol(), and setCurrent().

void XAP_Draw_Symbol::setAreaGc ( GR_Graphics gc  ) 
void XAP_Draw_Symbol::setAreaSize ( UT_uint32  width,
UT_uint32  height 
)
void XAP_Draw_Symbol::setCurrent ( UT_UCSChar  c  ) 
void XAP_Draw_Symbol::setFontfont ( GR_Font font  ) 
void XAP_Draw_Symbol::setFontString ( void   ) 
void XAP_Draw_Symbol::setFontStringarea ( void   ) 
void XAP_Draw_Symbol::setRow ( UT_uint32  row  ) 

Member Data Documentation


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