20 #ifndef __WXWIDGETS_H__
21 #define __WXWIDGETS_H__
32 #include <wx/spinctrl.h>
33 #include <wx/dcgraph.h>
46 Font(
PLUNICODE fci,
PLFLT size,
bool underlined,
bool createFontOnConstruction =
false );
81 virtual void DrawLine(
short x1a,
short y1a,
short x2a,
short y2a ) {}
98 void DrawTextLine(
PLUNICODE* ucs4,
int ucs4Len, wxCoord xOrigin, wxCoord yOrigin, wxCoord x, wxCoord y,
PLFLT *transform,
PLFLT baseFontSize,
bool drawText,
bool &underlined,
PLUNICODE &fci,
unsigned char red,
unsigned char green,
unsigned char blue,
PLFLT alpha, wxCoord &textWidth, wxCoord &textHeight, wxCoord &textDepth );
99 virtual void DrawTextSection( wxString section, wxCoord xOrigin, wxCoord yOrigin, wxCoord x, wxCoord y,
PLFLT *transform,
PLFLT scaledFontSize,
bool drawText,
bool underlined,
PLUNICODE fci,
unsigned char red,
unsigned char green,
unsigned char blue,
PLFLT alpha,
PLFLT &yScale, wxCoord §ionWidth, wxCoord §ionHeight, wxCoord §ionDepth ) {}
117 void DrawLine(
short x1a,
short y1a,
short x2a,
short y2a );
133 void DrawTextSection( wxString section, wxCoord xOrigin, wxCoord yOrigin, wxCoord x, wxCoord y,
PLFLT *transform,
PLFLT scaledFontSize,
bool drawText,
bool underlined,
PLUNICODE fci,
unsigned char red,
unsigned char green,
unsigned char blue,
PLFLT alpha,
PLFLT &yScale, wxCoord §ionWidth, wxCoord §ionHeight, wxCoord §ionDepth );
184 #ifdef PL_WXWIDGETS_IPC3
239 wxFONTFAMILY_TELETYPE,
255 #endif // __WXWIDGETS_H__
wxGCDC * m_interactiveTextGcdc
void SetColor(PLStream *pls)
void Flush(PLStream *pls)
const PLFLT m_plplotEdgeLength
wxImage m_interactiveTextImage
void Locate(PLStream *pls, PLGraphicsIn *graphicsIn)
virtual void FillPolygon(PLStream *pls)
wxPLDevice(PLStream *pls, char *mfo, PLINT text, PLINT hrshsym)
void SetWidth(PLStream *pls)
virtual ~wxPLDevice(void)
virtual void BeginPage(PLStream *pls)
bool m_useDcTextTransform
void FillPolygon(PLStream *pls)
void DrawLine(short x1a, short y1a, short x2a, short y2a)
void ClearBackground(PLStream *pls, PLINT x1=-1, PLINT y1=-1, PLINT x2=-1, PLINT y2=-1)
virtual void DrawPolyline(short *xa, short *ya, PLINT npts)
virtual void DrawTextSection(wxString section, wxCoord xOrigin, wxCoord yOrigin, wxCoord x, wxCoord y, PLFLT *transform, PLFLT scaledFontSize, bool drawText, bool underlined, PLUNICODE fci, unsigned char red, unsigned char green, unsigned char blue, PLFLT alpha, PLFLT &yScale, wxCoord §ionWidth, wxCoord §ionHeight, wxCoord §ionDepth)
static const int m_max_string_length
virtual void SetDC(PLStream *pls, wxDC *dc)
void DrawPolyline(short *xa, short *ya, PLINT npts)
void PreDestructorTidy(PLStream *pls)
virtual void PreDestructorTidy(PLStream *pls)
size_t m_localBufferPosition
bool getUnderlined() const
Font GetFont(PLUNICODE fci, PLFLT scaledFontSize, bool underlined)
virtual void EndPage(PLStream *pls)
void DrawTextLine(PLUNICODE *ucs4, int ucs4Len, wxCoord xOrigin, wxCoord yOrigin, wxCoord x, wxCoord y, PLFLT *transform, PLFLT baseFontSize, bool drawText, bool &underlined, PLUNICODE &fci, unsigned char red, unsigned char green, unsigned char blue, PLFLT alpha, wxCoord &textWidth, wxCoord &textHeight, wxCoord &textDepth)
void drawText(PLStream *pls, EscText *args)
virtual void SetColor(PLStream *pls)
char m_mfo[PLPLOT_MAX_PATH]
void TransmitBuffer(PLStream *pls, unsigned char transmissionType)
static PLStream * pls[PL_NSTREAMS]
virtual void SetWidth(PLStream *pls)
virtual void Locate(PLStream *pls, PLGraphicsIn *graphicsIn)
void FixAspectRatio(bool fix)
void EndPage(PLStream *pls)
virtual void SetSize(PLStream *pls, int width, int height)
virtual void Flush(PLStream *pls)
virtual void FixAspectRatio(bool fix)
void SetSize(PLStream *pls, int width, int height)
void SetDC(PLStream *pls, wxDC *dc)
void DrawTextSection(wxString section, wxCoord xOrigin, wxCoord yOrigin, wxCoord x, wxCoord y, PLFLT *transform, PLFLT scaledFontSize, bool drawText, bool underlined, PLUNICODE fci, unsigned char red, unsigned char green, unsigned char blue, PLFLT alpha, PLFLT &yScale, wxCoord §ionWidth, wxCoord §ionHeight, wxCoord §ionDepth)
wxCoord m_prevSymbolHeight
void BeginPage(PLStream *pls)
virtual void DrawLine(short x1a, short y1a, short x2a, short y2a)
PLMemoryMap m_outputMemoryMap
wxCoord m_prevSymbolWidth
FontGrabber m_fontGrabber
wxCoord m_prevSymbolDepth
virtual void ClearBackground(PLStream *pls, PLINT x1=-1, PLINT y1=-1, PLINT x2=-1, PLINT y2=-1)